lidelin/laravel-leancloud

leancloud php sdk for laravel

v0.2.0 2019-03-26 10:12 UTC

This package is auto-updated.

Last update: 2024-03-26 21:24:27 UTC


README

Require

  • Laravel 5+
  • leancloud php sdk

Installation

composer require lidelin/laravel-leancloud

In your config/app.php add this line to providers array:

LDL\LeanCloud\Provider\LaravelServiceProvider::class,

For Laravel 5.5 package supports package discovery feature.

Then run the command to publish the config.

php artisan vendor:publish --provider="LDL\LeanCloud\Provider\LaravelServiceProvider" --tag=config

Configuration

add these lines to your .env file

LEANCLOUD_APP_ID=
LEANCLOUD_APP_KEY=
LEANCLOUD_MASTER_KEY=
LEANCLOUD_API_SERVER=
LEANCLOUD_APP_ENV=production      # "production" for production envirenment

Usage

Documentation

More development detail see

License

Source code is release under MIT license. Read LICENSE file for more information.