karim-qaderi/zoroaster-filemanager

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

Filemanager tool for zoroaster

v1.2 2019-03-04 07:55 UTC

This package is auto-updated.

Last update: 2024-11-04 21:15:43 UTC


README

Filemanager tool

نصب

composer require karim-qaderi/zoroaster-filemanager

 php artisan vendor:publish --tag=Zoroaster-filemanager-assets --force

Field

use KarimQaderi\ZoroasterFilemanager\FilemanagerField;

FilemanagerField::make('عکس','img');

سطح دسترسی

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

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