first commit
This commit is contained in:
20
app/Http/Requests/Reports/PlannedTimeReportRequest.php
Normal file
20
app/Http/Requests/Reports/PlannedTimeReportRequest.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Requests\Reports;
|
||||
|
||||
use App\Http\Requests\CattrFormRequest;
|
||||
|
||||
class PlannedTimeReportRequest extends CattrFormRequest
|
||||
{
|
||||
public function _authorize(): bool
|
||||
{
|
||||
return auth()->check();
|
||||
}
|
||||
|
||||
public function _rules(): array
|
||||
{
|
||||
return [
|
||||
'projects' => 'nullable|exists:projects,id|array',
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user