> > >

✓ Completed in 7 minutes, 5 months ago using GPT-4  •   Book a call  •   Report a bug


Progress

  Createapp/Models/Branch.php4c7b08a 
1<?php
2
3namespace App\Models;
4
5use Illuminate\Database\Eloquent\Model;
6
7class Branch extends Model
8{
9    protected $fillable = [
10        'name',
11        'address',
12        'phone_number',
13        // Add other relevant details here
14    ];
15
16    // Define relationships and business logic here if necessary
17}
18
  • Create a new Eloquent model named Branch in the app/Models directory.
  • The model should contain properties that represent a branch's attributes, such as name, address, phone_number, and any other relevant details.
  Run GitHub Actions forapp/Models/Branch.php 
  Createdatabase/migrations/2023_04_01_000000_create_branches_table.phpb4db46d 
1<?php
2
3use Illuminate\Database\Migrations\Migration;
4use Illuminate\Database\Schema\Blueprint;
5use Illuminate\Support\Facades\Schema;
6
7class CreateBranchesTable extends Migration
8{
9    public function up()
10    {
11        Schema::create('branches', function (Blueprint $table) {
12            $table->id();
13            $table->string('name');
14            $table->string('address');
15            $table->string('phone_number');
16            $table->timestamps();
17        });
18    }
19
20    public function down()
21    {
22        Schema::dropIfExists('branches');
23    }
24}
25
  • Create a new migration file for creating the branches table in the database.
  • The migration should define columns for the branch attributes mentioned in the Branch model, including id, name, address, phone_number, and timestamps.
  Createapp/Filament/Resources/BranchResource.php7aaec9f 
1<?php
2
3namespace App\Filament\Resources;
4
5use App\Models\Branch;
6use Filament\Forms;
7use Filament\Resources\Form;
8use Filament\Resources\Resource;
9use Filament\Resources\Table;
10use Filament\Tables;
11
12class BranchResource extends Resource
13{
14    protected static ?string $model = Branch::class;
15
16    protected static function form(Form $form): Form
17    {
18        return $form
19            ->schema([
20                Forms\Components\TextInput::make('name')
21                    ->required()
22                    ->label('Name'),
23                Forms\Components\TextInput::make('address')
24                    ->required()
25                    ->label('Address'),
26                Forms\Components\TextInput::make('phone_number')
27                    ->tel()
28                    ->required()
29                    ->label('Phone Number'),
30            ]);
31    }
32
33    protected static function table(Table $table): Table
34    {
35        return $table
36            ->columns([
37                Tables\Columns\TextColumn::make('name')
38                    ->searchable()
39                    ->sortable()
40                    ->label('Name'),
41                Tables\Columns\TextColumn::make('address')
42                    ->searchable()
43                    ->label('Address'),
44                Tables\Columns\TextColumn::make('phone_number')
45                    ->label('Phone Number'),
46            ])
47            ->filters([
48                //
49            ]);
50    }
51
52    public static function getLabel(): string
53    {
54        return 'Branch';
55    }
56
57    public static function getPluralLabel(): string
58    {
59        return 'Branches';
60    }
61
62    public static function getNavigationIcon(): string
63    {
64        return 'heroicon-o-office-building';
65    }
66}
67
  • Create a new Filament resource named BranchResource in the app/Filament/Resources directory.
  • This resource should define the form and table schema for managing branches, including fields for name, address, and phone_number.
  • Import the necessary classes and define the resource model as App\Models\Branch.
  Createapp/Filament/Resources/BranchResource/Pages/CreateBranch.php7c6821e 
1&lt;?php
2
3namespace App\Filament\Resources\BranchResource\Pages;
4
5use App\Filament\Resources\BranchResource;
6use Filament\Resources\Pages\CreateRecord;
7
8class CreateBranch extends CreateRecord
9{
10    protected static $resource = BranchResource::class;
11}
12
  • Create a new page for creating branches under the BranchResource directory.
  • This page should extend Filament\Resources\Pages\CreateRecord and reference the BranchResource.
  Createapp/Filament/Resources/BranchResource/Pages/EditBranch.php3e905f1 
1&lt;?php
2
3namespace App\Filament\Resources\BranchResource\Pages;
4
5use Filament\Resources\Pages\EditRecord;
6use App\Filament\Resources\BranchResource;
7
8class EditBranch extends EditRecord
9{
10    protected static $resource = BranchResource::class;
11}
12
  • Create a new page for editing branches under the BranchResource directory.
  • This page should extend Filament\Resources\Pages\EditRecord and reference the BranchResource.
  Createapp/Filament/Resources/BranchResource/Pages/ListBranches.php67e7313 
1&lt;?php
2
3namespace App\Filament\Resources\BranchResource\Pages;
4
5use Filament\Resources\Pages\ListRecords;
6use App\Filament\Resources\BranchResource;
7use Filament\Tables;
8
9class ListBranches extends ListRecords
10{
11    protected static $resource = BranchResource::class;
12
13    protected function getTableColumns(): array
14    {
15        return [
16            Tables\Columns\TextColumn::make('name')->label('Name')->sortable(),
17            Tables\Columns\TextColumn::make('address')->label('Address')->sortable(),
18            Tables\Columns\TextColumn::make('phone_number')->label('Phone Number')->sortable(),
19        ];
20    }
21}
22
  • Create a new page for listing branches under the BranchResource directory.
  • This page should extend Filament\Resources\Pages\ListRecords and reference the BranchResource.
  • Define the columns to display in the list, such as name, address, and phone_number.
  Modifyapp/Providers/Filament/AdminPanelProvider.php:60-61 

Changed app/Providers/Filament/AdminPanelProvider.php in efabf73    

61 ->registerResource(\App\Filament\Resources\BuyerResource::class)61 ->registerResource(\App\Filament\Resources\BuyerResource::class)
62 ->registerResource(\App\Filament\Resources\DocumentTemplateResource::class)62 ->registerResource(\App\Filament\Resources\DocumentTemplateResource::class)
63 ->registerResource(\App\Filament\Resources\DigitalSignatureResource::class)63 ->registerResource(\App\Filament\Resources\DigitalSignatureResource::class)
64 ->registerResource(\App\Filament\Resources\BranchResource::class)
  • Register the new BranchResource in the AdminPanelProvider to make it accessible from the admin panel.
  • Add the following line after line 60: ->registerResource(\App\Filament\Resources\BranchResource::class)

Modified file with Assistant API

Instructions (1)
You are an expert software developer assigned to write code to complete the user's request.
You are diligent and tireless and always COMPLETELY IMPLEMENT the needed code!
You NEVER leave comments describing code without implementing it!
Always use best practices when coding.
Respect and use existing conventions, libraries, etc that are already present in the code base.
Your job is to make edits to the file to complete the user "# Request".

# Instructions
Modify the snippets above according to the request by calling the search_and_replace function.
* Keep whitespace and comments.
* Make the minimum necessary search_and_replaces to make changes to the snippets. Only write diffs for lines that have been asked to be changed.
* Write multiple small changes instead of a single large change.
User (2)
# Repo & Issue Metadata
Repo: real-estate-laravel: Estate agency application written in Laravel 11 / PHP 8.3 using Filament 3
Issue Title: Branches

Issue Description: Add branch (different office locations) management as a filament 3 resource under the admin panel
User (3)
You have previously changed these files:
<changed_file file_path="app/Models/Branch.php">
--- 
+++ 
@@ -0,0 +1,17 @@
+<?php
+
+namespace App\Models;
+
+use Illuminate\Database\Eloquent\Model;
+
+class Branch extends Model
+{
+    protected $fillable = [
+        'name',
+        'address',
+        'phone_number',
+        // Add other relevant details here
+    ];
+
+    // Define relationships and business logic here if necessary
+}
</changed_file>
<changed_file file_path="database/migrations/2023_04_01_000000_create_branches_table.php">
--- 
+++ 
@@ -0,0 +1,24 @@
+<?php
+
+use Illuminate\Database\Migrations\Migration;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Support\Facades\Schema;
+
+class CreateBranchesTable extends Migration
+{
+    public function up()
+    {
+        Schema::create('branches', function (Blueprint $table) {
+            $table->id();
+            $table->string('name');
+            $table->string('address');
+            $table->string('phone_number');
+            $table->timestamps();
+        });
+    }
+
+    public function down()
+    {
+        Schema::dropIfExists('branches');
+    }
+}
</changed_file>
<changed_file file_path="app/Filament/Resources/BranchResource.php">
--- 
+++ 
@@ -0,0 +1,66 @@
+<?php
+
+namespace App\Filament\Resources;
+
+use App\Models\Branch;
+use Filament\Forms;
+use Filament\Resources\Form;
+use Filament\Resources\Resource;
+use Filament\Resources\Table;
+use Filament\Tables;
+
+class BranchResource extends Resource
+{
+    protected static ?string $model = Branch::class;
+
+    protected static function form(Form $form): Form
+    {
+        return $form
+            ->schema([
+                Forms\Components\TextInput::make('name')
+                    ->required()
+                    ->label('Name'),
+                Forms\Components\TextInput::make('address')
+                    ->required()
+                    ->label('Address'),
+                Forms\Components\TextInput::make('phone_number')
+                    ->tel()
+                    ->required()
+                    ->label('Phone Number'),
+            ]);
+    }
+
+    protected static function table(Table $table): Table
+    {
+        return $table
+            ->columns([
+                Tables\Columns\TextColumn::make('name')
+                    ->searchable()
+                    ->sortable()
+                    ->label('Name'),
+                Tables\Columns\TextColumn::make('address')
+                    ->searchable()
+                    ->label('Address'),
+                Tables\Columns\TextColumn::make('phone_number')
+                    ->label('Phone Number'),
+            ])
+            ->filters([
+                //
+            ]);
+    }
+
+    public static function getLabel(): string
+    {
+        return 'Branch';
+    }
+
+    public static function getPluralLabel(): string
+    {
+        return 'Branches';
+    }
+
+    public static function getNavigationIcon(): string
+    {
+        return 'heroicon-o-office-building';
+    }
+}
</changed_file>
<changed_file file_path="app/Filament/Resources/BranchResource/Pages/CreateBranch.php">
--- 
+++ 
@@ -0,0 +1,11 @@
+&lt;?php
+
+namespace App\Filament\Resources\BranchResource\Pages;
+
+use App\Filament\Resources\BranchResource;
+use Filament\Resources\Pages\CreateRecord;
+
+class CreateBranch extends CreateRecord
+{
+    protected static $resource = BranchResource::class;
+}
</changed_file>
<changed_file file_path="app/Filament/Resources/BranchResource/Pages/EditBranch.php">
--- 
+++ 
@@ -0,0 +1,11 @@
+&lt;?php
+
+namespace App\Filament\Resources\BranchResource\Pages;
+
+use Filament\Resources\Pages\EditRecord;
+use App\Filament\Resources\BranchResource;
+
+class EditBranch extends EditRecord
+{
+    protected static $resource = BranchResource::class;
+}
</changed_file>
<changed_file file_path="app/Filament/Resources/BranchResource/Pages/ListBranches.php">
--- 
+++ 
@@ -0,0 +1,21 @@
+&lt;?php
+
+namespace App\Filament\Resources\BranchResource\Pages;
+
+use Filament\Resources\Pages\ListRecords;
+use App\Filament\Resources\BranchResource;
+use Filament\Tables;
+
+class ListBranches extends ListRecords
+{
+    protected static $resource = BranchResource::class;
+
+    protected function getTableColumns(): array
+    {
+        return [
+            Tables\Columns\TextColumn::make('name')->label('Name')->sortable(),
+            Tables\Columns\TextColumn::make('address')->label('Address')->sortable(),
+            Tables\Columns\TextColumn::make('phone_number')->label('Phone Number')->sortable(),
+        ];
+    }
+}
</changed_file>
User (4)
Relevant files in this PR:

<relevant_file file_path="app/Filament/Resources/BranchResource.php">
<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Branch extends Model
{
    protected $fillable = [
        'name',
        'address',
        'phone_number',
        // Add other relevant details here
    ];

    // Define relationships and business logic here if necessary
}

</relevant_file>
User (5)

<section id="A">
<?php

namespace App\Providers\Filament;

use Filament\Http\Middleware\Authenticate;
use Filament\Http\Middleware\DisableBladeIconComponents;
use Filament\Http\Middleware\DispatchServingFilamentEvent;
use Filament\Pages;
use Filament\Panel;
use Filament\PanelProvider;
use Filament\Support\Colors\Color;
use Filament\Widgets;
use Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse;
use Illuminate\Cookie\Middleware\EncryptCookies;
use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken;
use Illuminate\Routing\Middleware\SubstituteBindings;
use Illuminate\Session\Middleware\AuthenticateSession;
use Illuminate\Session\Middleware\StartSession;
</section id="A">
<section id="B">
use Illuminate\View\Middleware\ShareErrorsFromSession;

// Configuration for the admin panel
class AdminPanelProvider extends PanelProvider
{
    public function panel(Panel $panel): Panel
    {
        return $panel
            ->default()
            ->id('admin')
            ->path('admin')
            ->login()->register()->resetPasswords()->verifyEmails()
            ->colors([
                'primary' => Color::Amber,
            ])
            ->discoverResources(in: app_path('Filament/Resources'), for: 'App\\Filament\\Resources')
            ->discoverPages(in: app_path('Filament/Pages'), for: 'App\\Filament\\Pages')
            ->pages([
                Pages\Dashboard::class,
            ])
            ->resource(TenantResource::class)
            ->discoverWidgets(in: app_path('Filament/Widgets'), for: 'App\\Filament\\Widgets')
</section id="B">
<section id="C">
            ->widgets([
                Widgets\AccountWidget::class,
                Widgets\FilamentInfoWidget::class,
            ])
            ->middleware([
                EncryptCookies::class,
                AddQueuedCookiesToResponse::class,
                StartSession::class,
                AuthenticateSession::class,
                ShareErrorsFromSession::class,
                VerifyCsrfToken::class,
                SubstituteBindings::class,
                DisableBladeIconComponents::class,
                DispatchServingFilamentEvent::class,
            ])
            ->authMiddleware([
                Authenticate::class,
            ]);
    }
}
            ->registerResource(\App\Filament\Resources\BuyerResource::class)
            ->registerResource(\App\Filament\Resources\DocumentTemplateResource::class)
            ->registerResource(\App\Filament\Resources\DigitalSignatureResource::class)
</section id="C">
User (6)
# Request
• Register the new `BranchResource` in the `AdminPanelProvider` to make it accessible from the admin panel.
• Add the following line after line 60: `->registerResource(\App\Filament\Resources\BranchResource::class)`
Function Call (7)
{"analysis_and_identification": "To register the new BranchResource in the AdminPanelProvider as requested, the code snippet needs to be added after line 60, which is the end of the section that registers resources. It's logical to place it there to maintain the structure and organization of the code, and also because the specified line after the current last resource registration ensures consistency in resource registration within the AdminPanelProvider.", "replaces_to_make": [{"section_id": "C", "old_code": "            ->registerResource(\\App\\Filament\\Resources\\DigitalSignatureResource::class)", "new_code": "            ->registerResource(\\App\\Filament\\Resources\\DigitalSignatureResource::class)\n            ->registerResource(\\App\\Filament\\Resources\\BranchResource::class)"}]}
Function Call Output (8)
SUCCESS
Here are the new code sections:

The following changes have been applied:
```diff
--- 
+++ 
@@ -60,4 +60,5 @@
 }
             ->registerResource(\App\Filament\Resources\BuyerResource::class)
             ->registerResource(\App\Filament\Resources\DocumentTemplateResource::class)
-            ->registerResource(\App\Filament\Resources\DigitalSignatureResource::class)+            ->registerResource(\App\Filament\Resources\DigitalSignatureResource::class)
+            ->registerResource(\App\Filament\Resources\BranchResource::class)
```
Here are the new code sections:




<section id="A">
<?php

namespace App\Providers\Filament;

use Filament\Http\Middleware\Authenticate;
use Filament\Http\Middleware\DisableBladeIconComponents;
use Filament\Http\Middleware\DispatchServingFilamentEvent;
use Filament\Pages;
use Filament\Panel;
use Filament\PanelProvider;
use Filament\Support\Colors\Color;
use Filament\Widgets;
use Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse;
use Illuminate\Cookie\Middleware\EncryptCookies;
use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken;
use Illuminate\Routing\Middleware\SubstituteBindings;
use Illuminate\Session\Middleware\AuthenticateSession;
use Illuminate\Session\Middleware\StartSession;
</section id="A">
<section id="B">
use Illuminate\View\Middleware\ShareErrorsFromSession;

// Configuration for the admin panel
class AdminPanelProvider extends PanelProvider
{
    public function panel(Panel $panel): Panel
    {
        return $panel
            ->default()
            ->id('admin')
            ->path('admin')
            ->login()->register()->resetPasswords()->verifyEmails()
            ->colors([
                'primary' => Color::Amber,
            ])
            ->discoverResources(in: app_path('Filament/Resources'), for: 'App\\Filament\\Resources')
            ->discoverPages(in: app_path('Filament/Pages'), for: 'App\\Filament\\Pages')
            ->pages([
                Pages\Dashboard::class,
            ])
            ->resource(TenantResource::class)
            ->discoverWidgets(in: app_path('Filament/Widgets'), for: 'App\\Filament\\Widgets')
</section id="B">
<section id="C">
            ->widgets([
                Widgets\AccountWidget::class,
                Widgets\FilamentInfoWidget::class,
            ])
            ->middleware([
                EncryptCookies::class,
                AddQueuedCookiesToResponse::class,
                StartSession::class,
                AuthenticateSession::class,
                ShareErrorsFromSession::class,
                VerifyCsrfToken::class,
                SubstituteBindings::class,
                DisableBladeIconComponents::class,
                DispatchServingFilamentEvent::class,
            ])
            ->authMiddleware([
                Authenticate::class,
            ]);
    }
}
            ->registerResource(\App\Filament\Resources\BuyerResource::class)
            ->registerResource(\App\Filament\Resources\DocumentTemplateResource::class)
            ->registerResource(\App\Filament\Resources\DigitalSignatureResource::class)
            ->registerResource(\App\Filament\Resources\BranchResource::class)
</section id="C">

You can continue to make changes to the code sections and call the `search_and_replace` function again.

Plan

This is based on the results of the Planning step. The plan may expand from failed GitHub Actions runs.

  Createapp/Models/Branch.php4c7b08a 
1<?php
2
3namespace App\Models;
4
5use Illuminate\Database\Eloquent\Model;
6
7class Branch extends Model
8{
9    protected $fillable = [
10        'name',
11        'address',
12        'phone_number',
13        // Add other relevant details here
14    ];
15
16    // Define relationships and business logic here if necessary
17}
18
  Run GitHub Actions forapp/Models/Branch.php 
  Createdatabase/migrations/2023_04_01_000000_create_branches_table.phpb4db46d 
1<?php
2
3use Illuminate\Database\Migrations\Migration;
4use Illuminate\Database\Schema\Blueprint;
5use Illuminate\Support\Facades\Schema;
6
7class CreateBranchesTable extends Migration
8{
9    public function up()
10    {
11        Schema::create('branches', function (Blueprint $table) {
12            $table->id();
13            $table->string('name');
14            $table->string('address');
15            $table->string('phone_number');
16            $table->timestamps();
17        });
18    }
19
20    public function down()
21    {
22        Schema::dropIfExists('branches');
23    }
24}
25
  Createapp/Filament/Resources/BranchResource.php7aaec9f 
1<?php
2
3namespace App\Filament\Resources;
4
5use App\Models\Branch;
6use Filament\Forms;
7use Filament\Resources\Form;
8use Filament\Resources\Resource;
9use Filament\Resources\Table;
10use Filament\Tables;
11
12class BranchResource extends Resource
13{
14    protected static ?string $model = Branch::class;
15
16    protected static function form(Form $form): Form
17    {
18        return $form
19            ->schema([
20                Forms\Components\TextInput::make('name')
21                    ->required()
22                    ->label('Name'),
23                Forms\Components\TextInput::make('address')
24                    ->required()
25                    ->label('Address'),
26                Forms\Components\TextInput::make('phone_number')
27                    ->tel()
28                    ->required()
29                    ->label('Phone Number'),
30            ]);
31    }
32
33    protected static function table(Table $table): Table
34    {
35        return $table
36            ->columns([
37                Tables\Columns\TextColumn::make('name')
38                    ->searchable()
39                    ->sortable()
40                    ->label('Name'),
41                Tables\Columns\TextColumn::make('address')
42                    ->searchable()
43                    ->label('Address'),
44                Tables\Columns\TextColumn::make('phone_number')
45                    ->label('Phone Number'),
46            ])
47            ->filters([
48                //
49            ]);
50    }
51
52    public static function getLabel(): string
53    {
54        return 'Branch';
55    }
56
57    public static function getPluralLabel(): string
58    {
59        return 'Branches';
60    }
61
62    public static function getNavigationIcon(): string
63    {
64        return 'heroicon-o-office-building';
65    }
66}
67
  Run GitHub Actions forapp/Filament/Resources/BranchResource.php 
  Createapp/Filament/Resources/BranchResource/Pages/CreateBranch.php7c6821e 
1&lt;?php
2
3namespace App\Filament\Resources\BranchResource\Pages;
4
5use App\Filament\Resources\BranchResource;
6use Filament\Resources\Pages\CreateRecord;
7
8class CreateBranch extends CreateRecord
9{
10    protected static $resource = BranchResource::class;
11}
12
  Createapp/Filament/Resources/BranchResource/Pages/EditBranch.php3e905f1 
1&lt;?php
2
3namespace App\Filament\Resources\BranchResource\Pages;
4
5use Filament\Resources\Pages\EditRecord;
6use App\Filament\Resources\BranchResource;
7
8class EditBranch extends EditRecord
9{
10    protected static $resource = BranchResource::class;
11}
12
  Createapp/Filament/Resources/BranchResource/Pages/ListBranches.php67e7313 
1&lt;?php
2
3namespace App\Filament\Resources\BranchResource\Pages;
4
5use Filament\Resources\Pages\ListRecords;
6use App\Filament\Resources\BranchResource;
7use Filament\Tables;
8
9class ListBranches extends ListRecords
10{
11    protected static $resource = BranchResource::class;
12
13    protected function getTableColumns(): array
14    {
15        return [
16            Tables\Columns\TextColumn::make('name')->label('Name')->sortable(),
17            Tables\Columns\TextColumn::make('address')->label('Address')->sortable(),
18            Tables\Columns\TextColumn::make('phone_number')->label('Phone Number')->sortable(),
19        ];
20    }
21}
22

Code Snippets Found

This is based on the results of the Searching step.

app/Providers/Filament/AdminPanelProvider.php:0-62 
1<?php
2
3namespace App\Providers\Filament;
4
5use Filament\Http\Middleware\Authenticate;
6use Filament\Http\Middleware\DisableBladeIconComponents;
7use Filament\Http\Middleware\DispatchServingFilamentEvent;
8use Filament\Pages;
9use Filament\Panel;
10use Filament\PanelProvider;
11use Filament\Support\Colors\Color;
12use Filament\Widgets;
13use Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse;
14use Illuminate\Cookie\Middleware\EncryptCookies;
15use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken;
16use Illuminate\Routing\Middleware\SubstituteBindings;
17use Illuminate\Session\Middleware\AuthenticateSession;
18use Illuminate\Session\Middleware\StartSession;
19use Illuminate\View\Middleware\ShareErrorsFromSession;
20
21// Configuration for the admin panel
22class AdminPanelProvider extends PanelProvider
23{
24    public function panel(Panel $panel): Panel
25    {
26        return $panel
27            ->default()
28            ->id('admin')
29            ->path('admin')
30            ->login()
31            ->colors([
32                'primary' => Color::Amber,
33            ])
34            ->discoverResources(in: app_path('Filament/Resources'), for: 'App\\Filament\\Resources')
35            ->discoverPages(in: app_path('Filament/Pages'), for: 'App\\Filament\\Pages')
36            ->pages([
37                Pages\Dashboard::class,
38            ])
39            ->resource(TenantResource::class)
40            ->discoverWidgets(in: app_path('Filament/Widgets'), for: 'App\\Filament\\Widgets')
41            ->widgets([
42                Widgets\AccountWidget::class,
43                Widgets\FilamentInfoWidget::class,
44            ])
45            ->middleware([
46                EncryptCookies::class,
47                AddQueuedCookiesToResponse::class,
48                StartSession::class,
49                AuthenticateSession::class,
50                ShareErrorsFromSession::class,
51                VerifyCsrfToken::class,
52                SubstituteBindings::class,
53                DisableBladeIconComponents::class,
54                DispatchServingFilamentEvent::class,
55            ])
56            ->authMiddleware([
57                Authenticate::class,
58            ]);
59    }
60}
61            ->registerResource(\App\Filament\Resources\BuyerResource::class)
62            ->registerResource(\App\Filament\Resources\DocumentTemplateResource::class)
config/app.php:157-190 
157
158    'providers' => ServiceProvider::defaultProviders()->merge([
159        /*
160         * Package Service Providers...
161         */
162
163        /*
164         * Application Service Providers...
165         */
166        App\Providers\AppServiceProvider::class,
167        App\Providers\AuthServiceProvider::class,
168        // App\Providers\BroadcastServiceProvider::class,
169        App\Providers\EventServiceProvider::class,
170        App\Providers\Filament\AdminPanelProvider::class,
171        App\Providers\RouteServiceProvider::class,
172        App\Providers\DigitalSignatureServiceProvider::class,
173    ])->toArray(),
174
175    /*
176    |--------------------------------------------------------------------------
177    | Class Aliases
178    |--------------------------------------------------------------------------
179    |
180    | This array of class aliases will be registered when this application
181    | is started. However, feel free to register as many as you wish as
182    | the aliases are "lazy" loaded so they don't hinder performance.
183    |
184    */
185
186    'aliases' => Facade::defaultAliases()->merge([
187        // 'Example' => App\Facades\Example::class,
188    ])->toArray(),
189
190];