Here's an example of how to install and set up a Laravel project:
Install Composer: Before installing Laravel, you need to have Composer installed on your system. You can download Composer from https://getcomposer.org/.
Create a new Laravel project: To create a new Laravel project, open a terminal and run the following command:
**.env**
file. You can copy the **.env.example**
file to **.env**
and set your database credentials. For example:**http://localhost:8000**
. You should see the default Laravel welcome page.By following these steps, you should have a basic Laravel project installed and set up. You can start building your application by adding routes, controllers, models, and views to the project.
NOTE: Those who are using php version greater 8.0 then you need to do two more steps:
a) Open App.js ( the file you want to make call from ).
b) Import axios file you made in step 2.
So, the above function will make a get request and log the response in console.