Explore tweets tagged as #laraveltips
π‘ Did you know you can add multiple columns after another one in a single call with Laravel?.It's clean, elegant, and keeps your DB tidy. Thanks @PovilasKorop for the tip!.#Laravel #PHP #LaravelTips
2
4
44
Can Laravel sort by first name before my coffee gets cold?. Source: #LaravelTips #WebDev #100DaysOfCode #LearnToCode #bestshirtever #laravel
0
1
8
Have you ever used the insertGetId() method in Laravel? It allows you to insert a new record into a table and retrieve its ID in a single query #laraveltips
10
27
173
Have you ever used the withCount() method in Laravel? It allows you to retrieve a count of related records without actually loading them. 1 more day until I release my Query Builder & Eloquent course #laraveltips
6
19
150
The whereDate() method in Laravel is an advanced query builder method that can be used to filter records by a specific date or range of dates. 7 days until I release my Query Builder & Eloquent course #laraveltips
4
23
113
π¨ Laravel Tip Youβre Probably Not Using:. Use once() to run a function only once per request, even if you call it 10 times. Perfect for:.Config lookups.Token generation.DB settings cache. Clean. Fast. π₯.#Laravel #PHP #WebDev #LaravelTips
0
1
2
Could JSON in MySQL be the culinary disaster of the tech world?. Source: #LaravelTips #WebDev #FullStack #Coding #mysql #store
0
2
7
Use local scopes in your Laravel app to define query constraints that can be applied to any Eloquent query builder instance, instead of repeatedly performing queries. 2 days until I release my Query Builder & Eloquent course #laraveltips
6
18
111
Both the find() method and findOrFail() method are useful for retrieving a single record. However, they return different responses when a record is not found. Which one do you use?. 3 days until I release my Query Builder & Eloquent course #laraveltips
5
4
43
Have you ever heard of the toSql() method? It returns the SQL query that would be executed if you ran the Eloquent query. 5 days until I release my Query Builder & Eloquent course #laraveltips
3
6
42
Do you add default attributes at the database level or the Eloquent level? Personally, I prefer the database level because it keeps the schema organized. 4 days until I release my Query Builder & Eloquent course #laraveltips
10
4
51
Laravel devs, this oneβs a life-saver: π οΈ. Whatβs your favorite Laravel hack?.#LaravelTips #PHP #DevLife
0
0
1
Are Laravel cookies sneaky ninjas or visible to all?. Source: #PHP #LearnToCode #TechTips #LaravelTips #cookierun #framework
0
0
2
New video on @laravelnews ! Learn how to use AsArrayObject and AsCollection and improve your JSON data handling!. #laravel #laraveltips
2
12
43
Laravel Validator can also be used to validate command arguments. The following is a straightforward example. #laravel #laravelTips #dataValidation #command
0
15
60
Did you know, that replicate method lets you create an unsaved model, enabling seamless chaining of your favourite model methods. π¨ For instance, effortlessly copy a model and append "(copy)" to the title for easy identification. Your models, your rules! π»π #LaravelTips #PHP
0
0
3
Every techie has a GPT now. Ours just happens to speak Laravel. in Bhojpuri. π. #ChapriCode #TechieLife #BihariGPT #LaravelTips #DesiDeveloperVibes #OMLogic
0
0
0