Laravel Configuration

Estimated reading: 3 minutes 172 views

Quick Start

Get details about Requirements, Basic Installation, Structure, Logo, favicon, and loader set up your project with easy steps.

Requirement

  1. PHP 7.3 or greater
  2. OpenSSL PHP Extension
  3. PDO PHP Extension
  4. Mbstring PHP Extension
  5. Tokenizer PHP Extension
  6. XML PHP Extension
  7. Ctype PHP Extension
  8. JSON PHP Extension
  9. GD PHP Extension (or Imagick PHP Extension)
  10. PHP Fileinfo extension
  11. PHP Zip Archive
  12. Rewrite Module (Apache or Nginx)
php.ini Requirements
  1. open_basedir must be disabled
File and folder permissions
  1. /bootstrap 775
  2. /bootstrap 775

Basic Server Setup

Follow below steps for setup the project  on server.

Step:1

Get the project zip from the CodeCanyon. Extract that zip, Go to the below path: MainFile_SourceCode/Admin Panel/granth.zip and upload that zip and extract in your Cpanel.

Step:2

Upload that project zip to your server public_html directory.

Step:3

Extract the zip file to that directory.

Step:4

Then Create a new database from your server MySQL database.

Step:5

Create a DB user to the database.

Step:5

After all this, you have to just hit your URL in the browser and go on.

File Structure

granth

  • app
    • Console
    • Exceptions
    • Helpers
    • Http
      • Controllers
        • Auth
          • Controller.php
          • HomeController.php
      • Middleware
      • Requests
    • Model
    • Provider
    • View
  • bootstrap
  • config
  • database
  • node_modelus
  • public
    • css
    • js
    • images
    • vendor
  • resources
    • css
    • js
    • lang
    • sass
    • views
      • auth
      • booking
      • category
      • components
      • layouts
      • partial
      • dashboards
      • home.blade.php
      • welcome.blade.php
  • route
  • tests
  • .editorconfig
  • .env.example
  • .styleci.yml
  • artisan
  • composer.json
  • package.json
  • phpunit.xml
  • README.md
  • server.php
  • webpack.mix.js

Installation

  1. Create Database
  2. Upload the Codes in below directory based on your server In Linux
    Path: var/www/html/
    In cPanel:
    Inside File manager -> Path: public_html/
  3. For database settings, open the .env file with a text editor and set your database settings.
    Note: .env is a hidden file, you can see it by opening directory to a text editor.
  4. Link your storage folder to public Run in terminal or CMD: php artisan storage:link. After this if you are facing a problem storage link using command please follow the below steps :  ln -s /home/your_application/storage/app/public /home/your_application/public/storage

Basic Steps

  1. Start command prompt window or terminal and change directory laravel:
    • cd granth
  2. Copy .env.example to .env file:
    • cp .env.example .env
  3. Generate Key for project in terminal or CMD:
    • php artisan key:generate

App Configurations

Open and edit the /.env file and provide the following details

    • APP_NAME=”Your app name”
    • APP_ENV=production
    • APP_KEY=your key
    • APP_DEBUG=false
    • APP_URL=”Your app URL”

Database Configurations

  1. Create the database on your server
  2. Open and edit the /.env file and provide your server details:
    DB_CONNECTION=mysql
    DB_HOST=127.0.0.1
    DB_PORT=3306
    DB_DATABASE=laravel
    DB_USERNAME=root
    DB_PASSWORD=
    
  1. After that run command,
    php artisan migrate --seed Or php artisan migrate:fresh --seed
  2. If you are facing a problem migrating database using command then,
    import the granth.sql file in your database
    You will find the SQL file in granth.sql.

Mail Configurations

  1. Open and edit the /.env file and provide following details:
    • MAIL_MAILER=your mail driver
    • MAIL_HOST=your mail host
    • MAIL_PORT=your mail port
    • MAIL_USERNAME=your mail id
    • MAIL_PASSWORD=your mail password
    • MAIL_ENCRYPTION=your mail encryption
  2. Enter mail host name, mail port, mail username( Mail ID ), mail password and mail encryption type.
 

Leave a Comment

Share this Doc

Laravel Configuration

Or copy link

CONTENTS