Thursday, August 3, 2017

[Laravel][Resolved] It is unsafe to run Dusk in production.

Step 1)

Add these few line to your composer.json file :
    "extra": {
      "laravel": {
        "dont-discover": [
          "laravel/dusk"
        ]
      }
    }
 Example:

Step 2)

And then run this command :
composer dump-autoload

Reference

https://github.com/laravel/dusk/issues/289
https://github.com/acacha/adminlte-laravel/issues/337
https://laracasts.com/discuss/channels/forge/it-is-unsafe-to-run-dusk-in-production-error-when-trying-to-deploy
https://medium.com/@taylorotwell/package-auto-discovery-in-laravel-5-5-ea9e3ab20518

1 comment :

  1. Get custom Laravel development services from a leading Laravel Development Company based in India & USA to build modern and robust solutions. Contact us for Information for Pricing: +91-9806724185 or Contact@expresstechsoftwares.com

    ReplyDelete