2017-06-09 09:02:52 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Http\Requests;
|
|
|
|
|
2017-06-20 00:50:25 +08:00
|
|
|
use App\Models\Airline;
|
2018-02-21 12:33:09 +08:00
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
2017-06-09 09:02:52 +08:00
|
|
|
|
2017-06-20 00:50:25 +08:00
|
|
|
class UpdateAirlineRequest extends FormRequest
|
2017-06-09 09:02:52 +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-20 00:50:25 +08:00
|
|
|
return Airline::$rules;
|
2017-06-09 09:02:52 +08:00
|
|
|
}
|
|
|
|
}
|