Closed S-DICKSON closed 3 years ago
Slug is autogenerated if left empty but can be set to an arbitrary value.
This is the default behavior, but you're completely free to change this behavior in your application.
If you want to use this prepareForValidation()
method, the best is to customize the corresponding Form Requests:
https://vanilo.io/docs/1.2/form-requests#customizing-form-requests
This issue has been automatically marked as stale because it has not had recent activity. It will be closed within 3 days if no further activity occurs. Thank you for your contributions.
Question Should the user be allowed to store slugs that is the incorrect format?
$request = [ "name" => "Amazing Channel" "slug" => "Amazing Channel" ];
outcome
Expected
Possible Solution
or
https://laravel.com/docs/6.x/validation#prepare-input-for-validation