Dashboard

Introduction

EAV Dashboard provides a beautiful dashboard for your EAV package. Dashboard allows you to easily add, update, sort and remove attributes, set, group.

"Eav Dashboard" Preview on YouTube.

Installation

You may use Composer to install Dashboard into your Laravel project:

composer require sunel/eav-dashboard

After installing Dashboard, publish its assets using the eav-dash:publish Artisan command:

php artisan eav-dash:publish

WARNING

YOU NEED TO ADD THE API SERVICE PROVIDER

'providers' => [
    ...
    Eav\Api\ServiceProvider::class,
]

Upgrading Dashboard

When upgrading you should re-publish Dashboard's assets:

php artisan eav-dash:publish --clean

Configuration

Yet to be added

Dashboard Authorization

EAV Dashboard exposes a dashboard at /eav/dashboard/. By default, you will only be able to access this dashboard in the local environment. Within your app/Providers/EAVDashboardServiceProvider.php file, there is a gate method. This authorization gate controls access to Dashboard in non-local environments. You are free to modify this gate as needed to restrict access to your Dashboard installation:

    /**
     * Register the Dashboard gate.
     *
     * This gate determines who can access Dashboard in non-local environments.
     *
     * @return void
     */
    protected function gate()
    {
        Gate::define('viewEavDash', function ($user) {
            return in_array($user->email, [
                'sunelbe@gmail.com',
            ]);
        });
    }