invoiceninja/app/Http/Requests/Project/EditProjectRequest.php

40 lines
802 B
PHP
Raw Permalink Normal View History

2020-10-08 09:25:39 +11:00
<?php
/**
* Invoice Ninja (https://invoiceninja.com).
*
* @link https://github.com/invoiceninja/invoiceninja source repository
*
2023-01-29 09:21:40 +11:00
* @copyright Copyright (c) 2023. Invoice Ninja LLC (https://invoiceninja.com)
2020-10-08 09:25:39 +11:00
*
2021-06-16 16:58:16 +10:00
* @license https://www.elastic.co/licensing/elastic-license
2020-10-08 09:25:39 +11:00
*/
namespace App\Http\Requests\Project;
use App\Http\Requests\Request;
class EditProjectRequest extends Request
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize() : bool
{
return auth()->user()->can('edit', $this->project);
2020-10-08 09:25:39 +11:00
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
//
];
}
}