Package Data | |
---|---|
Maintainer Username: | link1st |
Maintainer Contact: | link12stl@gmail.com (link1st) |
Package Create Date: | 2016-12-01 |
Package Last Update: | 2016-12-05 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-15 15:18:56 |
Package Statistics | |
---|---|
Total Downloads: | 11 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 1 |
Total Forks: | 0 |
Total Open Issues: | 0 |
laravel扩展开发
加载包
"link1st/laravel-test": "dev-master"
在配置文件中添加 config/app.php
'providers' => [
/**
* 添加供应商
*/
link1st\test\TestServiceProvider::class,
],
'aliases' => [
/**
* 添加别名
*/
'test'=>link1st\test\Facades\Test::class,
],
生成配置文件
php artisan vendor:publish
// 使用自动加载直接使用
$link = new \link1st\test\easemob();
echo $link->get_config();
// 使用门面使用
echo \test::get_config();
echo \test::index();