File "UpdatePurchaseOrderAdminNotesRequest.php"

Full Path: /home/clickysoft/public_html/jmapi5.clickysoft.net/app/Http/Requests/Admin/UpdatePurchaseOrderAdminNotesRequest.php
File size: 572 bytes
MIME-type: text/x-php
Charset: utf-8

<?php

namespace App\Http\Requests\Admin;

use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Support\Facades\Gate;

class UpdatePurchaseOrderAdminNotesRequest extends FormRequest
{
    public function authorize()
    {
        return Gate::allows('purchase_order_create');
    }

    public function rules()
    {
        return [
            'admin_notes' => [
                'required',
            ],
        ];
    }

    public function messages()
    {
        return [
            'admin_notes.required' => 'Please enter admin notes.',
        ];
    }
}