Answers for "validation has filed in laravel request"

PHP
3

laravel exists validation

'state_id' => 'exists:states,id'
Posted by: Guest on January-18-2021
2

laravel request validate

public function store(Request $request)
{
    $validated = $request->validate([
        'title' => 'required|unique:posts|max:255',
        'body' => 'required',
    ]);

    // The blog post is valid...
}
Posted by: Guest on November-04-2021

Code answers related to "validation has filed in laravel request"

Browse Popular Code Answers by Language