#!/usr/bin/env php
<?php

use Illuminate\Foundation\Application;
use Illuminate\Contracts\Console\Kernel;

define('LARAVEL_START', microtime(true));

// Register the Composer autoloader...
require __DIR__.'/vendor/autoload.php';

// Bootstrap Laravel and fire the Artisan command...
$app = make(Application::class);

$kernel = $app->make(Kernel::class);

$status = $kernel->handle(
    $request = Illuminate\Http\Request::capture()
);

$kernel->terminate($request, $status);

exit($status);
