PHPackages                             mostafaznv/nova-larupload - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [File &amp; Storage](/categories/file-storage)
4. /
5. mostafaznv/nova-larupload

Abandoned → [mostafaznv/nova-file-artisan](/?search=mostafaznv%2Fnova-file-artisan)Library[File &amp; Storage](/categories/file-storage)

mostafaznv/nova-larupload
=========================

File Upload Tool for Laravel Nova

2.3.4(1y ago)8491[1 issues](https://github.com/mostafaznv/nova-file-artisan/issues)MITVuePHP ^8.2CI passing

Since Sep 24Pushed 1y ago1 watchersCompare

[ Source](https://github.com/mostafaznv/nova-file-artisan)[ Packagist](https://packagist.org/packages/mostafaznv/nova-larupload)[ RSS](/packages/mostafaznv-nova-larupload/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (4)Versions (23)Used By (0)

Nova File Artisan
=================

[](#nova-file-artisan)

[![GitHub license](https://camo.githubusercontent.com/96e7fe3ca53d48bad4abba9fe7d6ab77ca90b5fb0c5d7137e33f67e3d97078b3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6d6f73746166617a6e762f6e6f76612d66696c652d6172746973616e3f7374796c653d666c61742d737175617265)](https://github.com/mostafaznv/nova-file-artisan/blob/main/LICENSE.txt)[![Packagist Downloads](https://camo.githubusercontent.com/5d18cb725a9a0a352091d02c9df727614e4c9ae429d85c3f80d0581b390c3da8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d6f73746166617a6e762f6e6f76612d66696c652d6172746973616e3f7374796c653d666c61742d737175617265266c6f676f3d7061636b6167697374)](https://packagist.org/packages/mostafaznv/nova-file-artisan)[![Latest Version on Packagist](https://camo.githubusercontent.com/36d018b314587b9807f6b7b175cea621067af05ef522b9c7d025cbdfe13cb007/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d6f73746166617a6e762f6e6f76612d66696c652d6172746973616e2e7376673f7374796c653d666c61742d737175617265266c6f676f3d636f6d706f736572)](https://packagist.org/packages/mostafaznv/nova-file-artisan)

Nova File Artisan is a package that integrates [Larupload](https://github.com/mostafaznv/larupload) with Laravel Nova. Larupload is a file uploader for Laravel, which is based on ORM and allows users to upload `images`, `videos`, `audios`, and other known file formats.

With `Nova File Artisan`, you can use the features of both packages to create a admin panel for your Laravel project. You can upload and display various types of files (such as images, videos, audio, etc.) in your Nova resources. You can also transform your files (such as `resizing`, `cropping`, `compressing`, etc.) using Larupload's methods. You can also set your upload settings (such as disk, path, visibility, etc.) using Larupload's options.

Nova File Artisan is simple to install and use, and it supports multiple file systems (such as local, s3, sftp, etc.).

[Demo](#demo)

---

I am on an open-source journey 🚀, and I wish I could solely focus on my development path without worrying about my financial situation. However, as life is not perfect, I have to consider other factors.

Therefore, if you decide to use my packages, please kindly consider making a donation. Any amount, no matter how small, goes a long way and is greatly appreciated. 🍺

[![Donate](https://camo.githubusercontent.com/0b7607d470e0ccaa24269275d40233442275a42b0a714b4875bccf62f6ed5295/68747470733a2f2f6d6f73746166617a6e762e6769746875622e696f2f646f6e6174652f646f6e6174652e737667)](https://mostafaznv.github.io/donate)

---

### Some features for Nova Artisan Field:

[](#some-features-for-nova-artisan-field)

- Display a wide variety of file types, such as video, audio, and HLS, with exceptional quality.
- Automatic resizing and cropping of photos and videos.
- Automatic creation of multiple sizes for videos and images.
- Support for creating and displaying HTTP Live Streaming (HLS) from video sources.
- Automatic generation of cover images for video files.
- Ability to upload a custom cover for each file.
- Built-in support for image optimization.
- Extraction of image width and height.
- Extraction of video width, height, and duration.
- Extraction of audio duration.
- Extraction of the dominant color from images and videos.
- Download button for each file style.
- Compatibility with various storage drivers.
- Video processing through a queue system.
- Ready for integration with a REST API.
- All [Larupload](https://github.com/mostafaznv/larupload) features are accessible in Nova File Artisan.

Requirements:
-------------

[](#requirements)

- PHP 8.2 or higher
- Larupload 1.0.4 or higher
- Laravel 10.4.1 or higher
- Nova 4.27 or higher

Installation and Usage
----------------------

[](#installation-and-usage)

Note

Ensure that you have already installed and configured the Larupload package in your Laravel application. If you haven't done so, please refer to the Larupload [documentation](https://github.com/mostafaznv/larupload) for instructions on installation and usage. **It's important to create attachments for each model before proceeding with Nova File Artisan.**

1. ##### Install the package via composer:

    [](#install-the-package-via-composer)

```
composer require mostafaznv/nova-file-artisan
```

2. ##### Publish config file:

    [](#publish-config-file)

```
php artisan vendor:publish --provider="Mostafaznv\NovaFileArtisan\NovaFileArtisanServiceProvider"
```

3. ##### Prepare Migration &amp; Model (for more information, see [Larupload documentation](https://github.com/mostafaznv/larupload))

    [](#prepare-migration--model-for-more-information-see-larupload-documentation)

###### Migration

[](#migration)

```
