Laravel Vue Login

I have installed the Vue / Laravel version on my PC and i cannot login. how do i disable the login or setup DB for login against the DB.

Thank you

Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (2)

If you're using windows I'd recommend using MYSQL for your database you can reference documentation online to understand how to get this setup.

Once you've setup your MYSQL database you will need to run
copy .env.example .env in the terminal to create a .env file for your environment.

Inside of that .env file is where you will configure the connection to your database for your application.

Use the following to connect with your own credentials.

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=YOUR_DATABASE_NAME
DB_USERNAME=ACCOUNT_NAME
DB_PASSWORD=ACCOUNT_PASSWORD

Once you've configured your database run

php artisan migrate
in the terminal to migrate to your database.

Once you've done this you can also seed to your database or register an account.

Hope this helps!

Hi,

If you want to disable authentication in the latest Metronic version, please follow steps below:
1) Remove sign-in page redirect from file /src/layout/Layout.vue.

if (!store.getters.isUserAuthenticated) {
router.push({ name: "sign-in" });
}

2) Remove verify action trigger from /src/router/index.ts.

store.dispatch(Actions.VERIFY_AUTH, { api_token: JwtService.getToken() });

To connect your Laravel API you can follow instructions in our API setup doc:
https://preview.keenthemes.com/metronic8/vue/docs/#/api-setup

Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(