PHP code example of ronasit / laravel-media
1. Go to this page and download the library: Download ronasit/laravel-media library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
ronasit / laravel-media example snippets
#routes/api.php
use Illuminate\Support\Facades\Route;
Route::group(['middleware' => ['my_auth']], function () {
Route::media();
});
#routes/api.php
use Illuminate\Support\Facades\Route;
use RonasIT\Media\Enums\MediaRouteActionEnum;
Route::media(MediaRouteActionEnum::SingleUpload, MediaRouteActionEnum::Delete);
sh
php artisan vendor:publish --provider=RonasIT\\Media\\MediaServiceProvider