Laravel Installation Guide

1

Install PHP

1Step 1

Check if PHP is already installed by running: php -v in CMD or PowerShell.

2Step 2

If not installed, go to https://windows.php.net/download/ and download PHP.

3Step 3

Extract it to C:\php and add C:\php to your system path.

4Step 4

Verify installation by running: php -v.

2

Install Composer

1Step 1

Download and install Composer from https://getcomposer.org/download/.

2Step 2

After installation, check with: composer -V.

3

Install Laravel Globally

1Step 1

Run: composer global require laravel/installer.

2Step 2

Ensure Composer’s global vendor/bin folder is in your system path.

3Step 3

Verify with: laravel --version.

4

Create a New Laravel Project

1Step 1

Run: composer create-project laravel/laravel laravelPage.

2Step 2

Navigate into project folder: cd laravelPage.

5

Start Laravel Server

1Step 1

Run: php artisan serve.

2Step 2

Open browser and visit: http://127.0.0.1:8000.

6

Create PHP Route

1Step 1

Open: routes/web.php.

2Step 2

Replace the default route with the blank page route provided.

1<?php
2use Illuminate\Support\Facades\Route;
3
4Route::get('/', function () {
5    return view('blank');
6});
7

Create Blade View

1Step 1

Create a file: resources/views/blank.blade.php.

2Step 2

Add the provided HTML structure for the Tetrons Editor.

1<!DOCTYPE html>
2<html lang="en">
3<head>
4    <meta charset="UTF-8">
5    <meta name="viewport" content="width=device-width, initial-scale=1.0">
6    <title>Laravel Blank Page</title>
7    <style>
8        html, body {
9            margin: 0;
10            padding: 0;
11            height: 100vh;
12            width: 100vw;
13            overflow: hidden;
14            font-family: 'Inter', sans-serif;
15            display: flex;
16        }
17        .container {
18            flex: 1;
19            flex-direction: column;
20            display: flex;
21            height: 100%;
22            width: 100%;
23        }
24        .iframe {
25            width: 100%;
26            height: 100%;
27            border: none;
28            border-radius: 0.3rem;
29            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
30        }
31        h2 {
32            color: #343a40;
33            margin-bottom: 1rem;
34            text-align: center;
35        }
36    </style>
37</head>
38<body>
39    <div class="container">
40        <h2>Tetrons Editor</h2>
41        <iframe src="http://staging.tetrons.com/editor/dist/editor-host.html"
42            width="100%" height="600"
43            style="border: none;"
44            allowfullscreen>
45        </iframe>
46    </div>
47</body>
48</html>
8

Final Step

1Step 1

Refresh http://127.0.0.1:8000 to see the Tetrons Editor working.

Output Preview

Output Preview
Chatbot