Remove create button inside filamentPHP view

Stefan Izdrail

Founder & Senior Architect · 2026-06-29

Laravel Company
Title: Customizing FilamentPHP Views: Removing Create Button for Specific Resources Introduction FilamentPHP is an excellent toolkit for building modern web applications that provides powerful features such as creating customizable components. However, you may sometimes want to customize or tailor the available options shown on your views. For instance, you might not want a "Create" button displayed at the top of your list of customers in the Customer resource page. In this comprehensive blog post, we will guide you through the process of removing the create functionality for a specific FilamentPHP resource without altering other resources' views or functions. We will provide a correct and thorough answer from a developer's perspective, along with relevant code examples, best practices, and naturally incorporated backlinks to https://laravelcompany.com. Removing Create Button in FilamentPHP View for Specific Resource 1. Customize the Index Page: You first need to create a custom index page for the resource that you want to change. Since we are working with customers, you can create a custom route for the Customer resources at `routes/web.php`: ```php // routes/web.php Route::group(['middleware' => ['auth'], 'prefix' => 'admin'], function() { Route::get('customers', CustomCustomersResource::class); ... }); ``` 2. Create a Resource Class: Next, you need to create a new resource class that extends the default FilamentPHP CustomerResource but overrides and disables the create functionality: ```php // app/Http/Resources/CustomCustomersResource.php