https://laravel.com/docs/13.x For Larave Documentation
Before creating first Laravel application, make sure that local machine has PHP, Composer, and the Laravel installer installed. In addition, we should install either Node and NPM or Bun so that we can compile our application's frontend assets.
PHP
Download and Install PHP
To check version of PHP
For environmental , right click on my computer-->show more options-->properties-->Advanced System Settings-->Click on Environmental Variables-->Insert PHP in PATH.(PHP)
Looks like this .........added to the PATH
Install Composer
In PowerShell, as administrator
PS C:\windows\system32> notepad C:\Program Files\php\current\php.ini
( Note remove ; from below command)
extension=curl
extension=fileinfo
extension=gd
extension=intl
extension=mbstring
extension=mysqli
extension=openssl
extension=pdo_mysql
extension=zip
In Browser, gitlab.comà Choose any one repo , for example https://gitlab.com/poudelsantoshsharma/prac1
Clone with SSH...copy URL paste it at vscode
Then Clone the URL
$ composer create-project laravel/laravel app
$ cd app
In server, create database
[root@localhost ~]# dnf -y install mysql-server
[root@localhost ~]# systemctl start mysqld
[root@localhost ~]# systemctl status mysqld
[root@localhost ~]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 34
Server version: 8.0.45 Source distribution
Copyright (c) 2000, 2026, Oracle and/or its affiliates.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql>
mysql>create database laravel_app;
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| laravel_app |
| mysql |
| performance_schema |
| sys |
+--------------------+
5 rows in set (0.00 sec)
mysql> create user luser@'%' identified by 'P@ssw0rd';
Query OK, 0 rows affected (0.01 sec)
mysql> grant all privileges on laravel_app.* to luser@'%';
Query OK, 0 rows affected (0.01 sec)
mysql> flush privileges;
flush privileges;
mysql> exit
Bye
[root@localhost ~]# firewall-cmd --permanent --add-port=3306/tcp
[root@localhost ~]# firewall-cmd --reload
success
[root@localhost ~]# firewall-cmd --list-all
public (active)
target: default
icmp-block-inversion: no
interfaces: ens160
sources:
services: cockpit dhcpv6-client https ssh
ports: 80/tcp 443/tcp 3306/tcp
then in .env