logo The World’s #1 Bootstrap 4 HTML, Angular 10, React, VueJS & Laravel
Admin Dashboard Theme

Requirements

Laravel has a set of requirements in order to ron smoothly in specific environment. Please see requirements section in Laravel documentation.

Metronic similarly uses additional plugins and frameworks, so ensure You have Composer and Node installed on Your machine.

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.

  1. Open in cmd or terminal app and navigate to this folder

  2. Run following commands

    composer install
    cp .env.example .env

    For Windows command line tool use copy command. For unix style - cp.

    php artisan key:generate
    npm install
    npm run dev
    php artisan serve
  3. 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 package.json file:

// Run all Mix tasks...
npm run dev

// Run all Mix tasks and minify output...
npm run production

The 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