cattr-app/server-application

View on GitHub
app/Http/Requests/TaskComment/ListTaskCommentRequest.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace App\Http\Requests\TaskComment;

use App\Http\Requests\CattrFormRequest;
use App\Models\Status;
use App\Models\TaskComment;

class ListTaskCommentRequest extends CattrFormRequest
{
    public function _authorize(): bool
    {
        return $this->user()->can('viewAny', TaskComment::class);
    }

    public function _rules(): array
    {
        return [];
    }
}