I want try some code in cmd. I need to access to the service container of a full MVC laravel app.
I have create a PHP file in the root directory of application with the following contents:
<?php
require_once __DIR__ . '/bootstrap/autoload.php';
$app = require_once __DIR__ . '/bootstrap/app.php';
dd(config('app.locale')); // does not works!
However the no service is available. What other should I add to the file to make it working?