@benjamincrozat Passport isnβt forgotten, it just solves a different problem.
Sanctum = lightweight session/token auth for first-party apps.
Passport = full OAuth2 with client credentials, scopes, and machine-to-machine flows.
When you need real OAuth2, Sanctum canβt replace it.
GIVEAWAY TIME! π
I'm giving away a digital copy of The Web Dev's Guide to Freelancing (PDF/EPUB)!
To enter, you just need to like and retweet this post.
I'll announce the winner on Friday at 1pm (UK time)π
https://t.co/ZYLUT5De3j
Laravel Tipπ‘: Avoid Columns Ambiguity
I'm sure we've all encountered column name ambiguity when building queries at least once. To avoid that, you can use the "qualifyColumn" method, which prefixes the column with the table name π
#laravel
@mateusjatenee Faced the same issue: super slow, laggy scrolling, and adding files took forever to show up in the file tree. Re-indexing on every project reopen took minutes! Disabled all plugins yesterday, and it's smooth again. Now to find the culprit plugin.
@AshAllenDesign I believe that, in the long run, the Client setup time will be reduced when using Saloon. However, I'm considering building a simple package to speed up the Client setup using the Http facade. It could be a neat solution!π
@AshAllenDesign A few years ago, I switched from Alfred to Raycast and never looked back! Raycast can do so much more than you initially think you need. It's been amazing! π
What are you using right now?
Need to test your app's behaviour as if it's in a different environment, e.g. production?
#Laravel's App facade exposes a `detectEnvironment` public method that allows you to pass a callback to resolve the environment (it will only run once).
πSunday tip for #Laravel folks!
Another typical use-case of my quoted tweet is with timestamp columns.
Say you have an `activated_at` DB column, you want a nice and easy way to set that column to the current timestamp when you receive a boolean flag from the frontend? π