Jump to content
Sign in to follow this  
sadith

How to migrate Laravel Project to Localhost

Recommended Posts

Hello..

I need to host a Laravel website to localhost in PC, I have installed Xampp server. I created new database and imported the database file (MySQL) from server. and configured the .env file.

My question is, only the statics pages (Like, contact us, about us) is working, not the pages which are connected to the DB. 

Can I know how to migrate properly from server backup files to localhost. this is our website. https://www.albacars.ae/ for your reference. 

Thank you!

 

 

Share this post


Link to post
Share on other sites

Are there any errors in your logs that are telling you what's wrong?

Is your MySQL module on?

Have you set up the new config/connection info for localhost? ("localhost", "root", "", "db_name") by default

 

Share this post


Link to post
Share on other sites

First of all you have create migration file with this command :

php artisan make: migration table_name

this command is execute and  create table with timestamp of above:

after this command is direct whenever you create database of below this command:

php artisan migrate

If you have specific table migrate this command is execute:

php artisan migrate  --path=/database/migrations/filename.php

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...