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:
Blade directive for not repeating yourselfIf you keep doing the same formatting of the data in multiple Blade files, you may create your own Blade directive.
Here's an example of money amount formatting using the method from Laravel Cashier.
1"require": {2 "laravel/cashier": "^12.9",3}1public function boot()2{3 Blade::directive('money', function ($expression) {4 return "<?php echo Laravel\Cashier\Cashier::formatAmount($expression, config('cashier.currency')); ?>";5 });6}1<div>Price: @money($book->price)</div>2@if($book->discount_price)3 <div>Discounted price: @money($book->dicount_price)</div>4@endif -
· 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