PHP code example of yangweijie / think-laradumps

1. Go to this page and download the library: Download yangweijie/think-laradumps 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/ */

    

yangweijie / think-laradumps example snippets


Route::get('/', function () {
    ds('Home page accessed!');
    return view('home');
});

ds('')->phpinfo();

ds()->table([['id'=1,'name'=>'a']], 'table');

ds()->time('event');
ds()->stopTime('event');


ds('调试信息1')->s('tab1'); // 可以输出不同调试到不同tab