Mark Snape
1.1K posts

Mark Snape
@snapey
https://t.co/jcqvqJ4ATg - web application development for self and others. Laravel enthusiast. Laracasts leaderboard #1
Mansfield, UK Katılım Aralık 2008
363 Takip Edilen449 Takipçiler

@AndyGriffithsX I’m holidaying in Turkey. Walking around in 34 degrees makes you feel a useless lump if you are not used to it.
English

@enunomaduro Perhaps you need an editor plugin that hides and autocomplete s them?
English

@TheHackersNews How many are in env.example and not production keys
English

🚨 260K Laravel APP_KEYs exposed on GitHub — over 600 apps vulnerable, and ~120 at immediate risk of remote code execution.
With keys + URLs leaked, attackers can hijack servers via deserialization.
Most devs likely unaware.
Full story + what to do → thehackernews.com/2025/07/over-6…
English

Loving Nectar Woode new EP. Think Nora Jones meets Jungle (the group). #onlyhappens #nectarwoode
English

@LukeDiebold @laracasts Little and often is the trick. I have learned so much from the forums. If I didn’t know the answer, I tried to find it. I also read solutions from other best answers. My start on Laracasts was over 10 years ago and I knew nothing at the time.
English

@snapey How is this even possible!?
Not just posts on @laracasts... answers where people actually clicked a button saying "this is the best reply"!
That's amazing. Do you have a daily routine, or just answer questions throughout the day when you have time?

English

I was really looking forward to fibre broadband installation today from @youfibre but they cancelled because of the wind. What's not acceptable is being pushed to the back of the queue and a wait until 10th Feb !
English

A really interesting article and stark reminder for anyone responsible for designing APIs especially if you have the mindset that this API is only for your frontend/backend integration. eaton-works.com/2024/12/19/mcd…
English

@bagwaa with 4 x 30 second rounds so that everyone can go the distance. What a disgrace and insult to boxing,
English

Laravel just patched a vulnerability affecting all versions github.com/advisories/GHS…
English

Hey Laravel Developers 👩💻
Let's look at a simple but precious tip for the architecture of your codebase.
The tip is building and calling functions/methods dynamically.
Sometimes we have to call functions based on certain logical conditions, but we can avoid the conditionals and call these functions dynamically if we can represent the function's name in a string.
For example, in the below code snippet, we are calling different discount methods by forming the function name dynamically and then making a call to it.
#laravel #php

English

@davorminchorov I have no problem with the controller firing off other activities and would only move code out if it can help streamline other controller functions
English

@snapey I am assuming you’ll leave the code as is besides what you mentioned. Nothing else?
English

❓How would you refactor this Laravel code?
Imagine that you join a startup and your first task is to refactor the main office reservation controller code shown in the picture below to be more maintainable. You have all of the time in the world.
Would you move all of the code in an action class? a service class? A job class? Something else?
Would use use some specific design patterns and principles? Would you rewrite it completely from scratch?
What's your ideal refactoring approach to make this code more maintainable in the future?

English
Mark Snape retweetledi

@PovilasKorop The first thing I would refactor is to ensure that subMenu is always present so that the isset is not required
English

Laravel question for discussion.
I'm typically strongly against using @php in Blade.
it's against MVC.
But, to assign a variable and then repeat it FOUR times below, probably legit?
That said, in this example, is `$hasSubmenu` that much shorter than `isset($m['submenu'])`?

English

@PovilasKorop I feel dirty when I see this syntax. Far more understandable is
foreach(range(1,5) as $i)
English









