Hello World
1.x
1.x
  • Hello Electrik
    • Hello Electrik
  • Getting Started
    • Introduction
    • How Does Electrik Works?
    • Installation
    • Directory Structure
  • Digging Deeper
    • Architecture
    • Electrik CLI
Powered by GitBook
On this page

Was this helpful?

  1. Getting Started

Installation

PreviousHow Does Electrik Works?NextDirectory Structure

Last updated 2 years ago

Was this helpful?

Electrik is meant to be installed on a fresh Laravel project. Installing it on an existing project will lead to unwanted results.

Installing Electrik is super easy.

To install Electrik run the below commands in your terminal

Create a new Laravel project
composer create-project laravel/laravel electrik-project --prefer-dist
cd to new project
cd electrik-project
Require Electrik
composer require electrik/electrik
Install Electrik
php artisan electrik:install
Start local server
php artisan serve

That's all! Electrik is now installed on your system. Goto to see the magic

After installation, you should update your .env file to update the new config values that Electrik installs.

https://localhost:8000