Latest Premium Tutorial
-
· 9 mins, 1658 words · premium
Laravel Vue SPA: Roles and Permissions Example with CASL
In this tutorial, we will show how to add permissions to the Laravel application with Vue.js SPA architecture. For the example, we will take a basic CRUD of posts, create two roles (admin and editor), and the editor role will not be able to delete the posts.
Newest content
-
· 3 mins, 536 words
Add the First Admin User to Live Laravel Site: Two Ways
-
· 3 mins, 443 words
Laravel Unique Validation for Multiple Columns
-
Random Quick Laravel Tip:
Be careful when constructing your custom filtered queries using GET parametersif (request()->has('since')) {// example.org/?since=// fails with illegal operator and value combination$query->whereDate('created_at', '<=', request('since'));}if (request()->input('name')) {// example.org/?name=0// fails to apply query filter because evaluates to false$query->where('name', request('name'));}if (request()->filled('key')) {// correct way to check if get parameter has value}Tip given by @mc0de
-
· 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)
-
· 2 mins, 279 words
Set Laravel User Locale in Middleware
-
Premium Course: Vue.js 3 + Laravel 10 + Vite: SPA CRUD
-
· 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
-
· 2 mins, 333 words
Laravel: Automatically Log N+1 Queries to Bugsnag or Similar Tool
-
· 21 mins, 4005 words · premium
E-Shop Sidebar Filter: Alpine.js for Search and Show/Hide