2017 © Pedro Peláez
 

library rander

rand support in laravel 5

image

yuxiaoyang/rander

rand support in laravel 5

  • Sunday, April 16, 2017
  • by 865826021
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Laravel5 rand 扩展使用教程

用法

composer require yuxiaoyang/rander

或者在你的 composer.json 的 require 部分中添加:, (*1)

 "yuxiaoyang/rander": "~1.0"

下载完毕之后,直接配置 config/app.phpproviders:, (*2)

//Illuminate\Hashing\HashServiceProvider::class,

Yuxiaoyang\Rander\RanderProvider::class,

控制器中使用 IndexController.php :, (*3)

```php, (*4)

<?php, (*5)

use \Yuxiaoyang\Rander\Rander;, (*6)

class IndexController extends Controller { public $rand;, (*7)

public function index(Request $request)
{
    //$this->rand = new \Yuxiaoyang\Rander\Rander();
    $this->rand = new Rander();
    //make($num)  $num为需要生成的字符串长度
    echo $this->rand->make(5);
}

}, (*8)

The Versions

16/04 2017

dev-master

9999999-dev

rand support in laravel 5

  Sources   Download

MIT

by yu xiao yang

15/04 2017

1.0

1.0.0.0

rand support in laravel 5

  Sources   Download

MIT

by yu xiao yang