phpvms/app/Http/Requests/CreateAirlineRequest.php

31 lines
507 B
PHP
Raw Normal View History

2017-06-09 09:02:52 +08:00
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
2017-06-20 00:50:25 +08:00
use App\Models\Airline;
2017-06-09 09:02:52 +08:00
2017-06-20 00:50:25 +08:00
class CreateAirlineRequest 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
}
}