ty666 / picture-manager
a picture manager tool
2.0.15
2017-06-25 17:31 UTC
Requires
- intervention/image: ^2.0
README
A picture manage tool
Installation
- 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"
Config
Set the pictureConfig options in config/picture.php
Usage
Show picture
Route::get('pic/{pictureId}_{style?}', function ($pictureId, $style = null) {
return PictureManager::init($pictureId, $style)->show();
});
Visit http://localhost/pic/99cceb7fd0bdf4e17903dc2655c84af4
ok!