After creating new project in laravel framework
To start the server
Copy the URL and past in web browser then this below image page will be open
Now close the terminal don’t worry it will run in background
We see how to change the web in laravel framework
Follow the bellow image instruction
Remove the code in web.php
Now refresh the page, the page shows 404 not found error
Enter the empty function
To check the code is run or not
Now the 404 error is gone so the page is run perfectly
Return the string in function to check string is viewed in the web page
Now refresh the page
The string is shown
Now we create new view file, in view file already welcome file in there so we delete that create a new one the file name is home.php
In home file enter sample html codes
Now home.php file is return in web.php
Refresh the web page
Do you think php file is only run not that now we create and run html file also
Now we create another route like below image
Now refresh the page and add a / file name also
Comments