PHP code example of max-dev / backpack-helpers
1. Go to this page and download the library: Download max-dev/backpack-helpers 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/ */
max-dev / backpack-helpers example snippets
class Model {
use \BackpackHelpers\ImageHelper\ImageHelper;
//...
public function setImageAttribute($value) {
$this->handleStoreImageAttribute('image', $value, 'uploads/posts', 'public');
}
//...
}