Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

how to validate use unique in laravel 8 controller

 $request->validate([
            'name' => 'required',
            'email' => 'required|unique:Student',
            'password' => 'required|min:6',
            'mobile' => 'required',
            'address' => 'required',
        ]);
//unique:table_name
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #validate #unique #laravel #controller
ADD COMMENT
Topic
Name
8+5 =