nagahnextdev/nextdashboard

Api for Dashbord

Installs: 74

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/nagahnextdev/nextdashboard

dev-main 2025-06-29 08:55 UTC

This package is auto-updated.

Last update: 2026-03-01 00:47:40 UTC


README

NextDashboard is a customizable admin dashboard package built specifically for Laravel projects.
It provides out-of-the-box features including:

  • Admin authentication system
  • Role & permission management using Spatie Laravel-Permission
  • A full-featured ticketing system
  • Media management and activity logging via Spatie libraries

๐Ÿ“ฆ Installation & Setup

1๏ธโƒฃ Install the Package

composer require nagahnextdev/nextdashboard:dev-main

๐Ÿ” Authentication Setup

Update your config/auth.php file:

โž• Add the admin guard:

'admin' => [
    'driver' => 'token',
    'provider' => 'admins',
],

โž• Add the admins provider:

'admins' => [
    'driver' => 'eloquent',
    'model' => \nextdev\nextdashboard\Models\Admin::class,
],

๐Ÿ›ก๏ธ Spatie Permission Setup

php artisan vendor:publish --tag="permission-migrations"
php artisan vendor:publish --tag="permission-config"
php artisan migrate

๐Ÿ“ Media Library Setup

php artisan vendor:publish --provider="Spatie\MediaLibrary\MediaLibraryServiceProvider" --tag="medialibrary-migrations"
php artisan vendor:publish --provider="Spatie\MediaLibrary\MediaLibraryServiceProvider" --tag="medialibrary-config"

Update your config/filesystems.php:

'disks' => [
    'public' => [
        'driver' => 'local',
        'root' => storage_path('app/public'),
        'url' => env('APP_URL').'/storage',
        'visibility' => 'public',
    ],
]

Then link the storage:

php artisan storage:link

๐Ÿ“ Activity Log Setup

php artisan vendor:publish --provider="Spatie\Activitylog\ActivitylogServiceProvider" --tag="activitylog-migrations"
php artisan vendor:publish --provider="Spatie\Activitylog\ActivitylogServiceProvider" --tag="activitylog-config"
php artisan migrate

โš™๏ธ Publish NextDashboard Resources

php artisan vendor:publish --tag=nextdashboard-migrations
php artisan vendor:publish --tag=nextdashboard-seeders

๐ŸŒฑ Seed Initial Admin User

php artisan db:seed --class=PermissionSeeder
php artisan db:seed --class=AdminSeeder

Note: Ensure that Spatie permissions are properly installed before running this seeder.

๐Ÿ“ข Available Events

You can list all available events using:

php artisan nextdashboard:list-events
Event Name Description
AdminCreated Triggered when a new admin is created
RoleAssignedToAdmin Triggered when a role is assigned to an admin
TicketCreated Triggered when a new ticket is created
TicketAssigned Triggered when a ticket is assigned to an admin
TicketReplied Triggered when a reply is added to a ticket

๐Ÿงน Scheduled Commands

Clean up expired OTPs:

php artisan otps:delete-expired

Add this command to the scheduler in your App\Console\Kernel.php.