Following are the instructions:
Run PHP
php artisan serve
Changes need to do after cloning:
- Setup
.env
file composer install
in the root foldercomposer update
in the root folderphp artisan key:generate
in the root folderphp artisan config:cache
to clear cache
Hosting to Share Hosting
./Public (Folder) To the website Path /public_html or root folder of the website
./* (Except Public) to different folder
then configure the path where the folder is kept in file of ./Pubic/index.php
in
require __DIR__.'/../vendor/autoload.php';
$app = require_once __DIR__.'/../bootstrap/app.php';
Configuring .env file
then configure the .env file database as for me like,
1
2
3
4
5
6
DB_CONNECTION=mysql
DB_HOST=mysql5019.site4now.net
DB_PORT=3306
DB_DATABASE=db_a53ca8_banquet
DB_USERNAME=a53ca8_banquet
DB_PASSWORD=Corei7pass
Change Email: in .env use following: example:
1
2
3
4
5
6
7
8
MAIL_DRIVER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=465
[email protected]
MAIL_PASSWORD=iamwfmygadyisuqm
[email protected]
MAIL_NAME=No-Reply
MAIL_ENCRYPTION=ssl
in mail.php