{"id":916,"date":"2025-10-24T10:41:27","date_gmt":"2025-10-24T14:41:27","guid":{"rendered":"https:\/\/waterloobae.com\/post\/?p=916"},"modified":"2025-10-24T10:41:27","modified_gmt":"2025-10-24T14:41:27","slug":"laravel-filament-getting-started","status":"publish","type":"post","link":"https:\/\/waterloobae.com\/blog\/2025\/10\/24\/laravel-filament-getting-started\/","title":{"rendered":"[Laravel] Filament, Getting started"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">1. Installing the panel builder<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Install the Filament Panel Builder by running the following commands in your Laravel project directory:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">composer require filament\/filament:\"^4.0\"\n\nphp artisan filament:install --panels<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This will create and register a new Laravel service provider called <mark style=\"background-color:#fcb900\" class=\"has-inline-color\">app\/Providers\/Filament\/AdminPanelProvider.php<\/mark><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">2. Creating an user<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">You can create a new user account using the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">php artisan make:filament-user<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">3. Creating a resource<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">To create a resource for the <mark style=\"background-color:#fcb900\" class=\"has-inline-color has-black-color\">app\\Models\\Customer<\/mark> model:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">php artisan make:filament-resource Customer<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This will create several files in the\u00a0<code>app\/Filament\/Resources<\/code>\u00a0directory:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">.\n+-- Customers\n|   +-- CustomerResource.php\n|   +-- Pages\n|   |   +-- CreateCustomer.php\n|   |   +-- EditCustomer.php\n|   |   +-- ListCustomers.php\n|   +-- Schemas\n|   |   +-- CustomerForm.php\n|   +-- Tables\n|   |   +-- CustomersTable.php<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. Installing the panel builder Install the Filament Panel Builder by running the following commands in your Laravel project directory: This will create and register a new Laravel service provider called app\/Providers\/Filament\/AdminPanelProvider.php 2. Creating an user You can create a new user account using the following command: 3. Creating a resource To create a resource [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,14],"tags":[],"class_list":["post-916","post","type-post","status-publish","format-standard","hentry","category-it-tips","category-laravel"],"_links":{"self":[{"href":"https:\/\/waterloobae.com\/blog\/wp-json\/wp\/v2\/posts\/916","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/waterloobae.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/waterloobae.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/waterloobae.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/waterloobae.com\/blog\/wp-json\/wp\/v2\/comments?post=916"}],"version-history":[{"count":2,"href":"https:\/\/waterloobae.com\/blog\/wp-json\/wp\/v2\/posts\/916\/revisions"}],"predecessor-version":[{"id":918,"href":"https:\/\/waterloobae.com\/blog\/wp-json\/wp\/v2\/posts\/916\/revisions\/918"}],"wp:attachment":[{"href":"https:\/\/waterloobae.com\/blog\/wp-json\/wp\/v2\/media?parent=916"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/waterloobae.com\/blog\/wp-json\/wp\/v2\/categories?post=916"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/waterloobae.com\/blog\/wp-json\/wp\/v2\/tags?post=916"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}