anavallasuiza / laravel-admin
Simple and extendible Laravel control panel
Installs: 1 195
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 11
Forks: 0
Open Issues: 0
Requires
- php: >=7.1
- almasaeed2010/adminlte: ^2.4
- eusonlito/laravel-form-manager: ^1.0
- eusonlito/laravel-gettext: ^2.0
- eusonlito/laravel-meta: ^3.1
- eusonlito/laravel-packer: ^2.1
- eusonlito/laravel-processor: ^1.0
README
Starting a base to base admin managemet based in database tables.
Thanks to https://github.com/almasaeed2010/AdminLTE to this great Admin CSS/Javascript/HTML Theme.
Installation
Begin by installing this package through Composer.
{ "require": { "anavallasuiza/laravel-admin": "5.1.*" } }
Configure Laravel Service Providers/Aliases in config/app.php
:
'providers' => [ ... Admin\AdminServiceProvider::class, ... ] 'aliases' => [ ... 'Input' => Illuminate\Support\Facades\Input::class, ... ]
Configure app/Http/Kernel.php
with Middlewares:
/** * The application's route middleware groups. * * @var array */ protected $middlewareGroups = [ ... 'admin' => [ \App\Http\Middleware\EncryptCookies::class, \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class, \Illuminate\Session\Middleware\StartSession::class, \Illuminate\View\Middleware\ShareErrorsFromSession::class, \App\Http\Middleware\VerifyCsrfToken::class, ] ]; protected $routeMiddleware = [ ... 'admin.auth' => \Admin\Http\Middleware\Authenticate::class, 'admin.admin' => \Admin\Http\Middleware\Admin::class, ];
Publish the base admin configuration:
php artisan vendor:publish
Publish admin assets with:
php artisan admin:publish:assets
Mirate admin tables
php artisan migrate
And finally, create your first admin user:
php artisan admin:user:new --name Admin --user admin --password admin --admin true
Check now to login into http://mydomain.com/admin
Laravel 5.4
Gettext admin Translator use __
functions added now on Laravel 5.4
To use this admin on Laravel >=5.4 add this line to bootstrap/autoload.php
project file:
require __DIR__.'/../vendor/gettext/gettext/src/translator_functions.php'; # Add this line require __DIR__.'/../vendor/autoload.php';