PHP code example of andrew13 / cabinet

1. Go to this page and download the library: Download andrew13/cabinet 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/ */

    

andrew13 / cabinet example snippets


'providers' => array(

    'Illuminate\Foundation\Providers\ArtisanServiceProvider',
    'Illuminate\Auth\AuthServiceProvider',
    ...
    'Andrew13\Cabinet\CabinetServiceProvider',

),

'aliases' => array(

    'App'        => 'Illuminate\Support\Facades\App',
    'Artisan'    => 'Illuminate\Support\Facades\Artisan',
    ...
    'Cabinet'    => 'Andrew13\Cabinet\CabinetFacade',

),



use Andrew13\Cabinet\CabinetUpload;

class Upload extends CabinetUpload {

    protected $softDelete = true;

}
bash
$ php artisan cabinet:migration
bash
$ php artisan migrate
bash
$ php artisan cabinet:controller
$ php artisan cabinet:routes
bash
$ php artisan asset:publish andrewelkins/cabinet
bash
$ php artisan confide:routes --controller Uploader
bash
$ php artisan config:publish andrewelkins/cabinet
bash
$ php artisan cabinet:controller --restful
bash
$ php artisan cabinet:routes --restful