Turning off facades in Lumen and what you get back

Facades and Eloquent are both commented out in a fresh Lumen application, and the instinct is to switch them on immediately, which gives back most of what was traded away.

// bootstrap/app.php — off by default
// $app->withFacades();
// $app->withEloquent();

// with facades off, the container is explicit:
$app->make('queue')->push(new ProcessOrder($id));

// or, better, inject it
public function __construct(QueueManager $queue) { /* ... */ }

Leaving facades off is worth trying for one service, because it forces constructor injection and the resulting classes are testable without a framework at all. Eloquent is a different calculation: the alternative is writing queries against the connection directly, which is fine for a service with six tables and tedious beyond that. The honest position is that switching both on turns Lumen into a slightly smaller Laravel, and at that point the question is whether the micro-framework is earning anything.