File "ShowRequest.php"

Full Path: /home/isoftco/public_html/hrm/app/Http/Requests/Admin/Payroll/ShowRequest.php
File size: 507 bytes
MIME-type: text/x-php
Charset: utf-8

<?php

namespace App\Http\Requests\Admin\Payroll;

use App\Http\Requests\AdminCoreRequest;
use App\Models\Leavetype;
use App\Models\Payroll;

class ShowRequest extends AdminCoreRequest
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        $payroll = Payroll::find($this->route('payroll'));
        return admin() && $payroll;
    }


    public function rules()
    {
        return [

        ];
    }
}