Initial user management in admin panel

This commit is contained in:
Nabeel Shahzad
2017-11-29 18:01:07 -06:00
parent f8cf430db8
commit f52b4bb4d9
17 changed files with 491 additions and 5 deletions

View File

@@ -0,0 +1,30 @@
<?php
namespace App\Http\Requests;
use App\Models\User;
use Illuminate\Foundation\Http\FormRequest;
class UpdateUserRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return User::$rules;
}
}