PHP code example of kigamba / laravel-artisan-dd
1. Go to this page and download the library: Download kigamba/laravel-artisan-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/ */
kigamba / laravel-artisan-dd example snippets
// app/Console/Kernel.php
protected $commands = [
...
\Kigamba\ArtisanDd\DdCommand::class,
];
php artisan dd "\App\Models\NewsItem::first()";
php artisan dd "NewsItem::first()";
bash
php artisan dd "bcrypt('secret')";
bash
php artisan dd "bcrypt('secret')" "bcrypt('another-secret')";