> ## Documentation Index
> Fetch the complete documentation index at: https://docs.larafast.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Admin Dashboard

> Admin dashboard for managing categories, listings, sales, etc.

Admin Dashboard comes with a built-in admin panel where you can manage categories, listings, subscriptions/orders, users, etc.

<Frame>
  <img src="https://mintcdn.com/larafast/p7p6xbnL6MINm0mR/images/directories/admin.jpg?fit=max&auto=format&n=p7p6xbnL6MINm0mR&q=85&s=0dc530dfe26093f697587db23c1d8d95" width="1780" height="927" data-path="images/directories/admin.jpg" />
</Frame>

<Info>
  Larafast Directories Admin dashboard is powered by <a href="https://filamentphp.com/docs/3.x/panels/installation" target="_blank">Filament</a>.
  It can be easily extended with components from their docs.
</Info>

### Accessing Admin Panel

For initial setup, change the admin email and password in `database/seeders/AdminSeeder.php`
file and run the seeder command to add to the database.

```bash theme={null}
php artisan db:seed --class=AdminSeeder
```

```php database/seeders/AdminSeeder.php theme={null}
<?php
...
class AdminSeeder extends Seeder
{
    public function run(): void
    {
        $user = User::create([
            'name' => 'Admin',
            'email' => 'admin@example.com',
            'password' => bcrypt('1111'),
        ]);

        $user->assignRole('admin');
    }
}
```

Now you can access the admin panel by visiting `/admin` route in your browser.

### Adding new admin users from terminal

To add new admin users, use the `php artisan make:admin` command and add name, email and password in the prompt.
