2017-06-22 01:10:25 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Http\Requests;
|
|
|
|
|
|
|
|
use App\Http\Requests\Request;
|
2017-06-22 02:44:30 +08:00
|
|
|
use App\Models\Rank;
|
2017-06-22 01:10:25 +08:00
|
|
|
|
2017-06-22 09:18:01 +08:00
|
|
|
class UpdateRankRequest extends Request
|
2017-06-22 01:10:25 +08:00
|
|
|
{
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 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()
|
|
|
|
{
|
2017-06-22 02:44:30 +08:00
|
|
|
return Rank::$rules;
|
2017-06-22 01:10:25 +08:00
|
|
|
}
|
|
|
|
}
|