You completely misunderstand what $fillable is for. It is NOT to stop users from updating fields in your database! It is to stop YOU from updating fields in your own database by accident from other parts of your application. If admin fields are supposed to be updatable by mass assignment by your application, then make them available to your application. It's not about security against your users, it's about protecting your models from your application. (It's a basic principle of OOP called "Encapsulation" -- like making methods private or protected.) Validation should ALWAYS be used for any incoming user data. $fillable is *not* a replacement for that, nor has it ever been.
What about transactions within Laravel Octane? How using single connection affects transactions? And what about MySQL nested transactions emulation with savepoints in that case? Will it lead to any problems?
Hi, Great tutorial. I've used Tenancy with Multi Tenant & single DB. I need a functionality to ghost login my admin as a tenant user. Could you help me out with that please, if possible.
Hi, Great tutorial. I've used Tenancy with Multi Tenant & single DB. I need a functionality to ghost login my admin as a tenant user. Could you help me out with that please, if possible.
Great video! I'm running a similar logic on my projects, and did some improvements following your video. But recently I had to migrate my server from nginx to swoole so that I can use a websocket on my project, to my surprise swoole doesn't respect the tenat configuration, it only loads the first configuration set. Have you ran into this problem or something similar? I've tried to reset the configuration class on the swoole configuration, change the bootstrap to reset the configuration for every request, purge the connections before editing it, clearly i'm misunderstanding some key feature of swoole. If you could give some light, I'd be very glad! Thank you anyway
Help me i had doubt , i login using auth: attempt but the auth user is not working in dashboard controller so it is keep on redirecting to the login page. even auth is not working in different function of login controller .
Hello Sir! Thank you so much! It's too easy to convert an existing app with this. But how can we manage it in a single domain? I don't want to add domains like you explain.
I am using multiple connections, is this PDO still working in that situation? Will they have multiple objects also? My concern is that the application should not have to authenticate every time it does a query if the PDO in multiple connections application
Amazing video 🙌🏻🙌🏻🙌🏻. Thank you so much !!! Really clear and useful. There is so much to learn from here. All the different functions and config structures. Very well explained and demoed 🙏🏻🙏🏻🙏🏻
Hey @themsaid, will choosing a connection pooling package help in eliminating too many connection issue? recently I am facing this issue and not sure what to do?
Would you recommend using Client Grant Credentials OAth flow if am intending to use the BFF to serve a NextJS app and a mobile App? That's to say the BFF can use the API Key (Generated by the actual backend using Client Grant Credentials) to make calls to the backend API. Note that NextJS and Mobile apps are for public usage like e-commerce. Also the actual backend can be serving another backoffice frontend app using user based tokens.
Amazing video! I have one question regarding the adding to a static array. If only the container instance is cached and cloned, how come code that isn’t in the scope of the framework is affected by the stateful behavior?
In php-fpm, we can configure child processes count created. What about swoole-laravel? Does 1 instance process all requests? If my end point just dispatches a job (in mysql), is this should be in the same coroutine, or should it be dispatched?
Hello Sir Thanks for your video i have replayed the video many times i succeed to install laravel octane but when it comes to check a route to make a redirection i'm lost
Thanks Mohamed, pls help me in something.... when i use a post request in jquery.... and my session expire... my aplication dont redirect to login... i dont know how manage this case... i want when i call a post request and my session was expire... redirect to login.... but is just in post because in a get request its ok.... Sorry for my english and thanks if u can help me please!