aden551/dd
Composer 安装命令:
composer require aden551/dd
包简介
learning for log
关键字:
README 文档
README
install via composer
composer require aden551/dd
run migrate
php artisan migrate --path=vendor/aden551/dd/database/migrations
add it in your controller
use Aden\Tool\Dd;
Function
! log(array/string $log1,log2,log3) Description:The Code is functioning properly.save your data in database.But it will add the log in your database,the table name is getlog. Parameter:$log1 is array/string ! Dd(array/string $log1,log2,log3) Description:stop code and dd show it .save your data in database.But it will add the log in your database,the table name is getlog. Parameter:$log1 is array/string Return:dd($log1)
Example
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Aden\Tool\Dd;
class TestController extends Controller
{
public function test(Request $request)
{
$array = 'test';
//單純記錄參數不停止CODE運行
dd::log($array);
//靜態記錄你的array && DD SHOW IT
dd::dd($array);
}
}
统计信息
- 总下载量: 33
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-07-22