File "StoreStatusRequest.php"

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

<?php

namespace App\Http\Requests\Admin;

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

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

    public function rules()
    {
        return [
            'name' => [
                'string',
                'max:50',
                'required',
                'unique:statuses',
            ],
        ];
    }
}