Coder Social home page Coder Social logo

mdbootstrap / adminlte-laravel Goto Github PK

View Code? Open in Web Editor NEW
1.8K 125.0 508.0 21.34 MB

A Laravel 5 package that switchs default Laravel scaffolding/boilerplate to AdminLTE template and Pratt Landing Page with Bootstrap 3.0

License: MIT License

PHP 69.48% JavaScript 1.24% CSS 0.98% Shell 0.24% Vue 4.61% Blade 23.45%
laravel laravel-5-package laravel-admin laravel-menu adminlte landing-page adminlte-template llum bootstrap theme

adminlte-laravel's Introduction

AdminLTE template Laravel package

A Laravel package that switch default Laravel scaffolding / boilerplate to AdminLTE template with Bootstrap 3.0 and Pratt Landing Page

See demo here:

http://demo.adminlte.acacha.org/

If you are looking for the Laravel 4 version, use 0.1.5 version/tag and see OLD-README.md

Latest Version on Packagist Total Downloads Monthly Downloads Daily Downloads Scrutinizer Code Quality Code Coverage Build Status StyleCI Build Status

Installation

composer require "acacha/admin-lte-template-laravel"

Finally publish files with:

php artisan vendor:publish --tag=adminlte --force

Requirements

This packages use (no need to install):

brew install gnu-sed --with-default-names

This package assumes that you have in path your composer bin folder:

/YOUR_PATH_TO_HOME/.composer/vendor/bin

For example adding this line:

export PATH=${PATH}:~/.composer/vendor/bin

to your ~/.bashrc file

Note: in some systems the path coul be diferent for example:

export PATH=${PATH}:~/.config/composer/vendor/bin

Please be sure to check you environment.

Optional requirements

  • Laravel menu: only used with command adminlte:menu that replaces default adminlte menu with a menu with spatie/laravel-menu support.

Laravel 7 and older

  • This package works smoothly with Laravel 7.x with 7.x version
  • This package works smoothly with Laravel 6.x|5.x with 6.x version

Laravel Routes

This package installs Laravel routes that you will not find them at routes.php file. The routes installed by package would be find at file:

https://github.com/acacha/adminlte-laravel/blob/master/src/Http/routes.php

A file included by AdminLTETemplateServiceProvider:

https://github.com/acacha/adminlte-laravel/blob/master/src/Providers/AdminLTETemplateServiceProvider.php

You can override this routes by changing order of ServiceProviders in config/app.php file so if you put:

App\Providers\RouteServiceProvider::class

After

Acacha\AdminLTETemplateLaravel\Providers\AdminLTETemplateServiceProvider::class

Your routes in routes.php file will override default adminlte-laravel routes.

Also you can install manually the routes in routes.php file. Adminlte-laravel use same routes as Laravel make:auth command use, see:

https://github.com/laravel/framework/blob/5.2/src/Illuminate/Auth/Console/stubs/make/routes.stub

so you can add this lines to routes.php file:

Route::auth();

Route::get('/home', 'HomeController@index');

And disable AdminLTETemplateServiceProvider in config/app.php file ( take into account that Adminte-laravel Facades and custom commands will not be available).

See issue #69 for more info

First steps, database creation, migrations and login

Once package installed you have to follow the usual steps of any laravel project to Login to the admin interface:

  • Create a database. I recommend the use of laravel Homestead ()
  • Create/check .env file and configure database access (database name, password, etc)
  • Run migrations with command $ php artisan migrate
  • Registera a first user and Login with it

AdminLTE

AdminLTE is a Free Premium Admin control Panel Theme That Is Based On Bootstrap 3.x created by Abdullah Almsaeed. See:

https://github.com/almasaeed2010/AdminLTE

Avatar/Gravatar

Adminlte-laravel supports global recognized avatar (http://gravatar.com) using package creativeorange/gravatar (https://github.com/creativeorange/gravatar).

Artisan Commands

make:view

This commands adds a view to resources/views folder using default adminlte layout:

php artisan make:view about

make:menu

This commands adds a menu entry to file config/menu.php:

php artisan make:menu link menuname

Example:

php artisan make:menu /contact

make:route

This commands adds a route to routes file using:

php artisan make:route linkname

For example you can add a route routes/web.php file with URI /about using:

php artisan make:route about

This commands add this entry to routes/web.php

You can create 3 types of routes with option type:

  • regular: routes using a clousure with a simple return view command. This is the default one
  • controller: routes using a controller.
  • resource: routes using a resource controller.

Examples:

php artisan make:route about --type=controller

this adds the following:

Route::get('about', 'AboutController@index');

to file routes/web.php. You can choose the controller name and method with:

php artisan make:route about MyController@method --type=controller

If you want to create a resource controller:

php artisan make:route about --type=resource

this adds the following:

Route::resource('about', 'About@index');

to file routes/web.php.

You can also create routes with other HTTP methods using option method:

php artisan make:route save --method=post

You can also add routes to api using option api:

php artisan make:route save --api

Then the routes will be added to routes/api.php.

Finally use option -a to add actions after route creation:

php artisan make:route about -a

Last command also create a view with name about.blade.php. Using:

php artisan make:route about -a --type=controller

Will create a Controller file with name AboutController and method index.

You can consult all options with:

php artisan make:route --help

adminlte:publish | adminlte-laravel:publish

This command is already executed during installation you can (re)execute manually with:

php artisan adminlte:publish

Publish all necessary files from package to Laravel project.

adminlte:sidebar | adminlte-laravel:sidebar

Only publish package sidebar to Laravel project allowing to customize sidebar:

php artisan adminlte:sidebar

Note: sidebar is already published when you use adminlte-laravel install command.

adminlte:menu | adminlte-laravel:menu

Replaces sidebar view with a sidebar using spatie/laravel-menu:

php artisan adminlte:menu

This command also installs spatie/laravel-menu package and creates a default menu located config/menu.php.

IMPORTANT: Spatie Laravel Menu required PHP7.0 or superior to work

adminlte-laravel:admin | adminlte:admin

Executes make:adminUserSeeder artisan command (see next section) an executes seed. This command adds a default admin user to database.

php artisan adminlte:admin
File /home/sergi/Code/AdminLTE/acacha/adminlte-laravel_test/database/seeds/AdminUserSeeder.php created
User Sergi Tur Badenas([email protected]) with the environemnt password (env var ADMIN_PWD) created succesfully!

This command use (if exists) environment variables (.env file) ADMIN_USER, ADMIN_EMAIL and ADMIN_PWD. If this env variables does not exists then user git config (~/.gitconfig) to obtain data and if this info does not exists use Admin ([email protected]) and password 123456 as default.

make:adminUserSeeder

Create a new seed to add admin user to database. Use:

php artisan make:adminUserSeeder
File /home/sergi/Code/AdminLTE/acacha/adminlte-laravel_test/database/seeds/AdminUserSeeder.php created

Social Login/Register with acacha/laravel-social

It's a cinch to add (optional) Social Login/Register support to Laravel Adminlte using acacha/laravel-social package. Execute in your project root folder:

adminlte-laravel social

Follow the wizard to configure your social providers Oauth data and enjoy!

More info at https://github.com/acacha/laravel-social.

How to remove social Login?

Remove line

@include('auth.partials.social_login')

in files resources/views/auth/login.blade.php and register.blade.php

Roadmap

Documentation TODO

  • Gulp file provided to compile Boostrap and AdminLTE less files
  • Partial views (html header, content header, footer, etc.) to easily reuse code

Packagist

https://packagist.org/packages/acacha/admin-lte-template-laravel

More info

http://acacha.org/mediawiki/AdminLTE#adminlte-laravel

Tests

Testing this package

Use phpunit on run composer script test:

$ composer test

Testing laravel project once this package is installed

Once this package is installed in a Laravel project some tests are installed to test package features. There are two kind of tests Feature/Unit tests and Browser tests. To execute Feature/Unit tests execute:

./vendor/bin/phpunit

In a new created laravel project with acacha-admintle.laravel installed to test that package is installed correctly. You can also execute Browser tests with Laravel Dusk (please install first manually Dusk package following https://laravel.com/docs/master/dusk):

php artisan dusk:install
touch database/testing.database.sqlite
php artisan serve --env=dusk.local &
php artisan dusk

You can also test this package in a sandbox without need to install. Run script:

./test.sh

Localization

All strings are localized using Laravel localization support: https://laravel.com/docs/master/localization

In your config/app.php file you can change locale to change language. You can install only localized files using tag adminlte_lang:

php artisan vendor:publish --tag=adminlte_lang --force

The following languages are supported by default on this package: English, Catalan, Spanish, Dutch and Brazilian Portuguese. Please feel free to submit a new pull request with another languages if you wish.

Troubleshooting

GNU sed on MAC OS

NOTA: not needed in Laravel 5.5+

Acacha llum need GNU sed to work so replace BSD sed with GNU sed using:

brew install gnu-sed --with-default-names

Check you version of sed with:

man sed

sed GNU version path is:

$ which sed
/usr/local/bin/sed

Instead of default path of BSD sed (installed by default on MAC OS):

/usr/bin/sed

More info at #58

How to use username at login instead of email

Execute command:

php artisan adminlte:username

And then you can use username instead of email for login.

NOTE: when we are using login by username if login by usernames fails then system try to use the introduced username as an email for login. So users can also login using email.

To come back to email login remove field option from config/auth.php file:

'providers' => [
    'users' => [
        'driver' => 'eloquent',
        'model' => App\User::class,
        'field' => 'username' // Adminlte laravel. Valid values: 'email' or 'username'
    ],

NOTE: Migration required to add username field to users table requires:

composer require doctrine/dbal

Default domain for username registration

Optionally you can define a default domain name for username login. Add domain option:

'defaults' => [
    'guard' => 'web',
    'passwords' => 'users',
    'domain' => 'defaultdomain.com',
],

to file config/auth.php. Then if an user tries to login with no domain the default domain will be appended whe logging.

So with previous example you can type at login:

sergiturbadenas

and system/javascript will replace that with:

Vue

Laravel adminlte package by default publish Laravel translations into Javascript/Vue.js adding to HTML header the following script:

<script>
    //See https://laracasts.com/discuss/channels/vue/use-trans-in-vuejs
    window.trans = @php
        // copy all translations from /resources/lang/CURRENT_LOCALE/* to global JS variable
        $lang_files = File::files(resource_path() . '/lang/' . App::getLocale());
        $trans = [];
        foreach ($lang_files as $f) {
            $filename = pathinfo($f)['filename'];
            $trans[$filename] = trans($filename);
        }
        $trans['adminlte_lang_message'] = trans('adminlte_lang::message');
        echo json_encode($trans);
    @endphp
</script>

This script is located in partial blade file (vendor/acacha/admin-lte-template-laravel/resources/views/layouts/partials/htmlheader.blade.php)

So global variable window.trans contains all Laravel translations at can be used in any Javascript file.

Also in file resources/assets/js/bootstrap.js code section:

Vue.prototype.trans = (key) => {
    return _.get(window.trans, key, key);
};

Allows using directly the trans function in vue templates:

{{ trans('auth.failed') }}

Also you can use inside Vue components code:

this.trans('auth.failed')

Laravel Adminlte messages ara available using prefix adminlte_lang_message:

{{ trans('adminlte_lang_message.username') }}

Feel free to remove/adapt this file to your needs.

Change log

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING and CONDUCT for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

See also

https://github.com/acacha/adminlte-laravel-installer

adminlte-laravel's People

Contributors

acacha avatar admont28 avatar amruthpillai avatar apisznasdin avatar aterbonus avatar clebersa avatar ctessier avatar dependabot[bot] avatar drowningelysium avatar fedeverdi avatar gdbhosale avatar hootlex avatar joaorobertopb avatar khogaeslam avatar manelgavalda avatar marcosmariondev avatar michaelachrisco avatar minhphuc429 avatar nieka avatar ontheroadjp avatar pjona avatar rogermelich avatar rtcoder avatar selabie68 avatar sheershoff avatar syahzul avatar uovidiu avatar vinlock avatar webkingashu avatar zubaer-ahammed avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

adminlte-laravel's Issues

Using tabletools

I'm trying to use tabletools, I added some code to the scripts.blade.php to include:

<script src="{{ asset('/plugins/datatables/jquery.dataTables.min.js') }}" type="text/javascript"></script>
<script src="{{ asset('/plugins/datatables/dataTables.bootstrap.min.js') }}" type="text/javascript"></script>
<script src="{{ asset('/plugins/datatables/extensions/TableTools/dataTables.tableTools.js') }}" type="text/javascript"></script>

<script>
  $(function () {
    $("#example2").DataTable();
    $('#example1').DataTable({
      "paging": true,
      "lengthChange": false,
      "searching": true,
      "ordering": true,
      "info": true,
      "autoWidth": false,
      "dom": 'T<"clear">lfrtip',
        "tableTools": {
            "sSwfPath": "/plugins/datatables/extensions/TableTools/swf/copy_csv_xls.swf"}
    });
  });
</script>

And added to the htmlheader.blade.php:

<link href="{{ asset('/plugins/datatables/dataTables.bootstrap.css') }}" rel="stylesheet" type="text/css" />
    <link href="{{ asset('/plugins/datatables/jquery.dataTables.css') }}" rel="stylesheet" type="text/css" />

But I don't see the button to export. What am I missing?

Trouble installing: Class 'Acacha\AdminLTETemplateLaravel...' not found

Hi,

I have following the instructions on installing adminlte-laravel but am getting an error on the last step.
php artisan vendor:publish --force --provider="Acacha\AdminLTETemplateLaravel\app\Providers\AdminLTETemplateServiceProvider"

Is throwing the following error.
PHP Fatal error: Class 'Acacha\AdminLTETemplateLaravel\app\Providers\AdminLTETemplateServiceProvider' not found in /var/www/project/laravel/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php on line 146

I'm running this on Ubuntu with Apache 2, and PHP 5.6.
Thank you for any assistance.

Upgrade to latest adminLTE version and use select2

I would like to upgrade adminLTE to it's latest version. It has support for select2 that I would like to use. I updated/added all the less files in the resource directory and rebuilded my assets with gulp. Unfortunately when I enable select2 with javascript all the styling of those dropdown are to small. When I disable select2 the styling is good but officiously the inputs are just regular dropdowns then.

Is there an easy way to update to the latest version or to avoid the styling problem that I have after running $(".classname").select2();?

Suggestion - Admin theme

AdminLTE is and admin theme, so why don't create and admin or backend folders in which save all the assets and the view?

Something like:

views/
    - backend/
        - home.blade.php

public/
    - backend/
         - js/
         - css/
         - img/

I think that this will create a cleaner project, what do you think?

Published files and elixir versions.

Hello!
One issue I faced is with published files when using the version feature of elixir.
Elixir creates a /public/build path and puts versioned css and js files in there.
But this breaks the relative paths that these files have for calling other files.

Routes not working

in my own routes.php file i have

Route::group(['middleware' => 'web'], function () {
    Route::auth();
    Route::get('/', 'IndexController@index');
});

But it keeps going to the Pratt Landing Page

Problems with installation

Hi!

Sorry, I'm new in Laravel... I already did these steps (using vagrant):

  • laravel new laravel.app
  • composer require "acacha/admin-lte-template-laravel:0.*"
  • Added to config.php:
// AdminLTE template provider         
Acacha\AdminLTETemplateLaravel\app\Providers\AdminLTETemplateServiceProvider::class,
  • php artisan vendor:publish --force --provider="Acacha\AdminLTETemplateLaravel\app\Providers\AdminLTETemplateServiceProvider"
  • My /home/vagrant/Code/ folder mapped to C:\projects\Laravels\. This app lines:
map: laravel.app
to: /home/vagrant/Code/laravel.app/public
  • I go to http://laravel.app and see message Laravel 5 with AdminLTE.

But what next? How to see AdminLTE login form?
I tried to add routes in routes.php, but url http://laravel.app/home give me error:

ErrorException in 645ddd92044e80ef67faf70852c9c41a line 118:
Trying to get property of non-object (View: /home/vagrant/Code/laravel.app/resources/views/partials/mainheader.blade.php) (View: /home/vagrant/Code/laravel.app/resources/views/partials/mainheader.blade.php) (View: /home/vagrant/Code/laravel.app/resources/views/partials/mainheader.blade.php)

make adminLTE theme default for entire site

Hi, I am new to Laravel, and adminLTE. How do I setup/install adminLTE-laravel theme such that I see all parts of adminLTE without logging in. I want to create an app with adminLTE theme, if user logs in few features and enabled, and private information is visible.

Hope this makes sense

Thanks for your help

Elixir - less task issue

Hello,

On a brand new install of laravel 5.1 with acacha/adminlte-laravel loaded. Elixir complains during the "less" task about mssing mixins.less file.

[20:07:55] gulp-notify: [Laravel Elixir] Less Compilation Failed: '../bootstrap-less/mixins.less' wasn't found. Tried - /home/riad/htdocs/acasha/resources/assets/less/bootstrap-less/mixins.less,../bootstrap-less/mixins.less in file /home/riad/htdocs/acasha/resources/assets/less/admin-lte/AdminLTE.less line no. 15
{ [Error: '../bootstrap-less/mixins.less' wasn't found. Tried - /home/riad/htdocs/acasha/resources/assets/less/bootstrap-less/mixins.less,../bootstrap-less/mixins.less in file /home/riad/htdocs/acasha/resources/assets/less/admin-lte/AdminLTE.less line no. 15]
  type: 'File',
  filename: '/home/riad/htdocs/acasha/resources/assets/less/admin-lte/AdminLTE.less',
  index: 490,
  line: 15,
  callLine: NaN,
  callExtract: undefined,
  column: 0,
  extract: 
   [ '//are included only for reference.',
     '@import (reference) "../bootstrap-less/mixins.less";',
     '@import (reference) "../bootstrap-less/variables.less";' ],
  message: '\'../bootstrap-less/mixins.less\' wasn\'t found. Tried - /home/riad/htdocs/acasha/resources/assets/less/bootstrap-less/mixins.less,../bootstrap-less/mixins.less in file /home/riad/htdocs/acasha/resources/assets/less/admin-lte/AdminLTE.less line no. 15',
  stack: undefined,
  lineNumber: 15,
  fileName: '/home/riad/htdocs/acasha/resources/assets/less/admin-lte/AdminLTE.less',
  name: 'Error',
  showStack: false,
  showProperties: true,
  plugin: 'gulp-less',
  __safety: { toString: [Function: bound ] } }
[20:07:55] Finished 'less' after 133 ms
[20:07:55] Starting 'less'...

Login... I know...

I'm not new to PHP but I'm new to laravel, and man I can't figure out how to login to save my life! haha.

/auth does nothing...

Can't find docs to save my life on this. Help?

RTL

hi please make rtl version of adminlte laravel

How to use?

I am not sure if I got this right. adminlte-laravel offers "just" the boilerplate, doesn't it?

The installation worked fine, but I miss some generators or templates for form, tables etc.
I am not sure how to proceed now. Where is the documentation for the views etc.?

Thanks

php artisan vendor:publish --> Nothing to Publish

Hello Acacha, I use your package but after I write in windows command : php artisan vendor:publish --force --provider="Acacha/AdminLTETemplateLaravel/Providers/AdminLTETemplateServiceProvider" the result is Nothing to Publish...

I Follow your instruction but it always like that..
Can you help me???

how do i log in?

In order to log in, you have to create a DB, edit the .env file to match your DB, and do an "php artisan migrate", then register a new user.

Please add that to the readme, took me a while to figure it out

AdminLTE boostrap less doesn't not "compile"

Error:

{ [Error: '../bootstrap-less/mixins.less' wasn't found. Tried - /home/sergi/Code/AdminLTE/acacha/adminlte-laravel-test/resources/assets/less/bootstrap-less/mixins.less,../bootstrap-less/mixins.less in file /home/sergi/Code/AdminLTE/acacha/adminlte-laravel-test/resources/assets/less/admin-lte/AdminLTE.less line no. 13]

Nothing happen after php artisan vendor:publish ...

Hi,

I am having with the installation of this package in laravel 5.1. I followed the instructions step by step. I also added Acacha\AdminLTETemplateLaravel\app\Providers\AdminLTETemplateServiceProvider::class, in config/app.php file but I still getting "Nothing to publish for tag[]" when I try to publish it

Can anyone help me please?

Thank in advance

Incorrect Paths to assets - css and js

Hi,
As described, after installing this package, it does not load the css and js files correctly, instead console in chrome gives errors -

Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost/css/AdminLTE.css Failed to load resource: the server responded with a status of 404 (Not Found) http://localhos

As you can see, it is loading trying to get the assets from localhost/css which isn't the valid location

Instead it should access the files from localhost/myapppname/public/ directory right??

Please help

Redirect to login

Hi,

How to redirect to login page?

I was trying with this code in my routes.php file, but not working (Pratt Landing page showing).

`
Route::get('/', function () {
    return view('auth.login');
});

Route::group(['middleware' => ['web']], function () { ...
`




Problems working in tandem with Laravel 5.2 new "auth" stuff

Hello,

Just tried to spin up a new project with adminlte-laravel and the latest Laravel 5.2.

Seems like there might be some problems with the way that this package registers its routes as with the 5.2 the new web middleware is used it inject the needed classes such as \Illuminate\View\Middleware\ShareErrorsFromSession::class (see app/Http/Kernel.php).

Auth::guest() call infinite recursion

It issue may not be here, but this error i have only in adminlte template

Auth::guest() in the layouts.partials.mainheader template get

FatalErrorException in Container.php line 700:
Maximum function nesting level of '100' reached, aborting!
in Container.php line 700
at FatalErrorException->__construct() in HandleExceptions.php line 133
at HandleExceptions->fatalExceptionFromError() in HandleExceptions.php line 118
at HandleExceptions->handleShutdown() in HandleExceptions.php line 0
at Container->normalize() in Container.php line 179
at Container->bind() in Container.php line 271
at Container->singleton() in HashServiceProvider.php line 25
at HashServiceProvider->register() in Application.php line 531
at Application->register() in Application.php line 648
at Application->registerDeferredProvider() in Application.php line 628
at Application->loadDeferredProvider() in Application.php line 671
at Application->make() in Container.php line 1168
at Container->offsetGet() in CreatesUserProviders.php line 65
at AuthManager->createEloquentProvider() in CreatesUserProviders.php line 38
at AuthManager->createUserProvider() in AuthManager.php line 102
at AuthManager->createSessionDriver() in AuthManager.php line 77
at AuthManager->resolve() in AuthManager.php line 57
at AuthManager->guard() in AuthManager.php line 244
at AuthManager->__call() in Facade.php line 213
at AuthManager->guest() in Facade.php line 213
at Facade::__callStatic() in 60c8ae2359811f7b1c20852853c81855ce071f02.php line 111
at Auth::guest() in 60c8ae2359811f7b1c20852853c81855ce071f02.php line 111
in PhpEngine.php line 42
at PhpEngine->evaluatePath() in CompilerEngine.php line 59
at CompilerEngine->get() in View.php line 135
at View->getContents() in View.php line 106
at View->renderContents() in View.php line 80
at View->render() in a63f2c0dab43a8a5c8fd59dfb52f3f1b7618ef39.php line 39
in PhpEngine.php line 42
at PhpEngine->evaluatePath() in CompilerEngine.php line 59
at CompilerEngine->get() in View.php line 135
at View->getContents() in View.php line 106
at View->renderContents() in View.php line 80
at View->render() in dba1588c86a9c80051793296ff22c397d908a58a.php line 22
in PhpEngine.php line 42
at PhpEngine->evaluatePath() in CompilerEngine.php line 59
at CompilerEngine->get() in View.php line 135
at View->getContents() in View.php line 106
at View->renderContents() in View.php line 80
at View->render() in Response.php line 52
at Response->setContent() in Response.php line 197
at Response->__construct() in Router.php line 1030
at Router->prepareResponse() in ControllerDispatcher.php line 95
at ControllerDispatcher->Illuminate\Routing{closure}() in Pipeline.php line 52
at call_user_func:{/home/localhost/is-crimea.ru/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:52}() in Pipeline.php line 52
at Pipeline->Illuminate\Routing{closure}() in Pipeline.php line 103
at call_user_func:{/home/localhost/is-crimea.ru/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:103}() in Pipeline.php line 103
at Pipeline->then() in ControllerDispatcher.php line 96
at ControllerDispatcher->callWithinStack() in ControllerDispatcher.php line 54
at ControllerDispatcher->dispatch() in Route.php line 174
at Route->runController() in Route.php line 140
at Route->run() in Router.php line 703
at Router->Illuminate\Routing{closure}() in Pipeline.php line 52
at call_user_func:{/home/localhost/is-crimea.ru/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:52}() in Pipeline.php line 52
at Pipeline->Illuminate\Routing{closure}() in VerifyCsrfToken.php line 64
at VerifyCsrfToken->handle() in Pipeline.php line 124
at call_user_func_array:{/home/localhost/is-crimea.ru/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:124}() in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline{closure}() in Pipeline.php line 32
at call_user_func:{/home/localhost/is-crimea.ru/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:32}() in Pipeline.php line 32
at Pipeline->Illuminate\Routing{closure}() in ShareErrorsFromSession.php line 49
at ShareErrorsFromSession->handle() in Pipeline.php line 124
at call_user_func_array:{/home/localhost/is-crimea.ru/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:124}() in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline{closure}() in Pipeline.php line 32
at call_user_func:{/home/localhost/is-crimea.ru/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:32}() in Pipeline.php line 32
at Pipeline->Illuminate\Routing{closure}() in StartSession.php line 62
at StartSession->handle() in Pipeline.php line 124
at call_user_func_array:{/home/localhost/is-crimea.ru/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:124}() in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline{closure}() in Pipeline.php line 32
at call_user_func:{/home/localhost/is-crimea.ru/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:32}() in Pipeline.php line 32
at Pipeline->Illuminate\Routing{closure}() in AddQueuedCookiesToResponse.php line 37
at AddQueuedCookiesToResponse->handle() in Pipeline.php line 124
at call_user_func_array:{/home/localhost/is-crimea.ru/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:124}() in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline{closure}() in Pipeline.php line 32
at call_user_func:{/home/localhost/is-crimea.ru/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:32}() in Pipeline.php line 32
at Pipeline->Illuminate\Routing{closure}() in EncryptCookies.php line 59
at EncryptCookies->handle() in Pipeline.php line 124
at call_user_func_array:{/home/localhost/is-crimea.ru/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:124}() in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline{closure}() in Pipeline.php line 32
at call_user_func:{/home/localhost/is-crimea.ru/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:32}() in Pipeline.php line 32
at Pipeline->Illuminate\Routing{closure}() in Pipeline.php line 103
at call_user_func:{/home/localhost/is-crimea.ru/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:103}() in Pipeline.php line 103
at Pipeline->then() in Router.php line 705
at Router->runRouteWithinStack() in Router.php line 678
at Router->dispatchToRoute() in Router.php line 654
at Router->dispatch() in Kernel.php line 246
at Kernel->Illuminate\Foundation\Http{closure}() in Pipeline.php line 52
at call_user_func:{/home/localhost/is-crimea.ru/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:52}() in Pipeline.php line 52
at Pipeline->Illuminate\Routing{closure}() in Debugbar.php line 49
at Debugbar->handle() in Pipeline.php line 124
at call_user_func_array:{/home/localhost/is-crimea.ru/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:124}() in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline{closure}() in Pipeline.php line 32
at call_user_func:{/home/localhost/is-crimea.ru/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:32}() in Pipeline.php line 32
at Pipeline->Illuminate\Routing{closure}() in CheckForMaintenanceMode.php line 44
at CheckForMaintenanceMode->handle() in Pipeline.php line 124
at call_user_func_array:{/home/localhost/is-crimea.ru/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:124}() in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline{closure}() in Pipeline.php line 32
at call_user_func:{/home/localhost/is-crimea.ru/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:32}() in Pipeline.php line 32
at Pipeline->Illuminate\Routing{closure}() in Pipeline.php line 103
at call_user_func:{/home/localhost/is-crimea.ru/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:103}() in Pipeline.php line 103
at Pipeline->then() in Kernel.php line 132
at Kernel->sendRequestThroughRouter() in Kernel.php line 99
at Kernel->handle() in index.php line 54
at {main}() in index.php line 0

Bug in commit f84bd1e

This commit: f84bd1e

Generate this error on Laravel 5.1:

ReflectionException in Container.php line 741:
Class web does not exist
in Container.php line 741
at ReflectionClass->__construct('web') in Container.php line 741
at Container->build('web', array()) in Container.php line 631
at Container->make('web', array()) in Application.php line 674
at Application->make('web') in Pipeline.php line 123
at Pipeline->Illuminate\Pipeline{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 103
at Pipeline->then(object(Closure)) in Router.php line 710
at Router->runRouteWithinStack(object(Route), object(Request)) in Router.php line 675
at Router->dispatchToRoute(object(Request)) in Router.php line 635
at Router->dispatch(object(Request)) in Kernel.php line 236
at Kernel->Illuminate\Foundation\Http{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 139
at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in Domains.php line 22
at Domains->handle(object(Request), object(Closure))
at call_user_func_array(array(object(Domains), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in VerifyCsrfToken.php line 50
at VerifyCsrfToken->handle(object(Request), object(Closure))
at call_user_func_array(array(object(VerifyCsrfToken), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in ShareErrorsFromSession.php line 49
at ShareErrorsFromSession->handle(object(Request), object(Closure))
at call_user_func_array(array(object(ShareErrorsFromSession), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in StartSession.php line 62
at StartSession->handle(object(Request), object(Closure))
at call_user_func_array(array(object(StartSession), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in AddQueuedCookiesToResponse.php line 37
at AddQueuedCookiesToResponse->handle(object(Request), object(Closure))
at call_user_func_array(array(object(AddQueuedCookiesToResponse), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in EncryptCookies.php line 59
at EncryptCookies->handle(object(Request), object(Closure))
at call_user_func_array(array(object(EncryptCookies), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in CheckForMaintenanceMode.php line 44
at CheckForMaintenanceMode->handle(object(Request), object(Closure))
at call_user_func_array(array(object(CheckForMaintenanceMode), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 103
at Pipeline->then(object(Closure)) in Kernel.php line 122
at Kernel->sendRequestThroughRouter(object(Request)) in Kernel.php line 87
at Kernel->handle(object(Request)) in index.php line 54
at require_once('I:\Users\Kijam\Documents\BitBucket\couriers\web_client\public\index.php') in server.php line 21

When logged in home.blade.php not showing

Hi,

First of all, thanks for the great work you put together!

I did a basic install for Laravel 5.2 as described.
The php file home.blade.php is NOT showing it's content.

From app.blade.php I see: @yield('main-content')
So changed @section('content') to @section('main-content') en it works.

Thanks,
Ray.

Metronic Admin Theme

Is there any way I can adapt this package to work on my Metronic Admin Theme, it would help me so much.

New installation problem

Hello,

I created a brand new laravel 5.1.11 project which doesn't come with pre-built authentication pages. I found this product through packagist.

I followed the instructions and have adminlte installed. When I attempt to register a user I get the following error : TokenMismatchException in VerifyCsrfToken.php line 53

If I view the source of the registration page I see the "token" so I'm not sure what's happening.

I have a brand new CentOS 7 box with Apache 2.4.6, MariaDB 5.5.44, and PHP 5.6.15.

Login page does not load Jquery

Change login pages into

<!-- jQuery 2.1.4 -->
<script src="{{ asset('/plugins/jQuery/jQuery-2.1.4.min.js') }}"></script>
<!-- Bootstrap 3.3.2 JS -->
<script src="{{ asset('/js/bootstrap.min.js') }}" type="text/javascript"></script>
<!-- iCheck -->
<script src="{{ asset('/plugins/iCheck/icheck.min.js') }}" type="text/javascript"></script>

Cannot get this to work?

Really i cannot get this to work. I follow step by step however whenever i run the php artisan serve command it just displays the standard "Laravel with AdminLTE" page and not the AdminLTE template page? Any ideas?

Error converting exising Laravel project

I tried to install adminlte to an existing 5.2 laravel project

Command:
adminlte-laravel install

Result:

Running llum package AdminLTE...
Running composer require acacha/admin-lte-template-laravel
Using version ^2.0 for acacha/admin-lte-template-laravel
./composer.json has been updated
> php artisan clear-compiled
Loading composer repositories with package information
Updating dependencies (including require-dev)
  - Installing acacha/admin-lte-template-laravel (2.0.7)
    Downloading: 100%         

Writing lock file
Generating autoload files
> php artisan optimize
Generating optimized class loader
sed: 1: "/]/{=;q};": extra characters at the end of q command
sed: stdout: Broken pipe
sed: 1: "/Users/some.user/OM ...": invalid command code f
sed: 1: "/]/{=;q};": extra characters at the end of q command
sed: 1: "/Users/some.user/OM ...": invalid command code f
File /Users/some.user/OMG/openfuse/config/app.php updated correctly
sed: 1: "/Users/some.user/OM ...": invalid command code f
File /Users/some.user/OMG/openfuse/config/services.php updated correctly
Adding Acacha\AdminLTETemplateLaravel\Providers\AdminLTETemplateServiceProvider::class to Laravel config app.php file
sed: 1: "/Users/some.user/OM ...": invalid command code f
Adding Acacha\AdminLTETemplateLaravel\Facades\AdminLTE::class to Laravel config app.php file
sed: 1: "/Users/some.user/OM ...": invalid command code f
Nothing to publish for tag [adminlte].

Implement ACL

Hi I'm trying to implement ACL.

I followed this tutorial some time ago and got it to work.
But this uses different auth then yours.

How can I implement acl to AdminLTE.

I hope you can define the steps required.

Trying to get property of non-object

Hi!
The installation is done but when I access home, the browser show me this:

ErrorException in 01a5c44060f2b0cd2ee959ab8629faa0 line 118: 
Trying to get property of non-object (View: ...\resources\views\partials\mainheader.blade.php) (View: ...\resources\views\partials\mainheader.blade.php) (View: ...\resources\views\partials\mainheader.blade.php)

My routes:

Route::get('/', function () {
    return view('home');
});

Thanks a lot.

Can't find package

Composer can't find the package:

The requested package acacha/admin-lte-template-laravel could not be found in any version, there may be a typo in the package name

NetworkError: 500 Internal Server Error css and js files

Hi,
I'm using this great package, last version.

On my local environment (WampServer Version 2.5), it's working perfectly, but on my production site I have this error (module FireBug, browser Firefox) for views with DataTables component:

"NetworkError: 500 Internal Server Error - .../public/plugins/datatables/css/datatables.bootstrap.css"

"NetworkError: 500 Internal Server Error - ../public/plugins/datatables/js/datatables.bootstrap.js"

Can you help me with this error? Is it related to my hosting provider settings?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.