Skip to content
On this page

Installation & Setup

Installing the package

To get started, you will need to install the following dependencies :

composer require oneduo/nova-file-manager

🎉 That's it, you're ready to go!

Configuration

You may publish the package's configuration by running the following command :

php artisan vendor:publish --tag="nova-file-manager-config"

NOTE

You can find details about the configuration options in the configuration file section.

Casting your model attributes

To use the package, you will need to cast your model attributes to the Oneduo\NovaFileManager\Casts\Asset for a single value or Oneduo\NovaFileManager\Casts\AssetCollection for multiple values.

<?php

namespace App\Models;

use Oneduo\NovaFileManager\Casts\AssetCollection;

class User extends Authenticatable
{
    protected $fillable = [
        'pictures',
    ];

    protected $casts = [
        'pictures' => AssetCollection::class,
    ];
}