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

use Illuminate\Foundation\Application;

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

// Register the Composer autoloader...
if (file_exists(__DIR__.'/vendor/autoload.php')) {
    require __DIR__.'/vendor/autoload.php';
}

// Bootstrap Laravel and handle the command...
if (file_exists(__DIR__.'/bootstrap/app.php')) {
    /** @var Application $app */
    $app = require_once __DIR__.'/bootstrap/app.php';
    $status = $app->handleCommand(new Symfony\Component\Console\Input\ArgvInput);
    exit($status);
} else {
    echo "বাংলা স্মার্ট টালি খাতা Artisan CLI - Run 'composer install' first.\n";
    exit(0);
}
