1. Go to this page and download the library: Download oldy/crud-module 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/ */
oldy / crud-module example snippets
namespace Modules\Users\Http\Forms;
use Kris\LaravelFormBuilder\Form;
use Modules\Users\Entities\User;
class GroupForm extends Form
{
public function buildForm()
{
$this
->add('title', 'text', [
'rules' => '' => User::class,
'multiple' => true,
'selected' => function ($data) {
return $data ? array_pluck($data, 'id') : [];
},
'attr' => [
'class' => 'multi-select'
]
])
;
}
}