A picture manage tool
- Run
composer require ty666/picture-manager
- Add
Ty666\PictureManager\PictureManagerServiceProvider::class,
to providers in config/app.php - Run
php artisan vendor:publish --provider="Ty666\PictureManager\PictureManagerServiceProvider"
Set the pictureConfig options in config/picture.php
Show picture
Route::get('pic/{pictureId}_{style?}', function ($pictureId, $style = null) {
return PictureManager::init($pictureId, $style)->show();
});
Visit http://localhost/pic/99cceb7fd0bdf4e17903dc2655c84af4
ok!