1. Go to this page and download the library: Download antennaio/laravel-clyde 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/ */
antennaio / laravel-clyde example snippets
use Antennaio\Clyde\ClydeUpload;
...
protected $uploads;
public function __construct(ClydeUpload $uploads)
{
$this->uploads = $uploads;
}
public function upload(Request $request)
{
if ($request->hasFile('image')) {
$filename = $this->uploads->upload($request->file('image'));
}
}
use Antennaio\Clyde\Facades\ClydeUpload;
...
public function upload(Request $request)
{
if ($request->hasFile('image')) {
$filename = ClydeUpload::upload($request->file('image'));
}
}