https://github.com/link1st/laravel-test
laravel扩展开发
https://github.com/link1st/laravel-test
Last synced: about 1 month ago
JSON representation
laravel扩展开发
- Host: GitHub
- URL: https://github.com/link1st/laravel-test
- Owner: link1st
- License: mit
- Created: 2016-12-01T08:14:00.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-12-05T06:06:44.000Z (over 9 years ago)
- Last Synced: 2025-02-23T18:47:10.137Z (over 1 year ago)
- Language: PHP
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# laravel-test
laravel扩展开发
## 安装
加载包
`"link1st/laravel-test": "dev-master"`
在配置文件中添加 **config/app.php**
```php
'providers' => [
/**
* 添加供应商
*/
link1st\test\TestServiceProvider::class,
],
'aliases' => [
/**
* 添加别名
*/
'test'=>link1st\test\Facades\Test::class,
],
```
生成配置文件
`php artisan vendor:publish`
## 使用
```php
// 使用自动加载直接使用
$link = new \link1st\test\easemob();
echo $link->get_config();
// 使用门面使用
echo \test::get_config();
echo \test::index();
```