aden551 / dd
learning for log
1.19
2020-07-29 02:52 UTC
Requires
- php: >=7.0.0
- encore/laravel-admin: ~1.6
Requires (Dev)
- phpunit/phpunit: ~6.0
This package is auto-updated.
Last update: 2026-02-20 14:31:33 UTC
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);
}
}