Laravel has a set of requirements in order to ron smoothly in specific environment. Please see requirements section in Laravel documentation.
Assuming your machine meets all requirements - let's process to installation of Metronic Laravel integration (skeleton).
The root directory of your application will contain a
.env.example file. You should copy the file manually and rename it to
.env or run command
cp .env.example .env.
Open in cmd or terminal app and navigate to this folder
Run following commands
cp .env.example .env
For Windows command line tool use copy command. For unix style - cp.
php artisan key:generate
npm run dev
php artisan serve
And navigate to generated server url http://127.0.0.1:8000
For more information about the Laravel installation, check out on this link https://laravel.com/docs/7.x/installation
Mix is a configuration layer on top of Webpack, so to run your Mix tasks you only need to execute one of the NPM scripts that is included with the default Laravel
// Run all Mix tasks... npm run dev // Run all Mix tasks and minify output... npm run production
npm run watch command will continue running in your terminal and watch all relevant files for changes. Webpack will then automatically recompile your assets when it detects a change:
npm run watch
For more information about the Laravel compiling assets, check out on this link https://laravel.com/docs/7.x/mix