Search
 
SCRIPT & CODE EXAMPLE
 

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
Comment

laravel how to check app env

// view
@if (config('app.env') === 'production')
    Production text
@endif
Comment

PREVIOUS NEXT
Code Example
Php :: php echo example 
Php :: php ternary string 
Php :: pass the product name to form field cf7 woocommerce 
Php :: php print fetch 
Php :: laravel display category post by slug 
Php :: php get time past midnight 
Php :: cors header ‘access-control-allow-origin’ missing IN PARTICULAR CAKEPHP API 
Php :: $wpdb foreach 
Php :: Fetch pivot data laravel 
Php :: laravel make api resource 
Php :: delete laravel error log 
Php :: return response at failedValidation() in request laravel 
Php :: Passing values to blade using redirect() and back() functions 
Php :: php find in array 
Php :: laravel automatically encrypt model atribute 
Php :: php two array difference merge recursive 
Php :: send data with window.location.href 
Php :: prevent xss attack in laravel 
Php :: Merge Two Collection 
Php :: php throw fatal error 
Php :: php superglobal - $globals 
Php :: php variables examples 
Php :: yii2 oauth2 
Php :: single row data from table in laravel 
Php :: laravel blade for if 
Php :: packagist carbon 
Php :: filter value in array php return single value 
Php :: php ?? vs ?: 
Php :: how to create object in php 
Php :: a non well formed numeric value encountered laravel 
ADD CONTENT
Topic
Content
Source link
Name
4+1 =