PHP code example of bitsoftsol / laravel-administration

1. Go to this page and download the library: Download bitsoftsol/laravel-administration library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

bitsoftsol / laravel-administration example snippets


   'providers' => [
       // ...
       Bitsoftsol\LaravelAdministration\LaravelAdminServiceProvider::class,
   ],

3. **Publish Vendor Files**:

    Run the following Artisan command to publish vendor files:
    Select the `LaravelAdminServiceProvider` when prompted.

   

   Auth::routes();

8. **Serve Your Project**:

    Serve your Laravel project:

   

      use Bitsoftsol\LaravelAdministration\Traits\LaravelAdmin;

   + Import the __`LaravelAdminAPI`__ Trait on top of the __`Seller`__ model class:

      

      use LaravelAdmin;
      use LaravelAdminAPI;

2. **Define Fillable Fields:**

   In the `Seller` model class, ensure that you add the field names to the __`fillable`__ array: