PHP code example of vocalio / laravel-starter-kit

1. Go to this page and download the library: Download vocalio/laravel-starter-kit 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/ */

    

vocalio / laravel-starter-kit example snippets


public function __invoke(): void
{
    Order::query()
        ->where('state', 'new')
        ->update(['state' => OrderState::CREATED]);
}

public function __invoke(): void
{
    Order::query()
        ->whereDate('created_at', '<', '2024-01-01')
        ->delete();
}
bash
php artisan starter-kit:install
bash
php artisan test
bash
php artisan db-update:create
bash
php artisan db-update:run