1234567891011121314151617181920212223242526272829303132333435 |
- <?php
- namespace App\Http\Requests\API\Task;
- use App\Http\Requests\RuleHelper;
- use Illuminate\Foundation\Http\FormRequest;
- use Illuminate\Validation\Rule;
- class AssignRequest extends FormRequest
- {
- use RuleHelper;
- public function authorize(): bool
- {
- return true;
- }
- public function rules(): array
- {
- return $rules = [
- 'assign' => [
- Rule::exists('users', 'id')->where($this->userCompanyWhere()),
- ],
- ];
- }
- }
|