PHP code example of youbar / easy-crud
1. Go to this page and download the library: Download youbar/easy-crud 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/ */
youbar / easy-crud example snippets
class PostController extends CrudController
{
protected string $model = Post::class;
}
Route::crud('posts', PostController::class);
'conventions' => [
'resource' => ['App\Http\Resources\{Model}Resource'],
],
bash
php artisan easy-crud:conventions Post