You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
521 B
PHTML
25 lines
521 B
PHTML
9 months ago
|
<?php
|
||
|
|
||
|
namespace App\Http\Requests;
|
||
|
|
||
|
use Illuminate\Foundation\Http\FormRequest;
|
||
|
|
||
9 months ago
|
class StorePostRequest extends FormRequest
|
||
9 months ago
|
{
|
||
|
public function rules(): array
|
||
|
{
|
||
|
return [
|
||
|
'title' => ['required', 'string', 'max:255'],
|
||
|
'content' => ['required'],
|
||
|
'location' => ['nullable'],
|
||
|
'files' => ['nullable', 'mimes:jpg,jpeg,png', 'max:20000'],
|
||
|
'tags' => ['nullable'],
|
||
|
];
|
||
|
}
|
||
|
|
||
|
public function authorize(): bool
|
||
|
{
|
||
|
return true;
|
||
|
}
|
||
|
}
|