Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel how to check app env

// view
@if (app()->environment() === 'production')
    Production text
@endif

// Or you can do this
@if (app()->environment('production'))
    Production text
@endif
Source by laracasts.com #
 
PREVIOUS NEXT
Tagged: #laravel #check #app #env
ADD COMMENT
Topic
Name
3+3 =