@@TapanSharma. I am surprised you didn't say "it's just an educational video there's no need take it seriously" which would've been a good answer also, but anyway. the problem with your approach is that it modifys the whole url which means that if there's any value after the page parameter it will also be prased, and if there's any other parameter before the page parameter it will also cause an error, so i came up with these solutions that will only modify the required paramter: ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ```php function getValueAfterStringUntilNaN(text, separator) { const index = text.indexOf(separator); if (index !== -1) { let value = ""; for (let i = index + separator.length; i < text.length; i++) { if (!isNaN(text[i])) { value += text[i]; } else { break; } } return value; } else { return null; } } const pageNumberUpdated = (link) => { const currentPage = getValueAfterStringUntilNaN(link.url, "page="); router.visit(link.url.split(currentPage)[0] + currentPage); } ``` ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// however, it's very unreadable so i thought there must be better approach, and then i found out that javascript has built-in functions to deal with url's, so i came up with this which is way more readable and potentially better: //////////////////////////////////////////////////////////////////////////////////////// ```php const nextPage = (link) => { const url = new URL(link.url); const params = url.searchParams; url.searchParams.set('page', params.get('page')); router.visit(url.href); } ``` /////////////////////////////////////////////////////////////////////////////////////
i got the error from console when i am using reverb in filament POST imb.test/broadcasting/auth 403 (Forbidden) me @ echo.js?v=3.2.110.0:1 imb.test is my APP_URL
You can check out the Full Livewire Course here: www.udemy.com/course/learn-livewire-from-scratch/?couponCode=AB4014A6DDE300BA40EE&referralCode=D622459D8549D03B7B8D
This tutorial is a part of my new Course where we'll build multiple practical projects with the Laravel, Inertia.js and Vue 3 stack, and to get an idea about the projects that we'll build along the way, you can check out the course landing page here: www.udemy.com/course/laravel-with-inertia-and-vue/?couponCode=6EEE73BE73A2B230F934&referralCode=7C65E5BADEAB1FB9BD49
not really, my blog is based in Inertia and Svelte, and I never faced issues regarding SEO, you just need to run a job on your server and that will enable SSR, you can check the documentation to learn more about it
Link to the Course: www.udemy.com/course/realtime-chat-app-with-laravel-vue-and-pinia/?couponCode=9B7205A2E70A046B2F99&referralCode=4E6113425279B837A950
Thank you for the video it's been very helpful. But got a question : how to deal with temporary files. my app users deals with importing a lot, so I figure out why not using a temp folder, and actually livewire and Laravel has one implemented with filament 3 ->storeFiles(false) makes the file in a temp-livewire folder inside the storage folder, but when dd the $file it doesn't show the file path, instead it's showing the temp object instead and casting this error : "C:\xampp\htdocs\Project-test\public\storage/C:\Users\mounir\AppData\Local\Temp\phpDD52.tmp" // app\Filament\Resources\OperationResource.php:490
That depends on how you'll display the data, if you paginate the data, it wont matter how many records we have in the database, but its important to eager load the data while querying it from the database.
I followed your instruction sir. But im getting this error all the time SQLSTATE[HY000]: General error: 1364 Field 'name' doesn't have a default value. Both my equipment table and excel doesnt have a name column it may be because im trying to find the id of the FK using it's name on same query as what u did sir. can you help me
Its a paid course hosted on the Udemy Platform, if you're interested, you can check it out from this Link: www.udemy.com/course/referral-system-with-laravel/?referralCode=9CEEA8CB572C697991BC
Hi Instead of bulk action could we use this export action in headerActions() In filament when I try to do this with headerActions() i do not getting any record
hai bro i added render hook and this to to my view blade but is not fired up anything window.addEventListener('DOMContentLoaded', function () { window.Echo.private('App.Models.User.2') .listen('database-notifications.sent', (event) => { console.log('yojojojosss'); const messageSound = new Audio('{{ asset('sounds.mp3') }}'); messageSound.play(); }); }); i just want to play notif sound while databasenotif event fired thx bro