nova-files
Laravel Nova files resource.
Installation
Require package with Composer.
composer require den1n/nova-files
Publish package resources.
php artisan vendor:publish --provider=Den1n\NovaFiles\ServiceProvider
This will publish the following resources:
- Configuration file
config/nova-files.php
- Migration file
database/migrations/*_create_files_tables.php
- Translations
resources/lang/vendor/nova-files
Migrate database.
php artisan migrate
Add instance of class Den1n\NovaFiles\Tool
to your App\Providers\NovaServiceProvider::tools()
method to display the files within your Nova resources.
/**
* Get the tools that should be listed in the Nova sidebar.
*
* @return array
*/
public function tools()
{
return [
new \Den1n\NovaFiles\Tool,
];
}
Screenshots
Files
File Details
Contributing
- Fork it.
- Create your feature branch:
git checkout -b my-new-feature
. - Commit your changes:
git commit -am 'Add some feature'
. - Push to the branch:
git push origin my-new-feature
. - Submit a pull request.
Support
If you require any support open an issue on this repository.
License
MIT