1. Go to this page and download the library: Download gem-partij/gemboot-lara 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/ */
class UserCachingObserver extends \Gemboot\Observers\CoreEloquentCachingObserver
{
protected $cacheTag = 'users'; // the model's table name
}
User::observe(UserCachingObserver::class);
$service = (new UserService)->setObserver(new UserCachingObserver);
class CountryService extends GembootService
{
protected function cacheScope()
{
return null; // same list for every user
}
}
use Gemboot\FileHandler\FileHandler;
public function uploadImage(Request $request)
{
return (new FileHandler($request->file_image))
->uploadImage('photo.jpeg', '/images/2026')
->object();
}
sh
php artisan vendor:publish --tag=gemboot
sh
php artisan gemboot:doctor
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.