PHP code example of achillesp / laravel-crud-forms
1. Go to this page and download the library: Download achillesp/laravel-crud-forms 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/ */
achillesp / laravel-crud-forms example snippets
Route::resource('/posts', 'PostController');
use App\Post;
use Achillesp\CrudForms\CrudForms;
class PostController extends Controller
{
use CrudForms;
public function __construct(Post $post)
{
$this->model = $post;
}
}