All Laravel, PHP & CodeIgniter Tutorials

Browse all our Laravel 12, CodeIgniter 4, and PHP tutorials. Each guide includes working source code, best practices, and step-by-step instructions.

Showing 37–42 of 46 posts · Page 7 of 8

How to Implement Role-Based Authentication in Laravel 11 with Custom Middleware

In Laravel 11, you can easily restrict access to routes and features based on user roles without setting up multiple authentication guards. This approach uses a single web guard and a custom middleware to check a role column. It's ideal for apps needing simple user tiers (e.g., user, editor, admin) and avoids the complexity of multi-guard setups (separate logins/tables). For advanced RBAC, consider packages like Spatie Laravel-Permission.

By Revathi M · Read

How to Generate and Save QR Codes in Laravel 11 (Complete Tutorial)

             QR codes are powerful tools for sharing links, contact info, or text instantly. In this Laravel 11 tutorial, you'll learn how to dynamically generate QR codes using the popular simplesoftwareio/simple-qrcode package (built on BaconQrCode) and save the images directly to your server storage. We'll cover multiple formats (URL, text, phone, SMS, email, vCard/business card) and include a user-friendly form with dynamic fields.

By Revathi M · Read

How to Use AWS S3 Bucket in Laravel 11: Store & Manage Files Easily

             In today's cloud-driven development landscape, integrating AWS S3 (Simple Storage Service) with Laravel 11 is essential for scalable file storage and management. Whether you're building a web app that handles user uploads, images, or documents, AWS S3 provides reliable, cost-effective object storage. This comprehensive guide walks you through how to use AWS S3 bucket in Laravel 11, from setup to advanced file operations like uploading, retrieving, and deleting files.

By Revathi M · Read