PHP code example of yurizoom / moonshine-media-manager
1. Go to this page and download the library: Download yurizoom/moonshine-media-manager 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/ */
yurizoom / moonshine-media-manager example snippets
[
'media-manager' => [
// Автоматическое добавление в меню
'auto_menu' => true,
// Корневая директория
'disk' => config('filesystem.default', 'public'),
// Разрешенные для загрузки расширения файлов
'allowed_ext' => 'jpg,jpeg,png,pdf,doc,docx,zip',
// Вид менеджера по-умолчанию
'default_view' => 'table',
]
]
use YuriZoom\MoonShineMediaManager\Pages\MediaManagerPage;
protected function menu(): array
{
return [
...
MenuItem::make(
static fn () => __('Media manager'),
new MediaManagerPage(),
),
...
];
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.