aden551 / dd
learning for log
Installs: 33
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/aden551/dd
Requires
- php: >=7.0.0
- encore/laravel-admin: ~1.6
Requires (Dev)
- phpunit/phpunit: ~6.0
This package is auto-updated.
Last update: 2025-10-20 13:47:01 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);
}
}