PHP code example of aden551 / dd

1. Go to this page and download the library: Download aden551/dd library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

aden551 / dd example snippets

diff
php artisan migrate --path=vendor/aden551/dd/database/migrations
diff

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);

    }

}