PHP code example of liberusoftware / module-cms-media
1. Go to this page and download the library: Download liberusoftware/module-cms-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/ */
liberusoftware / module-cms-media example snippets
$media = app(\Liberu\Cms\Media\Media\StoreUpload::class)($request->file('file'), folder: 'articles');
$media->url();