app/Http/Requests/RegisterRequest.php
/**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
Get the validation rules that apply to the request.
@return array
Get the validation rules that apply to the request . @return array
public function rules()
    {
        return [
            'name'  =>  ['required', 'max:100'],
            'email' =>  ['required', 'email:filter', 'unique:users'],
            'password'  =>  ['required', 'min:8', 'confirmed'],
            'password_confirmation'  =>  ['required', 'min:8', 'same:password'],
            'terms' =>  'required'
        ];
    }
public function rules ( ) { return [ 'name' => [ 'required' , 'max:100' ] , 'email' => [ 'required' , 'email:filter' , 'unique:users' ] , 'password' => [ 'required' , 'min:8' , 'confirmed' ] , 'password_confirmation' => [ 'required' , 'min:8' , 'same:password' ] , 'terms' => 'required' ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .