27 lines
746 B
PHP
27 lines
746 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests\Website;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
class UpdateProjectRequest extends FormRequest
|
|
{
|
|
public function authorize(): bool
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'category_id' => 'sometimes|required|exists:website_project_categories,id',
|
|
'image1' => 'sometimes|required|string|max:255',
|
|
'image2' => 'sometimes|required|string|max:255',
|
|
'title_fa' => 'sometimes|required|string|max:255',
|
|
'title_en' => 'sometimes|required|string|max:255',
|
|
'description_fa' => 'sometimes|required|string',
|
|
'description_en' => 'sometimes|required|string',
|
|
];
|
|
}
|
|
}
|