{"repo":"djurovicigoor/lara-files","free":true,"listed":false,"github":"https://github.com/djurovicigoor/lara-files","clone":"git clone https://github.com/djurovicigoor/lara-files.git","description":"Lara Files is a flexible Laravel package that simplifies file uploads, management, and polymorphic relationships. It provides an elegant model-based approach for attaching, organizing, and retrieving uploaded files across your application.","language":"PHP","stars":119,"topics":["laravel","package","files","filestorage","upload","storage"],"license":"MIT","category":"databases-storage","readme_excerpt":"LaraFiles 📦 Lara Files Lara Files is a lightweight and flexible Laravel package for handling file uploads for Eloquent models. It provides a fully-featured LaraFile model, a powerful upload service, and clean integration via traits—allowing you to easily attach files (images, documents, etc.) to any model in your application. Built for Laravel 10, 11, 12, and 13 support in mind, and it's ideal for modern Laravel projects that need organized file management. - Choose version - Installation - Configurations - Database setup - LaraFile model - Multiple disks - Preparing your model - Associating HTTP file - Associating base64 representation of file/files - Ordering files - Upload without model (temp file) - Custom properties - Change log - Contributing - Security - Donate - Credits - Contributors - License Versions Lara files Laravel PHP ------------------------------------------------------------------ -------------- -------------- v2.x 10.x - 13.x 8.2+ (L13: 8.3+) v1.x 5.5 - 9.x 7.2+ Installation Lara files can be installed via Composer: The service provider will automatically get registered if not you can manually add it in your bootstrap/providers.php file: Now you can publish a service provider: Config file This is the default content of the config file: Preparing the database You need to run migrations to create lara files table LaraFile model The LaraFile model provides one MorphToMany relation by default. If you want to use more than default laraFile() relation, you shou","default_branch":null,"files":null,"tree":[],"storefront":"/r/djurovicigoor","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/djurovicigoor/lara-files/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}