karim-qaderi/zoroaster-cache-card

There is no license information available for the latest version (v1.0) of this package.

Manage your application's cache from a handy zoroaster dashboard card.

v1.0 2019-02-23 08:01 UTC

This package is auto-updated.

Last update: 2024-10-24 05:33:53 UTC


README

نصب

composer require karim-qaderi/zoroaster-cache-card

استفاده

// in app\Zoroaster\Other\Dashboard.php

// ...

public function handle()
{
    return [
        // ...
        new \KarimQaderi\ZoroasterCacheCard\CacheCard(),
    ];
}

سطح دسترسی

برای اینکه سطح دسترسی رو بزارید فایل app/Providers/ZoroasterServiceProvider.php رو باز کنید کد زیر رو در boot قرار دهید.

/**
 * Bootstrap any application services.
 *
 * @return void
 */
protected function boot()
{
    Gate::define('Zoroaster-cache-card', function ($user) {
        return in_array($user->email, [
            'karimqaderi1@gmail.com',
        ]);
    });
}