TIF_E41200744/app/Http/Requests/UpdateCriteriaRequest.php

32 lines
543 B
PHP

<?php
namespace App\Http\Requests;
use App\Models\Criteria;
use Illuminate\Foundation\Http\FormRequest;
class UpdateCriteriaRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
$rules = Criteria::$rules;
return $rules;
}
}