1. Go to this page and download the library: Download daycode/stup-images 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/ */
daycode / stup-images example snippets
use Daycode\StupImage\Stupable;
public function store(Request $request): RedirectResponse
{
User::create(... + [
'thumbnail' => $this->uploadFile($request->file('thumbnail'), 'images/thumbnail'),
]);
return redirect()->back()->with('success', 'User Successfully Created');
}