1. Go to this page and download the library: Download anthoz69/anter 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/ */
anthoz69 / anter example snippets
'providers' => [
// other providers ommited
anthoz69\anter\Providers\AntherServiceProvider::class,
],
// Store image in /storage/app/public/user/cover
// save() method will return full path of image.
$image = AnterStore::make('user/cover', $request->file('image'));
$image->crop(300, 450)->save(); // Crop image from center size 300px x 450px.
$image->fit(300, 300, true)->save(); // Resize and crop image to 300px x 300px and prevent up size image if set true.
$image->resize(300, true)->save(); // Resize to width 300px and prevent up size image if set true.
$image->width(); // Get width of image.
$image->height(); // Get height of image.
setCurrency($number, $percision = 2); // truncate and round
truncate($number, $percision = 2); // truncate and not round number
isRouteMatch('/admin/*', $class = 'active');
<li class="{{ isRouteMatch('/admin/*', 'active-patent-menu') }}"></li>
// output if url start with /admin/user
<li class="active-patent-menu"></li>