S. Mert ÖZTÜRK
S. Mert ÖZTÜRK
FFilament
Created by johncarter on 2/29/2024 in #❓┊help
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
FFilament
Created by Jr.Pikong on 2/20/2024 in #❓┊help
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
FFilament
Created by Jr.Pikong on 2/20/2024 in #❓┊help
Optimizing Table Load Speed
and how do you power up your application, with php artisan serve or serve direclty from public?
45 replies
FFilament
Created by Jr.Pikong on 2/20/2024 in #❓┊help
Optimizing Table Load Speed
Last thing for try, Can you share your env file, by hiding important infos
45 replies
FFilament
Created by Jr.Pikong on 2/20/2024 in #❓┊help
Optimizing Table Load Speed
yes not many but maybe some packages impact on performance. And we dont know which it is, if it is.
45 replies
FFilament
Created by S. Mert ÖZTÜRK on 2/20/2024 in #❓┊help
Any way to use filament with laravel 11
4 replies
FFilament
Created by Jr.Pikong on 2/20/2024 in #❓┊help
Optimizing Table Load Speed
Maybe your installed packages crush or impact some performance
45 replies
FFilament
Created by Jr.Pikong on 2/20/2024 in #❓┊help
Optimizing Table Load Speed
I only have one idea left: Install a new Laravel and filament and try the same table without installing anything else.
45 replies
FFilament
Created by Jr.Pikong on 2/20/2024 in #❓┊help
Optimizing Table Load Speed
So may we have problem with server setup, do you have any chance to try on diffrent server? or local.
45 replies
FFilament
Created by Jr.Pikong on 2/20/2024 in #❓┊help
Optimizing Table Load Speed
I've never tried it before, but all that formatting and other stuff might be delaying loading. In simpler terms, we can at least try and measure the difference.
45 replies
FFilament
Created by Jr.Pikong on 2/20/2024 in #❓┊help
Optimizing Table Load Speed
can u try to remove declare and simplify your table. It's just a guess
45 replies
FFilament
Created by Jr.Pikong on 2/20/2024 in #❓┊help
Optimizing Table Load Speed
oh sorry i didn't see it, my mistake. Which is your using database
45 replies
FFilament
Created by Jr.Pikong on 2/20/2024 in #❓┊help
Optimizing Table Load Speed
did you try php artisan icons:cache
45 replies
FFilament
Created by Bagus A on 11/2/2023 in #❓┊help
Accessing Form State
You need spesific livewire component i think, in livewire component you can check real time function
30 replies
FFilament
Created by Itachi on 11/2/2023 in #❓┊help
How redirect to another resources page
* $state return to input value, you can modify here, maybe use special video player
14 replies
FFilament
Created by Itachi on 11/2/2023 in #❓┊help
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
FFilament
Created by Itachi on 11/2/2023 in #❓┊help
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
FFilament
Created by Bagus A on 11/2/2023 in #❓┊help
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
FFilament
Created by Bagus A on 11/2/2023 in #❓┊help
Accessing Form State
But i think you want when all input is filled, right?
30 replies
FFilament
Created by Bagus A on 11/2/2023 in #❓┊help
Accessing Form State
For example; TextInput::make('title') ->live() ->afterStateUpdated(function (Get $get, Set $set, ?string $old, ?string $state) { if (($get('slug') ?? '') !== Str::slug($old)) { return; }
$set('slug', Str::slug($state)); })
30 replies