File "MassDestroyStatusRequest.php"
Full Path: /home/clickysoft/public_html/jmapi5.clickysoft.net/app/Http/Requests/Admin/MassDestroyStatusRequest.php
File size: 513 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
namespace App\Http\Requests\Admin;
use Gate;
use Illuminate\Foundation\Http\FormRequest;
use Symfony\Component\HttpFoundation\Response;
class MassDestroyStatusRequest extends FormRequest
{
public function authorize()
{
abort_if(Gate::denies('status_delete'), Response::HTTP_FORBIDDEN, '403 Forbidden');
return true;
}
public function rules()
{
return [
'ids' => 'required|array',
'ids.*' => 'exists:statuses,id',
];
}
}