-
app/Http/Requests/Project/StoreProjectRequest.php
Open in GitHubuse Illuminate\Foundation\Http\FormRequest; class StoreProjectRequest extends FormRequest { public function authorize() { return auth()->user()->can('project-create'); } public function rules() { return [ 'title' => 'required', 'description' => 'required', 'status_id' => 'required', 'user_assigned_id' => 'required', 'user_created_id' => '', 'client_external_id' => 'required', 'deadline' => '' ]; } }