Browse Source

Tweak default request setup.

Taylor Otwell 10 years ago
parent
commit
c398cda797

+ 2 - 2
app/Http/Requests/Auth/LoginRequest.php

@@ -1,8 +1,8 @@
 <?php namespace App\Http\Requests\Auth;
 
-use Illuminate\Foundation\Http\FormRequest;
+use App\Http\Requests\Request;
 
-class LoginRequest extends FormRequest {
+class LoginRequest extends Request {
 
 	/**
 	 * Get the validation rules that apply to the request.

+ 2 - 2
app/Http/Requests/Auth/RegisterRequest.php

@@ -1,8 +1,8 @@
 <?php namespace App\Http\Requests\Auth;
 
-use Illuminate\Foundation\Http\FormRequest;
+use App\Http\Requests\Request;
 
-class RegisterRequest extends FormRequest {
+class RegisterRequest extends Request {
 
 	/**
 	 * Get the validation rules that apply to the request.

+ 9 - 0
app/Http/Requests/Request.php

@@ -0,0 +1,9 @@
+<?php namespace App\Http\Requests;
+
+use Illuminate\Foundation\Http\FormRequest;
+
+abstract class Request extends FormRequest {
+
+	//
+
+}