S. Mert ÖZTÜRK
Can I render a custom 403 page within the context of a panel?
Because this component is a dependent component. You can not use directly. Basicly you want 403 page but with left and top layout.
It's basic solution but you can try this;
- CTRL + u and copy all content,
- Clear inside of <main> tag and replace your 403 style (and clear wire tags)
- Additional you can use links static or for resource page access with this; CustomerResource::getUrl();
But it can be causes some problems if you use spa
3 replies
Optimizing Table Load Speed
Still slow. livewire re-render all component for little changes is too big problem. Hope caleb can do something for this on v4. I'm here for some trick, do you try pure pdo for get 50 records on same server, cauz 1.17s is still soooo big
45 replies
Any way to use filament with laravel 11
https://github.com/filamentphp/filament/pull/10972
For who one looking L11.
4 replies
How redirect to another resources page
And for view, you can use custom entries;
https://filamentphp.com/docs/3.x/infolists/entries/custom
in your view page;
ViewEntry::make('video')
->view('filament.infolists.entries.video-show')
php artisan make:infolist-entry VideoShow
It will create a view file at resources/views/filament/infolists/entries/video-show.blade.php
and in this view;
<div>
<video width="320" height="240" controls>
<source src="{{ $getState() }}" type="video/mp4">
</video>
</div>
14 replies
How redirect to another resources page
you can use file upload for video upload;
https://filamentphp.com/docs/3.x/forms/fields/file-upload
* for only videos ->acceptedFileTypes(['video/x-ms-asf'],['video/x-flv'],['video/mp4'],['application/x-mpegURL'],['video/MP2T'],['video/3gpp'],['video/quicktime'],['video/x-msvideo'],['video/x-ms-wmv'],['video/avi'])
14 replies
Accessing Form State
If it is what you want, simple you can do this;
//not important which input select one,
TextInput::make('title')
->live()
->afterStateUpdated(function (Get $get, Set $set, ?string $old, ?string $state) {
if ($get('input1') == "" or $get('input2') == "" or $get('input2') != "") {
return;
}
$set('slug', Str::slug($state));
})
By this way, you can control all input and if anyone was empty, not set new input
30 replies