Skip to content

Instantly share code, notes, and snippets.

@pferreirafabricio
Created December 27, 2023 00:36
Show Gist options
  • Save pferreirafabricio/f8fcee14d9c8cdd8ff057a654d148a13 to your computer and use it in GitHub Desktop.
Save pferreirafabricio/f8fcee14d9c8cdd8ff057a654d148a13 to your computer and use it in GitHub Desktop.
🐘 A simple start script to build a standalone app using Laravel features
<?php
require __DIR__ . './vendor/autoload.php';
$app = require_once __DIR__ . './bootstrap/app.php';
$kernel = $app->make(\Illuminate\Contracts\Http\Kernel::class);
$response = $kernel->handle(
$request = \Illuminate\Http\Request::capture()
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment