1.1. Project Iniatial Setup
This is the guide for admin to setup project and run.
Basic Requirement for Application Run: Hosted server must be PHP 7.*
Follow these steps:
Local Host Environment Setup
-
Unzip EduFirm on you hosted location.
-
Setup Environment with .env
.env
|
|
APP_NAME=EduFirm
APP_ENV=local
APP_DEBUG=false
APP_LOG_LEVEL=debug
APP_URL=http://localhost
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=
DB_USERNAME=
DB_PASSWORD=
BROADCAST_DRIVER=log
CACHE_DRIVER=array
SESSION_DRIVER=file
QUEUE_DRIVER=sync
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379
MAIL_DRIVER=smtp
MAIL_HOST=
MAIL_PORT=
MAIL_USERNAME=
MAIL_PASSWORD=
MAIL_ENCRYPTION=TLS
PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
|
-
For setup application security key run following command.
php artisan key:generate
-
Method
|
|
DB::table('users')->insert([
'name' => '**Name Here**',
'email' => '**Email Here**',
'password' => bcrypt('**Password**'),
'status' => 1
]);
3. Save this Code. if you not change UsersTableSeeder
Default Login Detail:
Email- superadmin@edufirm.com
Password - admin
4. Create database on your phpmyadmin.
5. Set database detail on .env file with following detail
DB_DATABASE=
DB_USERNAME=
DB_PASSWORD=
6. Save .env file
7. For any changes on config use following command to save
php artisan config:cache
7. Migrate database using following command:
php artisan migrate --seed
8. Database is done
|
-
Please delete if you found any previous cache on bootstrap/cache/config.php . delete config.php from here.
-
Now you can serve project with this command
php artisan serve
-
now you can see like this messange on command line
Laravel development server started: <http://127.0.0.1:8000>
6. Hit laravel server started URL on your browser and access
Note: Also you can access project your short url. If you create virtual host with your project/public folder location.
Live /Cpanel Host Environment Setup
Inocrypt Infosoft EduFirm