{"id":34007969,"url":"https://github.com/plusemon/laravel-file-uploader","last_synced_at":"2026-04-09T00:02:46.280Z","repository":{"id":56788143,"uuid":"498600760","full_name":"plusemon/laravel-file-uploader","owner":"plusemon","description":"Easy way to upload Laravel model related files from the request.","archived":false,"fork":false,"pushed_at":"2023-12-02T04:54:50.000Z","size":43,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-14T23:08:15.772Z","etag":null,"topics":["eloquent","laravel","laravel-package","php","upload"],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/plusemon/uploader","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/plusemon.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-06-01T05:19:48.000Z","updated_at":"2023-02-19T10:59:32.000Z","dependencies_parsed_at":"2023-01-23T09:30:25.566Z","dependency_job_id":null,"html_url":"https://github.com/plusemon/laravel-file-uploader","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/plusemon/laravel-file-uploader","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plusemon%2Flaravel-file-uploader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plusemon%2Flaravel-file-uploader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plusemon%2Flaravel-file-uploader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plusemon%2Flaravel-file-uploader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/plusemon","download_url":"https://codeload.github.com/plusemon/laravel-file-uploader/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plusemon%2Flaravel-file-uploader/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31579058,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"ssl_error","status_checked_at":"2026-04-08T14:31:17.202Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["eloquent","laravel","laravel-package","php","upload"],"created_at":"2025-12-13T11:18:12.573Z","updated_at":"2026-04-09T00:02:46.275Z","avatar_url":"https://github.com/plusemon.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Laravel Model Easy File Uploader\nEasy way to upload laravel model related file from the requset.\n\n\n## Basic Examples\n\n```php\n\n$product = Product::first();\n\n// Store file\n$product-\u003euploadRequestFile('image'); // attach $request-\u003eimage into $product-\u003eimage\n$product-\u003euploadRequestFile('image', 'thumbnail'); // attach $request-\u003eimage into $product-\u003ethumbnail\n$product-\u003euploadRequestFile('image')-\u003esaveInto('thumbnail'); // save into custom column\n\n// Update file\n$product-\u003euploadRequestFile('image')-\u003eupdateInto('thumbnail'); // will delete old file and update the new file\n\n// Delete file\n$product-\u003edeleteFile('image');\n$product-\u003edeleteWithFile('image'); // delete the model with file\n$product-\u003edeleteWith('image'); // deleteWithFile() shorter\n\n// Upload multiple files\n$product-\u003euploadRequestFiles('images')-\u003egetUploadedFiles(); // return the uploaded files as array\n$product-\u003euploadRequestFiles('images')-\u003esaveInto('thumbnails', true); // save as array into $product-\u003ethumbnails\n$product-\u003euploadRequestFiles('images')-\u003esaveAsArrayInto('thumbnails'); \n\n# Note: all the files will be save into /public/uploads/products/images/products-1.jpg\n\n\n// Get the attached file url \n$product-\u003eurlOf('image') // https://website.com/uploads/products/images/products-1.jpg\n\n// Render the file\n//  \u003cimg src=\"{{ $product-\u003eurlOf('image') ?? 'no-image-available.png' \"\u003e\n\n\n## Advance\n\n// Intervention Image support\n$product-\u003euploadRequestFile('image')-\u003eimage()-\u003eresize()-\u003ecrop()-\u003esave();  \n\n// custom file upload helper\n$product-\u003eupload($request-\u003efile('image'), $module_name = 'products', $file_type = 'images', $unique_id = 123);\n\n\n```\n\n## Installation\n```bash\ncomposer require plusemon/uploader\n```\n\nuse HasUploader trait on the dedicated model\n\n```php\n\n\u003c?php\n\nnamespace App\\Models;\nuse Plusemon\\Uploader\\HasUploader;\nuse Illuminate\\Database\\Eloquent\\Model;\n\nclass Product extends Model\n{\n    use HasUploader;\n}\n\n```\n\n### You are ready to go... :)\n\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) for details.\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplusemon%2Flaravel-file-uploader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fplusemon%2Flaravel-file-uploader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplusemon%2Flaravel-file-uploader/lists"}