定制 php-soft/laravel-photos 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

php-soft/laravel-photos

Composer 安装命令:

composer create-project php-soft/laravel-photos

包简介

Laravel Photos module

README 文档

README

Build Status

1. Installation

Install via composer - edit your composer.json to require the package.

"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:

'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.

'aliases' => [
    // ...
    'Photo' => PhpSoft\Photos\Facades\Photo::class,
]

You will want to publish the config using the following command:

$ 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!

2. Usage

Add routes in app/Http/routes.php

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

统计信息

  • 总下载量: 1.61k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 6
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-08-03