@Luke I’ve implemented both. After I found the JSON spec, I put a PR to a #Laravel RSS package, which it makes super simple to provide both. Though I’m not sure what support the JSON format has for feeds.
This Laravel tip never gets old! If you wanna throw in a bunch of columns right after an existing column, just go ahead and rock that "after()" method. 💅🏻
@nunomaduro I do have to admit that I’ve never understood why I’d want to do that:
I can (and do) select columns in any order if I want to inspect the data in my sql client, and my application doesn’t care about column sequence at all.
And didn’t MySQL require a full table rebuild until quite recently to insert a column elsewhere than in the end?
Don’t get me wrong: it’s nice to see the option exists, but I personally have never seen the use case for it 🤷♂️
@ramsey OK
For the love of God learn #PHP before touching a framework like #symfony or #laravel
There’s a pretty good #laravel learning path at Laracasts that starts with #PHP
I've got a weird thing going on when trying to test an Http request made with #Laravel.
I'm using the HTTP client with a custom middleware to modify the request using
->withMiddleware(
Middleware::mapRequest()
)
When doing the Http::assertSent() the request that is passed to the callback does not seem like it's passed through the middleware, although when I inspect the response, the request seem correct. Did I find a bug? Help! #PHP
Another thing I am really missing in #Laravel: Something like the #Symfony profiler. Getting information like which queries are executed or which events are dispatched always seem to need some code being manually added. IMO a framework should log this information somewhere by default if it is run in the development environment.
Next security tip for https://securinglaravel.com is queued and ready to go tomorrow!
Here's a hint for the topic: What do Telescope and Clockwork have in common?🤔
(I've snuck a two cool extras in there too. 🤫) #PHP#Laravel
Security Tip #50: Resource Controllers and resource authorisation are awesome, but be careful if you use custom controller actions as well, as they'll bypass the authorisation! 😲🔓
So, naturally, I used this to download a client's database! 😈🥷 https://securinglaravel.com/p/security-tip-watch-out-for-resource#Laravel
I'm a software developer working primarily in #php and #laravel, but also dabble with gamedev in #unity in my spare time.
I'm also a small time #twitch streamer going live on most weekends for a few hours each evening.
I'm going to try to post on here often about basically whatevers bouncing around my skull at the time. Could be gym progress or shitposting or whatever hobby I'm working on this week.
From #Laravel news: Participate in the latest Developer Nation survey, accessible to all developers and no-code software creators, to share your own opinion about your compensation and what would you like to change in the Developer Ecosystem. https://www.developereconomics.net/?member_id=laravel&utm_medium=nl_2
Ok, Security Tip #50 is locked and ready to go out in 2 days. This week I'm covering a vulnerability I discovered in a recent audit that lead to complete PII exposure... 😱
Super simple to find and exploit, due to a single line overlooked... https://securinglaravel.com#PHP#Laravel
We've identified several core concerns: Users, Locations, Customers... that might be candidates for modules.
Some 3rd party integrations, like Google Maps API, Logging/Monitoring might be Services living in the main app.
But maybe this is backwards? Maybe things that might be swapped out (Google maps vs Mapquest Maps) would be better as modules and the core concerns in the main app?
Just sat down to write my Security Tip for this week and realised this one is Security Tip #50! 😲 🎂
To celebrate, I'll sneak a special 50% off discount code into the email somewhere, valid for 24 hours only.
Sign up so you don't miss it: https://securinglaravel.com #PHP#Laravel
Just sat down to write my Security Tip for this week and realised this one is Security Tip #50! 😲 🎂
To celebrate, I'll sneak a special 50% off discount code into the email somewhere, valid for 24 hours only.
Sign up so you don't miss it: https://securinglaravel.com #PHP#Laravel