use env in laravel

    0

    1

    jvitlaravel
    JVIT PHP

    snippets helper for env

    Shortcut: lav.env

    // get environment
    $environment = app()->environment();
    
    // The environment is local
    if ($app->environment('local')) {
    }
    // The environment is either local OR staging...
    if ($app->environment('local', 'staging')) {
    }
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Explore
    • Cookbooks
    • Playground
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.