A Laravel 5 package that switchs default Laravel scaffolding/boilerplate to AdminLTE template and Pratt Landing Page with Bootstrap 3.0
#AdminLTE template Laravel package
A Laravel package that switch default Laravel scaffolding/boilerplate to AdminLTE template
#Requirements
By default this version of Laravel does not include default auth routes. See:
http://laravel.com/docs/5.1/authentication
You will have to add this lines at your routes.php file:
// Authentication routes... Route::get('auth/login', 'Auth\AuthController@getLogin'); Route::post('auth/login', 'Auth\AuthController@postLogin'); Route::get('auth/logout', 'Auth\AuthController@getLogout'); // Registration routes... Route::get('auth/register', 'Auth\AuthController@getRegister'); Route::post('auth/register', 'Auth\AuthController@postRegister'); // Password reset link request routes... Route::get('password/email', 'Auth\PasswordController@getEmail'); Route::post('password/email', 'Auth\PasswordController@postEmail'); // Password reset routes... Route::get('password/reset/{token}', 'Auth\PasswordController@getReset'); Route::post('password/reset', 'Auth\PasswordController@postReset');
or:
Route::controllers([ 'auth' => 'Auth\AuthController', 'password' => 'Auth\PasswordController', ]);
and route to /home
Route::get('/home', ['middleware' => 'auth', function () { return view('home'); }]);
Also be aware of using new style (endig with ::class) when adding AdminLTETemplateServiceProvider to config/app.php file:
// AdminLTE template provider 'Acacha\AdminLTETemplateLaravel\app\Providers\AdminLTETemplateServiceProvider',
##Installation
First install Laravel (http://laravel.com/docs/5.0/installation) and then Create a new Laravel project:
$ laravel new laravel-with-admin-lte $ cd laravel-with-admin-lte
Add admint-lte Laravel package with:
$ composer require "acacha/admin-lte-template-laravel:0.*"
Register ServiceProvider editing config/app.php file and adding to providers array:
// AdminLTE template provider 'Acacha\AdminLTETemplateLaravel\app\Providers\AdminLTETemplateServiceProvider',
or in Laravel 5.1:
// AdminLTE template provider Acacha\AdminLTETemplateLaravel\app\Providers\AdminLTETemplateServiceProvider::class,
Publish files with:
$ php artisan vendor:publish --force --provider="Acacha\AdminLTETemplateLaravel\app\Providers\AdminLTETemplateServiceProvider"
Use force to overwrite Laravel Scaffolding packages. That’s all! Open the Laravel project in your browser or homestead machine and enjoy!
##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:
##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
https://packagist.org/packages/acacha/admin-lte-template-laravel