Latest Premium Tutorial
-
· 8 mins, 1511 words · premium
Laravel: Import Very Large CSV With Jobs and Queues
Have you ever tried to import 1 million rows from CSV into the DB? It's a tricky task that can end up with performance issues, timeouts, or just running out of server resources. In this tutorial, I will show you one way of handling this with Jobs and Queues.
Newest content
-
· 4 mins, 703 words
7 Laravel Functions That ALSO Accept Array Parameter
-
· 3 mins, 536 words
Add the First Admin User to Live Laravel Site: Two Ways
-
Random Quick Laravel Tip:
Instead of belongsTo, use hasManyFor
belongsTo
relationship, instead of passing parent's ID when creating child record, usehasMany
relationship to make a shorter sentence.// if Post -> belongsTo(User), and User -> hasMany(Post)...// Then instead of passing user_id...Post::create(['user_id' => auth()->id(),'title' => request()->input('title'),'post_text' => request()->input('post_text'),]);// Do thisauth()->user()->posts()->create(['title' => request()->input('title'),'post_text' => request()->input('post_text'),]); -
· 3 mins, 443 words
Laravel Unique Validation for Multiple Columns
-
· 5 mins, 820 words
Laravel Conditional Validation Based on Other Fields: 4 Examples
-
· 5 mins, 848 words
"GET Method is not Supported for this Route". What to do? (4 Examples)
-
Premium Course: [NEW] Laravel User Timezones Project: Convert, Display, Send Notifications
-
· 9 mins, 1658 words · premium
Laravel Vue SPA: Roles and Permissions Example with CASL
-
· 2 mins, 279 words
Set Laravel User Locale in Middleware
-
· 2 mins, 260 words
How To Install Older Laravel Version
-
· 8 mins, 1458 words · premium
Store Laravel Global Settings in the Database (with Caching)
-
· 22 mins, 4342 words · premium
Laravel Spatie Media Library: 8 Less-Known Features with Demos