PHP code example of sheenazien8 / hascrudactions

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

    

sheenazien8 / hascrudactions example snippets


"providers" => [
    Sheenazien8\Hascrudactions\HascrudactionsServiceProvider::class,
]
 artisan hascrudaction:make Employee

Route::hascrud('employee');

/**
 * Wrapper view, you can adjust static view like footer and header
 * put file in views path
 * layouts:
 * section:
 * javascript:
 */
'wrapper' => [
    'layouts' => 'layouts.app',
    'section' => 'content',
    'javascript' => 'javascript'
]

use Sheenazien8\Hascrudactions\Traits\HasLaTable;

class Employee extends Model
{
    use HasLaTable;
    //
}
bash
php artisan vendor:publish --provider="Sheenazien8\Hascrudactions\HascrudactionsServiceProvider"
routes/web.php
config/hascrudactions.php
resources/views/employee/components/table.blade.php
resources/views/employee/components/form.blade.php
$data