- in {users} folder add search.blade.php have only inputs without form tag
- in Model have scopeFilter in this scope can add all your form conditions
14- Email System
features
1- on each controller have 3 properties
* use_form_ajax => if true, form create / update will submit using ajax and display validation errors if have, after success will redirect to any page you set it on store method
* use_button_ajax => if true, link create and update and delete will use ajax [ the form will open in modal ]
* full_page_ajax or make use_form_ajax && use_button_ajax is true, open form and submit will do in the same page, no have redirect
2- have command to create
- Model with relations & fillable & scope filter and slug method to display the row name in breadcrumb section
- Request class with all validations and attributs translation
- Datatable class with load relations & columns & multidelete / create buttons
- Service class to handle create / update
- Controller with some method
- append translation columns in translation files
- append routes in route file
- create new menu for new model
- create form blade with all inputs from fillable
Use Command
1- create your migration table in make migrate
some Notes:
- to create translation column with type json, please add comment ('translations')
- to create input image in form add comment ('image') for the column
- to create input video in form add comment ('video') for the column
- to create input audio in form add comment ('audio') for the column
- to create input file in form add comment ('file') for the column
2- run this command
php artisan make:crud table_name
and can append all created file in specific new dir, use this argument '--namespace=New'
will append to namespace for class the namespace argument