Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
gilour
/
app
/
Http
/
Requests
/
Admin
/
Department
:
EditRequest.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php namespace App\Http\Requests\Admin\Department; use App\Http\Requests\AdminCoreRequest; use App\Models\Department; class EditRequest extends AdminCoreRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { $department = Department::find($this->route('department')); return admin() && $department; } /** * Get the validation rules that apply to the request. * * @return array */ public function rules() { return [ ]; } }