Media Library
Dashcode is provided with media-manager support with Spatie's Laravel-medialibrary package. This package can associate all sorts of files with Eloquent models. It provides a simple, fluent API to work with. The Pro version of the package offers Blade, Vue and React components to handle uploads to the media library and to administer the content of a medialibrary collection.
TIP
You can find Laravel-medialibrary official documentation here Laravel-medialibrary.
Working with media library example
php
if ($request->hasFile('photo')) {
$user->clearMediaCollection('profile-image');
$user->addMediaFromRequest('photo')->toMediaCollection('profile-image');
}