All Tutorials & Sample Codes

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

Showing 31–36 of 41 posts · Page 6 of 7

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 <span class="highlight">web</span> guard and a custom middleware to check a <span class="highlight">role</span> column.<br> 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)

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;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 <span class="highlight">simplesoftwareio/simple-qrcode</span> 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

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;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

How to Integrate CKEditor 5 with Image Upload in Laravel 11

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;While we are developing Applications on Laravel 11 framework sometimes we need rich text area fields. In these kind of cases, CKEditor is one of the best option for us. This tutorial will guide you through the process of integrating CKEditor with CKFinder for image upload to the server in Laravel App.

By Revathi M · Read