- Moved chat-related controllers, resources, requests, and DTOs into their respective `Chats` namespaces. - Updated route imports to reflect new namespace structure.
21 lines
333 B
PHP
21 lines
333 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests\Chats;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
class CreateChatRequest extends FormRequest
|
|
{
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'title' => 'nullable|string|max:255',
|
|
];
|
|
}
|
|
|
|
public function authorize(): bool
|
|
{
|
|
return true;
|
|
}
|
|
}
|