CLOSE

Database management is a crucial aspect of web development, and Laravel, with its powerful ORM (Object-Relational Mapping) called Eloquent, simplifies the process of interacting with databases.

Create Sample Project

Installation Via Composer:

Make sure you have the XAMPP, PHP and Composer installed on your machine.

To create the project, run the create-project command as follows:

composer create-project laravel/laravel TheLary

It will create a laravel project with a folder name “TheLary”. use “cd” command to point to the project directory and then run the “serve” command to live the project on localhost.

cd TheLary
php artisan serve

By Laravel Installer:

Or, you may install the Laravel Installer as a global Composer dependency:

composer global require laravel/installer
laravel new TheLary
cd TheLary
php artisan serve
image-46.png