arrow_back
Back

Laravel development workflow: Sail, debugging, and deployment

Andrew Dorokhov Andrew Dorokhov schedule 1 min read
menu_book Table of Contents

Debug mode

In the .env file we can turn on the debug mode:

APP_DEBUG=true

Another option is config/app.php:

    /*
    |--------------------------------------------------------------------------
    | Application Debug Mode
    |--------------------------------------------------------------------------
    |
    | When your application is in debug mode, detailed error messages with
    | stack traces will be shown on every error that occurs within your
    | application. If disabled, a simple generic error page is shown.
    |
    */

    'debug' => (bool) env('APP_DEBUG', false),

Variables

Dump variables:

dump();
# dump() and die():
dd();

Working with Sail

Install Composer packages:

sail composer require laravel/sanctum
code

Need Help with Development?

Happy to help — reach out via the contacts or go straight to my Upwork profile.

work View Upwork Profile arrow_forward
Next Article

Laravel configuration: .env, config files, and services

arrow_forward