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 [
            'email' => 'required|email',
            'first' => 'required|string',
            'last' => 'required|string',
            'activation' => 'required|string||unique:users,code',
            'password' => 'required|confirmed',
        ];
    }
public function rules ( ) { return [ 'email' => 'required|email' , 'first' => 'required|string' , 'last' => 'required|string' , 'activation' => 'required|string||unique:users,code' , 'password' => 'required|confirmed' , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .