{
use InteractsWithForms;
protected static ?string $navigationIcon = 'heroicon-o-document-text';
protected static string $view = 'filament.pages.chatroom-page';
protected static ?string $slug = 'room/{id}';
protected static string $label = '';
protected static ?string $title = '';
protected static ?int $id = null;
protected static $reservation = 12;
protected $data = [];
public static function shouldRegisterNavigation(): bool
{
return false;
}
public function mount()
{
$chatroom = Chatroom::find(request()->id);
self::$reservation = $chatroom->reservation;
}
public function form(Form $form): Form
{
return $form
->schema([
RichEditor::make('content')
->label('')
->required()
]);
}
}
{
use InteractsWithForms;
protected static ?string $navigationIcon = 'heroicon-o-document-text';
protected static string $view = 'filament.pages.chatroom-page';
protected static ?string $slug = 'room/{id}';
protected static string $label = '';
protected static ?string $title = '';
protected static ?int $id = null;
protected static $reservation = 12;
protected $data = [];
public static function shouldRegisterNavigation(): bool
{
return false;
}
public function mount()
{
$chatroom = Chatroom::find(request()->id);
self::$reservation = $chatroom->reservation;
}
public function form(Form $form): Form
{
return $form
->schema([
RichEditor::make('content')
->label('')
->required()
]);
}
}