Laravel environment: Revision history

From AWVVO
Jump to navigationJump to search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

18 January 2025

  • curprev 17:2717:27, 18 January 2025 Admin talk contribs 321 bytes +321 Created page with "== Get environment == <syntaxhighlight lang="php" copy> App::environment(); </syntaxhighlight> == enable routes in development mode only == <syntaxhighlight lang="php" copy> // Conditional /test Route if (! App::environment('production')) { Route::get('/test', [TestController::class, 'index']); } </syntaxhighlight>"