Laravel Configuration

Estimated reading: 3 minutes 311 views

Quick Start

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

Requirement

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

  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.

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:6

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

File Structure

Here is the general file structure.

ricetta

  • 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 ricetta
  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

  1. Open and edit the /.env file and provide following details
    • APP_ENV=production
    • 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:
  3. After that run command, php artisan migrate –seed Or php artisan migrate:fresh –seed
  4. If you are facing problem to migrate database using command then,
    import the ricetta.sql file in your database
    You will find the sql file in ricetta/ricetta.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
    • MAIL_FROM_ADDRESS=your email address
  2. Enter mail host name, mail port, mail username( Mail ID ), mail password and mail encryption type.

Source & Credits

All images and videos are for preview purposes only and are not included in the download files. Images are of copyrights under Creative Commons CC0.

Leave a Comment

Share this Doc

Laravel Configuration

Or copy link

CONTENTS