/Laravel8Admin

Laravel8Admin

Primary LanguageHTML

About Laravel 8 Admin

Laravel 8 Admin is a starter pack for developing laravel application. This application contain minimum spesification for an application.

Features:

  1. User Management
  2. Profile Management
  3. Access Management Based on Route
  4. User Role Management with Multiple Role
  5. Build on Laravel Modules
  6. Build on Service Layer
  7. Switcable Admin Theme (on progress)

Screenshot

Login Dashboard User Management Role Management Role Access Setting Profile

Installation

Clone the file to your local by typing below command:

git clone https://github.com/Laravel-Tech-ID/Laravel8Admin.git

Create Database and put the config on .env file like below:

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);
    //     });
    // });
    ...

Hit command below:

$ php artisan migrate

The result would be:

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)

Change Module Active to Access Module by typing below command:

$ php artisan module:use Access

Seed Database by typing below command:

$ 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);
        });
    });
    ...

Start your application by typing:

$ php artisan serve

Login to Application by below credential:

Username: admin@admin.com
Password: 12345678

License

The Laravel 8 Admin is open-sourced software licensed under the MIT license.