Laravel 8 Admin is a starter pack for developing laravel application. This application contain minimum spesification for an application.
- User Management
- Profile Management
- Access Management Based on Route
- User Role Management with Multiple Role
- Build on Laravel Modules
- Build on Service Layer
- Switcable Admin Theme (on progress)
Login Dashboard User Management Role Management Role Access Setting Profile
git clone https://github.com/Laravel-Tech-ID/Laravel8Admin.git
DB_CONNECTION=mysql
DB_HOST=localhost
DB_SOCKET=/var/run/mysqld/mysqld.sock
DB_PORT=3306
DB_DATABASE=laravel8admin
DB_USERNAME=root
DB_PASSWORD=
Comment out line 34 to 38 on file Modules\Access\Providers\RoleAccessServiceProvider.php on boot function to be like this:
public function boot()
{
// Access::get()->map(function($access){
// Gate::define($access->name, function($user) use ($access){
// return $user->hasAccess($access);
// });
// });
...
$ php artisan migrate
Migration table created successfully.
Migrating: 2014_10_12_100000_create_password_resets_table
Migrated: 2014_10_12_100000_create_password_resets_table (106.78ms)
Migrating: 2019_08_19_000000_create_failed_jobs_table
Migrated: 2019_08_19_000000_create_failed_jobs_table (77.17ms)
Migrating: 2020_11_07_163854_create_settings_table
Migrated: 2020_11_07_163854_create_settings_table (528.78ms)
Migrating: 2020_11_13_000007_create_roles_table
Migrated: 2020_11_13_000007_create_roles_table (177.52ms)
Migrating: 2020_11_13_000022_create_accesses_table
Migrated: 2020_11_13_000022_create_accesses_table (215.41ms)
Migrating: 2020_11_13_000025_create_users_table
Migrated: 2020_11_13_000025_create_users_table (252.58ms)
Migrating: 2020_12_17_163143_create_users_roles_table
Migrated: 2020_12_17_163143_create_users_roles_table (310.89ms)
Migrating: 2020_12_17_163206_create_roles_accesses_table
Migrated: 2020_12_17_163206_create_roles_accesses_table (241.31ms)
Migrating: 2020_12_17_163217_create_users_accesses_table
Migrated: 2020_12_17_163217_create_users_accesses_table (244.30ms)
$ php artisan module:use Access
$ php artisan module:seed
UnComment out line 34 to 38 on file Modules\Access\Providers\RoleAccessServiceProvider.php on boot function to be like this:
public function boot()
{
Access::get()->map(function($access){
Gate::define($access->name, function($user) use ($access){
return $user->hasAccess($access);
});
});
...
$ php artisan serve
Username: admin@admin.com
Password: 12345678
The Laravel 8 Admin is open-sourced software licensed under the MIT license.