invoiceninja/app/Http/Requests/ExpenseCategory/BulkExpenseCategoryRequest.php

41 lines
825 B
PHP
Raw Normal View History

2020-10-13 15:08:56 +11:00
<?php
/**
* Invoice Ninja (https://invoiceninja.com).
*
* @link https://github.com/invoiceninja/invoiceninja source repository
*
2022-04-27 13:20:41 +10:00
* @copyright Copyright (c) 2022. Invoice Ninja LLC (https://invoiceninja.com)
*
2021-06-16 16:58:16 +10:00
* @license https://www.elastic.co/licensing/elastic-license
*/
2020-10-13 15:08:56 +11:00
namespace App\Http\Requests\ExpenseCategory;
use App\Http\Requests\Request;
2020-11-25 15:19:52 +01:00
use App\Utils\Traits\BulkOptions;
2020-10-13 15:08:56 +11:00
class BulkExpenseCategoryRequest extends Request
2020-10-13 15:08:56 +11:00
{
use BulkOptions;
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
2020-11-25 15:19:52 +01:00
return auth()->user()->isAdmin();
2020-10-13 15:08:56 +11:00
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [];
}
}