Mark Snape

1.1K posts

Mark Snape

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
Mark Snape
Mark Snape@snapey·
@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
0
0
0
33
Andy Griffiths
Andy Griffiths@AndyGriffithsX·
I’m having a great holiday with my family ☀️ But for the first time in my 41 years I’m feeling overweight and sluggish 😢 Age and lifestyle has caught up with me. Anyone relate? I need a system. I need an app ✅ I may as well just open source my own wellbeing app right?
Andy Griffiths tweet media
English
9
1
7
568
Mark Snape
Mark Snape@snapey·
@enunomaduro Perhaps you need an editor plugin that hides and autocomplete s them?
English
0
0
0
95
nunomaduro
nunomaduro@enunomaduro·
i've a dream
nunomaduro tweet media
English
173
9
554
89.3K
The Hacker News
The Hacker News@TheHackersNews·
🚨 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
9
81
190
65K
Jeffrey Way
Jeffrey Way@jeffrey_way·
Who is making incredible PHP and Laravel educational content...and doesn't already work at Laravel or Laracasts?
English
82
12
267
38.1K
Mark Snape
Mark Snape@snapey·
@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
0
0
2
26
Luke Diebold
Luke Diebold@LukeDiebold·
@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?
Luke Diebold tweet media
English
1
0
0
31
Mark Snape
Mark Snape@snapey·
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
0
0
0
249
Mark Snape
Mark Snape@snapey·
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
0
0
0
168
Mark Snape
Mark Snape@snapey·
@bagwaa with 4 x 30 second rounds so that everyone can go the distance. What a disgrace and insult to boxing,
English
0
0
0
31
Shruti Balasa
Shruti Balasa@shrutibalasa·
The last thing I expected to see on a self check-in counter at Delhi airport was some HTML!
Shruti Balasa tweet media
English
7
0
28
2.3K
Aniket Magadum
Aniket Magadum@magadum_aniket·
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
Aniket Magadum tweet media
English
22
12
137
9.9K
Mark Snape
Mark Snape@snapey·
@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
0
0
2
74
Davor Minchorov
Davor Minchorov@davorminchorov·
@snapey I am assuming you’ll leave the code as is besides what you mentioned. Nothing else?
English
2
0
0
285
Davor Minchorov
Davor Minchorov@davorminchorov·
❓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?
Davor Minchorov tweet media
English
14
2
15
3.2K
Mark Snape retweetledi
Simon Bennett
Simon Bennett@MrSimonBennett·
Matt on his way to work today
Simon Bennett tweet media
English
0
1
10
681
Mark Snape
Mark Snape@snapey·
@PovilasKorop The first thing I would refactor is to ensure that subMenu is always present so that the isset is not required
English
0
0
0
46
Povilas Korop | Laravel Courses Creator & Youtuber
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'])`?
Povilas Korop | Laravel Courses Creator & Youtuber tweet media
English
66
2
97
18.8K
Mark Snape
Mark Snape@snapey·
@PovilasKorop I feel dirty when I see this syntax. Far more understandable is foreach(range(1,5) as $i)
English
0
0
4
145
Povilas Korop | Laravel Courses Creator & Youtuber
Whenever I see a `for` loop with starting number 1 but ending "less than X" instead of "equal to X", I feel.. weird. Nope: for ($i=1; $i < 6; $i++): Yup: for ($i=1; $i <= 5; $i++): Future devs will thank you. Or is it just me overreacting?
Povilas Korop | Laravel Courses Creator & Youtuber tweet media
English
8
0
18
2.9K