Type Ratings | New Feature (#1360)
* Type Ratings Adding "Type Rating" definition and assignment possibility to v7 core. * Update ProfileController.php * StyleFix 1 * Update settings.yml Change description text as requested
This commit is contained in:
19
app/Http/Requests/CreateTypeRatingRequest.php
Normal file
19
app/Http/Requests/CreateTypeRatingRequest.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Requests;
|
||||
|
||||
use App\Contracts\FormRequest;
|
||||
use App\Models\Typerating;
|
||||
|
||||
class CreateTypeRatingRequest extends FormRequest
|
||||
{
|
||||
/**
|
||||
* Get the validation rules that apply to the request.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function rules(): array
|
||||
{
|
||||
return Typerating::$rules;
|
||||
}
|
||||
}
|
||||
19
app/Http/Requests/UpdateTypeRatingRequest.php
Normal file
19
app/Http/Requests/UpdateTypeRatingRequest.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Requests;
|
||||
|
||||
use App\Contracts\FormRequest;
|
||||
use App\Models\Typerating;
|
||||
|
||||
class UpdateTypeRatingRequest extends FormRequest
|
||||
{
|
||||
/**
|
||||
* Get the validation rules that apply to the request.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function rules(): array
|
||||
{
|
||||
return Typerating::$rules;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user