Validation function is implemented in crud-d-scaffold,
We also modified to hold Input data.
■github – dog-ears/crud-d-scaffold
It is set simply by adding ‘validation’ to the column schema.
... "input_type": "text", "varidate": "max:10|unique",/* [default:""] */ "faker_type": "name()", ...
If you want to actually use it please try the sample data in the following way.
How to installation and execution
composer require dog-ears/crud-d-scaffold
When executed, the following commands have been added.
- 'crud-d-scaffold:setup' : Setup crud-d-scaffold with bootstrap 3
This completes the preparation.
Let’s register the sample.
(i) Public resources
php artisan vendor:publish --tag=public --force
(ii) Copy crud-d-scaffold.json.sample in package to laravel project root. and rename it.
cp ./vendor/dog-ears/crud-d-scaffold/crud-d-scaffold_case0007.json ./crud-d-scaffold.json
(iii) run crud-d-scaffold:setup
php artisan crud-d-scaffold:setup -f
Overwriting the file with -f option.
For the first time, the f option is unnecessary. (No problem with putting on)
(iv) run migration and seeding
php artisan migrate php artisan db:seed
It’s all over.
Please check your application.
If you want to modify the application structure,
After running [migrate: reset], delete the migration file (/ database / migrations /) and then
execute [ Crud-d-scaffold: setup-f ]
Feedback, bug reports, etc.
If you have something, I’m happy to get in touch with you.