PHP code example of quickclack / database-filler

1. Go to this page and download the library: Download quickclack/database-filler 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/ */

    

quickclack / database-filler example snippets



    
    declare(strict_types = 1);
  
    use Illuminate\Support\Facades\DB;
    
    return new class
    {
        public function run(): void
        {
            DB::table('prices')
                ->where('product_id', '=', 1)
                ->update([
                    'price' => 18.99
                ]);
        }
    };