Example of Form requests in Bottelet/DaybydayCRM

File app/Http/Requests/Project/StoreProjectRequest.php (link to Github)
use 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' => ''
        ];
    }
}

Additional resources on Form requests: