Mastering Enums in Laravel: A Complete Guide with Practical Examples

mastering enum in laravel

Learn how to use enums in Laravel to simplify your code, improve validation, and manage fixed values efficiently. This complete guide covers practical examples, best practices, and tips to boost your Laravel development. Introduction to Enums in Laravel In many Laravel apps, we often use strings like ‘pending’ or ‘approved’ to represent statuses. The problem? … Read more

How to Set Up Email Authentication in Filament Admin Panel

Set Up Email Authentication in Filament Admin Panel

Set Up Email Authentication in Filament Admin Panel to keep your admin panel secure. By sending a unique code to the user’s email at every login, you ensure only authorized users can access your system. This adds an extra layer of protection while keeping the login process simple and user-friendly. Setup Filament If you haven’t … Read more

Complete Guide to Laravel Polymorphic Relationships with Real Examples

Laravel Polymorphic Relationship

Introduction to Laravel Polymorphic Relationship When building applications, we often encounter situation where the same type of relationship needs to be attached with multiple models. For example, you might want to allow users to add comments not just to posts, but also to images and videos. Instead of creating a separate table like post_comments, image_comments, … Read more

Building a WordPress-like CMS with Laravel Filament: A Complete Development Series

Are you ready to build your own content management system from scratch? In this comprehensive series, we’ll create a powerful, feature-rich CMS using Laravel that rivals WordPress in functionality while giving you complete control over every aspect of your system. What We’ll Build: Core Features Overview Our Laravel CMS will include all the essential features … Read more

Fetch and Display API Data Using FilamentPHP Custom Tables

In this article, we will explore, how we can fetch and Fetch and Display API Data Using FilamentPHP Custom Tables. 1. Create a custom page First, we will start by creating a custom page. To create a custom page, copy the following command in terminal. You can refer to this article for more depth in … Read more

How to add custom action button on page filters?

In this article, we are going to explore how we can add the custom action button on filament pages filters as the image above of quick filters. 1. Create a Page The first step is to create a custom filament page. For that, please refer to this article. In this article, you can find the … Read more

Unlock Multilingual Support with Filament Language Switcher

In this article, we are exploring the Multilingual support with filament admin panel. Laravel Language Before diving into filament language and language switch, lets dive on how actually localization works on laravel. For that, we have 2 ways. Store in File So, the first option is to store the translation string in lang directory. If … Read more

Display custom infolist dynamically in laravel filament

In this article, we are going to explore how can we show infolist dynamically in laravel filament. Click here to check the visual representation of what we are going to create. Create a custom page So, the first step is to create a custom page using the following command: Implement HasForms, Hastables Since, we are … Read more