PHP Classes

File: samples/laravel/bootstrap/app.php

Recommend this page to a friend!
  Packages of Jonatas Matheus Gino de Souza   PHP Service Runner   samples/laravel/bootstrap/app.php   Download  
File: samples/laravel/bootstrap/app.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Service Runner
Invoke services using payload data as parameters
Author: By
Last change:
Date: 10 days ago
Size: 418 bytes
 

Contents

Class file image Download
<?php

use Illuminate\Foundation\Application;
use
Illuminate\Foundation\Configuration\Exceptions;
use
Illuminate\Foundation\Configuration\Middleware;

return
Application::configure(basePath: dirname(__DIR__))
    ->
withRouting(
       
api: __DIR__ . '/../routes/api.php',
    )
    ->
withMiddleware(function (Middleware $middleware) {
    })
    ->
withExceptions(function (Exceptions $exceptions) {
    })->
create();