spatie/laravel-medialibrary

Associate files with Eloquent models

PHPBladephplaraveleloquentimagesuploadmediahacktoberfest
This is stars and forks stats for /spatie/laravel-medialibrary repository. As of 10 May, 2024 this repository has 5437 stars and 1028 forks.

Associate files with Eloquent models This package can associate all sorts of files with Eloquent models. It provides a simple API to work with. To learn all about it, head over to the extensive documentation. Here are a few short examples of what you can do: $newsItem = News::find(1); $newsItem->addMedia($pathToFile)->toMediaCollection('images'); It can handle your uploads directly: $newsItem->addMedia($request->file('image'))->toMediaCollection('images'); Want to store some large...
Read on GithubGithub Stats Page
repotechsstarsweeklyforksweekly
huggingface/diffusersPythonOther18.3k03.8k0
json-c/json-cCCMakeShell2.8k01.1k0
JuliaCommunity/YouTubeVideoTimestampsJulia51+2370
NeoApplications/Neo-LauncherJavaKotlinPython1.3k0720
deaaprizal/laract9PHPJavaScriptBlade18701290
koillection/koillectionPHPTwigJavaScript3720190
paragonie/awesome-appsecPHP5.8k07190
protonemedia/laravel-spladePHPBladeVue1.3k+1294+1
mgeeky/ProtectMyToolingPowerShellAssemblyPython70301110
logto-io/docsMDXJavaScriptSCSS90200