Nathan Morgan (@fuelingtheweb) profile picture

I like to create tidy, highly readable code. Tools of choice: Laravel, Livewire, Alpine, and Tailwind

Greenville, SC
Joined August 2010
I just realized you can pass a closure as a value when calling `create` on a factory.
47
Listening to @cheese_weather while consuming some tasty Swiss cheese. It's not nice to call it boring @benholmen
1
4
154
While pairing with @ProjektGopher, I learned that a single quote tag like <<<'HTML' will return a literal string and is actually called a nowdoc while the heredoc tags <<<"HTML" or <<<HTML are needed to interpolate variables.
2
1
13
897
Or as the PHP docs say: "Nowdocs are to single-quoted strings what heredocs are to double-quoted strings." php.net/manual/en/language.t… I think that comparison will help me remember this.
1
44
Wish list item for @laravelphp Cloud: I want to have one queue worker server running with 2 more in hibernation, and only when the queue backlog hits a certain wait time, I'd like one or two of the other queue workers to temporarily boot up and help process jobs.
7
28
2,539
Replying to @aarondfrancis
@aarondfrancis Nice Cool Runnings reference in the latest episode of @MostlyTechPod. 😄
1
3
156
One of the highlights of Laracon for me was the improv show by @aarondfrancis and @calebporzio. That was a delightful start to day 2 of the conference. 🙂
5
1
33
1,932
If you use @pocketcasts and love listening to @cheese_weather like I do, please give a rating with Pockets Casts new rating system.
2
59
Did you know you can pass multiple ids into Eloquent's `find` method?
1
2
1
7
934
Here's a fun refactor using Laravel's Stringable class. It adds lines, but it feels much more readable.
3
137
Does anyone have any pull requests or other bits of code you'd like reviewed? For those who don't know me, I'm a Laravel developer with particular strengths with the TALL stack, and I've grown quite adept at code reviews and refactoring. I'd love to review your code.
2
6
2
14
3,227
TIL about Eloquent's withCasts() method in an article by @reinink. It may come in handy with custom select statements. Example: ->withCasts(['last_login_at' => 'datetime']) reinink.ca/articles/dynamic-…
2
5
Replying to @JacobBennett
@JacobBennett You mentioned frustrations with compiled assets on @northsouthaudio. I made a gist of artisan commands I use for this that you may find helpful. gist.github.com/fuelingthewe…
1
1
Check out the new #vuejs courses and subscription plans at vueschool.io! @VueSchool_io
1
Replying to @wesbos
@wesbos @stolinski Here’s my screenshot of me listening to syntax. :) #TastyTreats
1
Replying to @wesbos
@wesbos Excellent talk! Some might say it was quite tasty. :) Also, really excited about that Vue episode on @syntaxfm
1
2
Replying to @wesbos
@wesbos @syntaxfm Here is an Alfred workflow I really like that converts hex colors to rgb, hsl, etc: github.com/TylerEich/Alfred-…
Replying to @Sling
@Sling Your feedback textareas when cancelling a subscription really need a greater maxlength than 256. I’m assuming you value feedback.
1
Replying to @mattstauffer
@mattstauffer It always brings a smile to my face when I hear you interact with your son at the end of @5minutegeekshow :)
1
1