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 [
            'first_name' => 'required|alpha|max:50',
            'last_name' => 'required|alpha|max:100',
            'email' => 'required|email|max:255',
            'password' => [
                'required', 
                Password::min(8)
                    ->numbers()
                    ->symbols()
            ]
        ];
    }
public function rules ( ) { return [ 'first_name' => 'required|alpha|max:50' , 'last_name' => 'required|alpha|max:100' , 'email' => 'required|email|max:255' , 'password' => [ 'required' , Password :: min ( 8 ) -> numbers ( ) -> symbols ( ) ] ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .