2017 © Pedro Peláez
 

project laravel-photos

Laravel Photos module

image

php-soft/laravel-photos

Laravel Photos module

  • Monday, December 28, 2015
  • by huytbt
  • Repository
  • 6 Watchers
  • 2 Stars
  • 1,606 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 4 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Laravel Photos Module

Build Status, (*1)

1. Installation

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)

2. Usage

Add routes in app/Http/routes.php, (*7)

Route::post('/photos', '\PhpSoft\Photos\Controllers\PhotosController@upload');

The Versions

28/12 2015