Latest Premium Tutorial
-
· 15 mins, 2802 words · premium
Laravel Inertia Roles & Permissions: Breeze/Jetstream Examples
Laravel has a few starter kits like Breeze and Jetstream, but they don't have roles/permissions functionality. This time, let's talk specifically about Vue Inertia versions of those starter kits: how to add the roles and permissions there?
Newest content
-
· 5 mins, 929 words
NEW Laravel Daily: All You Need is Here
-
· 2 mins, 306 words
How to Add Soft Deletes to Every Model/Migration By Default?
-
Random Quick Laravel Tip:
Find ManyEloquent method
find()
may accept multiple parameters, and then it returns a Collection of all records found, not just one Model:1// Will return Eloquent Model2$user = User::find(1);3// Will return Eloquent Collection4$users = User::find([1,2,3]);1return Product::whereIn('id', $this->productIDs)->get();2// You can do this3return Product::find($this->productIDs)Tip given by @tahiriqbalnajam
Incase of integer, use
whereIn
with limited data range only instead usewhereIntegerInRaw
which is faster thenwhereIn
.1Product::whereIn('id', range(1, 50))->get();2// You can do this3Product::whereIntegerInRaw('id', range(1, 50))->get();Tip given by @sachinkiranti
-
· 3 mins, 571 words
Don't Use $request->all(): It's Insecure
-
· 1 min, 161 words
New in Laravel 9.25: touch() on Query Builder
-
· 4 mins, 795 words
Laravel Database Transactions: 3 Practical Examples
-
Premium Course: Laravel Collections Chains: 15 Real Examples
-
· 2 mins, 226 words
Laravel SuperAdmin: Override All the Gates
-
· 23 mins, 4526 words · premium
FilePond in Laravel: File Upload Guide
-
· 4 mins, 692 words
Laravel Controller into Service Class with Injection
-
· Updated Sep 2022 · 20 mins, 3867 words
Laravel 8 + Vue.js 3 CRUD with Composition API
-
· Updated Aug 2022 · 18 mins, 3410 words
Larger Laravel Projects: 12 Things to Take Care Of