PHP code example of nour / images
1. Go to this page and download the library: Download nour/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/ */
nour / images example snippets
// get user
$user=Auth::user();
// upload photo
$user->photo($request->file('photo'))->upload();
// resize image instance
$user->photo($request->file('photo'))->width(756)->height(425)->upload();
//get image src
$user->getImage()
// get image model
$user->Image;