PHP code example of karim-qaderi / zoroaster-filemanager

1. Go to this page and download the library: Download karim-qaderi/zoroaster-filemanager library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

karim-qaderi / zoroaster-filemanager example snippets


use KarimQaderi\ZoroasterFilemanager\FilemanagerField;

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


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