PHP code example of aecor / statusable

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

    

aecor / statusable example snippets


return [
    'status-table-name' => 'statuses'
];
bash
php artisan vendor:publish --provider="Aecor\Status\StatusServiceProvider" --tag="migrations"
php artisan migrate
 php
$user->statuses;
 php
$user->status();