composer create-project laravel/laravel .
composer require laravel/ui yajra/laravel-datatables-oracle maatwebsite/excel spatie/laravel-permission
git init
git remote add adminux https://github.com/Ator9/laravel-adminux.git
git pull adminux master
- Configuration / Database:
php artisan vendor:publish --provider="Spatie\Permission\PermissionServiceProvider"
php artisan migrate
- Add to /app/Http/Kernel.php:
// $routeMiddleware:
'adminux_superuser' => \App\Adminux\Superuser::class,
- Add to /config/auth.php:
// guards:
'adminux' => [
'driver' => 'session',
'provider' => 'adminux',
],
// providers:
'adminux' => [
'driver' => 'eloquent',
'model' => App\Adminux\Admin\Models\Admin::class,
],
// passwords:
'adminux' => [
'provider' => 'adminux',
'table' => 'password_resets',
'expire' => 60,
],
- Add to /routes/web.php:
Route::prefix('adminux')->group(function($router) {
require base_path('app/Adminux/routes.php');
});
- Access AdminUX with "/adminux":
Email: admin@localhost
Password: test