learning for log

Maintainers

Details

github.com/genhow2000/dd

Source

Issues

Installs: 33

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/aden551/dd

1.19 2020-07-29 02:52 UTC

This package is auto-updated.

Last update: 2025-09-20 13:40:15 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);

    }

}