I'm using a namespace in a PHP script, which in turn includes other scripts. For example:
use Illuminate\Database\Capsule\Manager as Capsule; $page_name = "something"; require_once('views/' . $page_name . '.php');
... $my_res = Capsule::table('my_table')->get(); ...
exception '...\ErrorException' with message 'Class 'Capsule' not found' in /my/path/views/autoreboot.php:10
Maybe it's just me being silly, but I can't get to understand this behaviour. Am I forced to use
use within any script? Can someone explain?