initial commit
This commit is contained in:
24
app/Http/Requests/UpdateModulePriceRequest.php
Normal file
24
app/Http/Requests/UpdateModulePriceRequest.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Requests;
|
||||
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class UpdateModulePriceRequest extends FormRequest
|
||||
{
|
||||
public function authorize(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
'module' => 'required|string',
|
||||
'monthly_price' => 'required|numeric|min:0',
|
||||
'yearly_price' => 'required|numeric|min:0',
|
||||
'name' => 'nullable|string|max:255',
|
||||
'image' => 'nullable|image|mimes:jpeg,png,jpg,gif|max:2048',
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user