Hotel System Management
Hello all,
This tutorial will give you an example of how to clone Laravel project from Gitlab. let’s discuss steps to clone Laravel project from Github. I explained simply about the clone Laravel project from Github. This article goes in detail on the clone Laravel project from Github on the server.
In this tutorial, I will show you step by step how to clone Laravel projects from Github, GitLab, or bitbucket and set up an ubuntu server from scratch. you can easily clone Laravel 6, Laravel 7, Laravel 8, Laravel 9 and Laravel 10 projects from this post.
So, let's follow the below step-by-step and get done with the clone Laravel app.
Git Clone my Project
1.Run `git clone 'link projer github'
2.Run composer update
3.Run cp .env.example .env or copy .env.example .env
4.Run php artisan key:generate
5.Run php artisan migrate
6.Run php artisan serve
7.Go to link localhost:8000
Step 1: Git Clone Laravel 10
First, clone a new Laravel app just by running the below command in your terminal.
https://gitlab.com/SoengSouy/hotel_system_laravel_10.git
Step 2: Composer Update
Type the command in your terminal.
composer update
composer update
Step 3: Update Your Database Credentials
After that update your database credentials in your .env file which is located in your project root.
1. connection databases
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=your_db
DB_USERNAME=root
DB_PASSWORD=#your database password
2. for send mail when fogot password
MAIL_DRIVER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
MAIL_USERNAME=your email
MAIL_PASSWORD='your password email'
MAIL_ENCRYPTION=tls
MAIL_DRIVER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
MAIL_USERNAME=your email
MAIL_PASSWORD='your password email'
MAIL_ENCRYPTION=tls
Step 4: Make Migration
After adding the migration file now run the migrate command.
php artisan migrate
Step 5:Run
After adding the run file now run the migrate command.
php artisan serve
Tags:
Laravel