Super Sale Limited Time 50% OFF for All-Access Plans
Save 50% Now

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
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (2)


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



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!


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(