Comments

dhtml

Wed 19 Dec, 2018 07:18 pm

This depends on the shared server we are talking about. Laravel can be installed on a shared server, but vue will depend on the type of vue you are using.
@limistah should be able to help you here, he is the certified vue/react expert here.

Rayyspark

Thu 20 Dec, 2018 03:14 am

Thanks @dhtml for responding...I don't have issues deploying laravel web app...what I have worked on is a web app that contains both Laravel and VueJs (Laravel Mix) not just vues.js library

limistah

Thu 20 Dec, 2018 11:27 am

This is not an issue with Vue it is an issue with deploying Laravel to a shared server. As ling as your assets are bundled and referenced properly, you have no issue serving them other than making the Laravel setup work for you.

You can try this out: Setup Laravel on a shared hosting by Dev.to (written by a Nigerian, Abednego Edet)

Rayyspark

Fri 21 Dec, 2018 01:25 am
I have been able to deploy the web app successfully...Thanks @dhtml and @limistah.Your contributions went a long way towards making it possible for me...I am presently facing an issue of fetching data from the database using Axios... It works perfectly offline...I have configured it with the online database details but still not loading the records. MySQL PDO driver has not been installed on the server

dhtml

Fri 21 Dec, 2018 08:22 am

You are welcome, PDO is standard stuff for php these days, especially as more recent versions have phased out mysql plugin.
I believe you should be able to request for your host to provide this ASAP.

limistah

Fri 21 Dec, 2018 05:29 pm
If your Laravel is connecting to the database check the URL you're sending your requests to from the network tab when axios makes a request. You can setup a dummy route that fetches records from the db on page loads if it works then your axios is not sending request to the right URL.

olidev

Mon 04 Feb, 2019 03:53 pm

If you don't know how to manually setup Laravel on a server, then I would recommend you to use Cloudways platform. Using this platform, you can deploy Laravel to server in just few minutes. There is no need to perform any manual work.