Eloquent: How to Convert Query Result to JSON
Updated: Jan 18, 2024
Introduction When developing applications with Laravel, interacting with databases is streamlined using the Eloquent ORM. Eloquent allows for fluent query building and ORM functionality that elegantly works with the database. An often......
Mutators and Accessors in Eloquent: A Practical Guide
Updated: Jan 18, 2024
Introduction In the world of Laravel’s Eloquent, an ORM for database manipulation, mutators and accessors are powerful features that allow developers to format attributes when you retrieve or set them on model instances. This......
How to add custom validation rules in Laravel (with examples)
Updated: Jan 18, 2024
Introduction Laravel, the popular PHP framework, provides a wide range of features to make development more convenient and robust, one of which is its powerful validation component. Out-of-the-box, Laravel supports numerous validation......
Laravel Issue: The Page Has Expired Due to Inactivity
Updated: Jan 18, 2024
Introduction Laravel, a robust and well-documented PHP framework, offers a highly secure environment for web application development. Part of this security involves session management – a critical feature when ensuring user data......
Laravel: How to Log Out a User (Basic & Advanced Techniques)
Updated: Jan 18, 2024
Introduction Authentication is a crucial part of any web application and being able to control a user’s authentication state is equally important. In Laravel, the auth scaffolding provides all the necessary features to log in and......
How to implement password reset in Laravel
Updated: Jan 18, 2024
Introduction Laravel is a powerful PHP framework that streamlines common tasks in web development like authentication, routing, sessions, and caching, making it easier to build web applications. An essential feature of most web......
How to Send Email in Laravel: The Right Way
Updated: Jan 18, 2024
Introduction Laravel makes implementing various web development tasks easier and more sustainable, including sending emails. Sending emails is a common requirement for web applications, whether it’s for user verification,......
How to integrate Next.js with Laravel: A practical guide
Updated: Jan 18, 2024
Introduction Leveraging the full-stack potential by combining the power of Laravel as the backend and Next.js as the frontend framework is becoming increasingly attractive to developers. This guide covers a step-by-step process for......
How to Use React with Laravel – Integrating Your Front-End with PHP Backend
Updated: Jan 18, 2024
Introduction React is a powerful JavaScript library for building user interfaces, while Laravel is a robust PHP framework for server-side applications. Integrating the two can deliver a dynamic and efficient full-stack web application.......
Inline and Anonymous Components in Laravel Blade: A Practical Guide
Updated: Jan 18, 2024
Introduction Laravel’s Blade template engine provides a powerful system for defining and using components within your applications. The introduction of inline and anonymous components with Laravel 7 made it even more flexible and......
How to create an XML sitemap in Laravel
Updated: Jan 18, 2024
Introduction An XML sitemap is an essential tool for search engine optimization. It helps search engines better understand the structure of your site and index its content effectively. Building an XML sitemap in a Laravel application......
Laravel Eloquent: Sorting Results on Related Models
Updated: Jan 18, 2024
Introduction Laravel’s Eloquent ORM is a cornerstone of the framework, providing a graceful ActiveRecord implementation for working with your database. It allows the web developer to manage relational data elegibly and with ease.......