File "DeleteRequest.php"
Full Path: /home/isoftco/public_html/hrm/app/Http/Requests/Admin/Department/DeleteRequest.php
File size: 604 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
namespace App\Http\Requests\Admin\Department;
use App\Http\Requests\AdminCoreRequest;
use App\Models\Department;
class DeleteRequest 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 [
];
}
}