pictureManager for Laravel 5.*
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!