38 lines
775 B
PHP
38 lines
775 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace App\Http\Requests\Hospital;
|
||
|
|
|
||
|
|
use Illuminate\Foundation\Http\FormRequest;
|
||
|
|
|
||
|
|
class HospitalStoreRequest 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 [
|
||
|
|
'name' => 'required',
|
||
|
|
'contact_name' => 'required',
|
||
|
|
'email' => 'required',
|
||
|
|
'number' => 'required',
|
||
|
|
'photo' => 'required',
|
||
|
|
'city' => 'required',
|
||
|
|
'state' => 'required',
|
||
|
|
'address' => 'required',
|
||
|
|
];
|
||
|
|
}
|
||
|
|
}
|