Resolving a new instance of a singleton in Laravel
A nice tip by my colleague Seb
Read more [sebastiandedeyne.com]
Posts tagged with tip
A nice tip by my colleague Seb
Read more [sebastiandedeyne.com]
– fhur.me
A good tip by Fernando Hurtado
Read more [fhur.me]
Join thousands of developers
Every two weeks, I share practical tips, tutorials, and behind-the-scenes insights from maintaining 300+ open source packages.
No spam. Unsubscribe anytime. You can also follow me on X.
✨Laravel Package Tip: Hide your install commands from `php artisan` after installed to keep things tidy. pic.twitter.com/o4PK8xXkIk
— Brian Dillingham (@im_brian_d) January 2, 2021
Did you know that the null coalescing assignment operator in #PHP 7.4 can be used to make memoizing stuff a little more clean? pic.twitter.com/SWWJEXQBLx
— Brent (@brendt_gd) January 16, 2020
Read more [twitter.com]
🕵️♂️ Just discovered "->optional()" in $faker for my Laravel factories.
— Caleb Porzio (@calebporzio) January 18, 2020
Check it out.
Did you already know about this? pic.twitter.com/MrVETY7i3f
Read more [twitter.com]
? In case you haven’t used it yet, the second argument of JSON.stringify lets you cherry-pick ? keys to serialize. ? pic.twitter.com/bBgYKSne4S
— Tejas Kumar (@TejasKumar_) November 12, 2019
Read more [twitter.com]
sql tips: you can group by anything pic.twitter.com/YoJVlUyghG
— ?Julia Evans? (@b0rk) 29 september 2019
Read more [twitter.com]
If you're using #Laravel Valet in Europe:
— Sander van Hooft (@SandervHooft) August 19, 2019
Just discovered "valet share --region=eu".
Ngrok seems to default to the US region otherwise. Major speed improvement.
Read more [twitter.com]
Pro-tip: set custom prefixes for your local, staging and production environments using the Tab ReTitle Chrome extension ?
— Alex (@AlexVanderbist) July 15, 2019
Never accidentally debug the wrong tab again! https://t.co/hRfaKesKwL pic.twitter.com/DU1llvdpQd
Read more [twitter.com]
A nice little tip to clean up your code base from boolean flags (is_active, is_deleted, is_subscribed) is to switch to nullable timestamps instead.
— Marcel Pociot ? (@marcelpociot) July 2, 2019
You remain the same flag functionality, but get the point of time for free. pic.twitter.com/86iHt6ow0X
Read more [twitter.com]
If you're debugging an array or an object, try console.table() instead of console.log()! It gives you a muuuuch better visual representation of the data in the console ? pic.twitter.com/5V9TCsBiOK
— Erin ? (@erinfranmc) June 10, 2019
Read more [twitter.com]
A little helper method I put on my base Model class on Secret Project VI… Kinda handy. ?♂️ pic.twitter.com/mPOMV73d5L
— Taylor Otwell ? (@taylorotwell) April 30, 2019
Read more [twitter.com]
It's a minor thing but PHP's `isset` can accept multiple vars which will allow you to simplify your code. ? pic.twitter.com/GBgYEDSOya
— Eric L. Barnes (@ericlbarnes) April 4, 2019
Read more [twitter.com]
#Laravel tip of the day: if you want to find out which of your composer.json packages have released newer versions, just run "composer outdated". You will get a full list with all information. pic.twitter.com/2FOw39TBr4
— Laravel Daily (@DailyLaravel) March 6, 2019
Read more [twitter.com]
? Laravel tip: Use your defined Eloquent relationships when you Factory models.
— Rasmus C Nielsen (@rasmuscnielsen) March 4, 2019
This can save you many lines of code and make your tests much more eloquent.
Simply install this package: https://t.co/6XNeQZk40T pic.twitter.com/f4T5xayL5X
Read more [twitter.com]
TIL #Laravel's clear:cache command has an optional "store" argument. This makes it really easy to quickly clear out the 3700 queued jobs you don't want to wait for. pic.twitter.com/dz0csvR3Ht
— Alex (@AlexVanderbist) January 31, 2019
Read more [twitter.com]
Neat little Laravel internal tip: When you want one of your classes to forward method calls to a different class, you can use the "ForwardsCalls" trait. The trait takes care of forwarding the method calls as well as catching possible exceptions. pic.twitter.com/F4dGypBNk7
— Marcel Pociot (@marcelpociot) January 23, 2019
Read more [twitter.com]
Here’s another: see the public keys of a github user by adding ‘.keys’ to their profile URL:
— Bramus! (@bramus) January 23, 2019
? https://t.co/GaHnUISqM1
? https://t.co/zIeqVbxQbE
Read more [twitter.com]
? You can use array destructuring to swap values between variables pic.twitter.com/dxdIipgE1M
— Brandon Dail (@aweary) December 28, 2018
Read more [twitter.com]
✨ Laravel users, make this small change to your app.js file to auto register your Vue components. The filename becomes the component name. ?
— Jonathan Reinink (@reinink) 2 november 2018
Gist here: https://t.co/Y3NjLzgBEI pic.twitter.com/h5ByVNuiR6
Read more [twitter.com]