dev-master
9999999-devLaravel Photos module
MIT
The Requires
- php >=5.5.9
- laravel/framework 5.1.*
- jrm2k6/cloudder 0.2.*
- php-soft/laravel-array-view 1.1.x
- webpatser/laravel-uuid 2.*
The Development Requires
by Huy Ta
laravel module photos
Wallogit.com
2017 © Pedro Peláez
Laravel Photos module
Install via composer - edit your composer.json to require the package., (*2)
"require": {
// ...
"php-soft/laravel-photos": "dev-master",
}
Then run composer update in your terminal to pull it in.
Once this has finished, you will need to add the service provider to the providers array in your app.php config as follows:, (*3)
'providers' => [
// ...
PhpSoft\ArrayView\Providers\ArrayViewServiceProvider::class,
JD\Cloudder\CloudderServiceProvider::class, // use for cloudinary driver
PhpSoft\Photos\Providers\PhotosServiceProvider::class,
]
Next, also in the app.php config file, under the aliases array, you may want to add facades., (*4)
'aliases' => [
// ...
'Photo' => PhpSoft\Photos\Facades\Photo::class,
]
You will want to publish the config using the following command:, (*5)
$ php artisan vendor:publish --provider="PhpSoft\Photos\Providers\PhotosServiceProvider" # if use cloudinary driver, you need publish cloudder config as follows $ php artisan vendor:publish --provider="JD\Cloudder\CloudderServiceProvider"
You can custom configurations in the config files!, (*6)
Add routes in app/Http/routes.php, (*7)
Route::post('/photos', '\PhpSoft\Photos\Controllers\PhotosController@upload');
Laravel Photos module
MIT
laravel module photos