-
Notifications
You must be signed in to change notification settings - Fork 43
Available options when you use make:crud command
misterdebug edited this page Sep 26, 2022
·
2 revisions
To call make:crud
you can do this :
php artisan make:crud nameOfYourCrud "column1:type, column2"
- column is the name of your column sql (ID field is already present, don't add it)
-
type is optional and it's the sql type of your column (by default is string). 3 choices are available :
- string is varchar in sql and converted by an input type text in html
- text is text in sql and converted by a textarea in html
- integer is int in sql and converted by an input type text in html