laravel

Laravel can't run web server after installing example app


I have installed Laravel example app on Windows 10 and guide says that i should run composer run dev. But there is no script dev in composer.json. How to run dev server Laravel? Here is scripts section of composer.json of example app.

    "scripts": {
        "post-autoload-dump": [
            "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
            "@php artisan package:discover --ansi"
        ],
        "post-update-cmd": [
            "@php artisan vendor:publish --tag=laravel-assets --ansi --force"
        ],
        "post-root-package-install": [
            "@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
        ],
        "post-create-project-cmd": [
            "@php artisan key:generate --ansi"
        ]
    }

i tried to google but no results.


Solution

  • maybe you're referring to front-end/javascript npm run dev?, there is no composer command composer run dev only NPM have that at package.json.