PHP code example of leventust / levframe

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

    

leventust / levframe example snippets


Schema::create('products', function (Blueprint $table) {
    $table->id();
    $table->string('name');
    $table->decimal('price', 8, 2);
    $table->timestamps();
});

Schema::table('products', function (Blueprint $table) {
    $table->integer('stock')->default(0);
});
bash
php console migrate
bash
php console make:job OrnekIslemJob
bash
php console queue:work