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

Embedding Tetrons Editor

1Step 1

Create a file: resources/views/blank.blade.php or add where you require the editor.

2Step 2

Add the provided iframe code to embed Tetrons editor in your code.

1<body>
2  <iframe
3    id="tetrons-iframe"
4    src="https://product.tetrons.com/embed"
5    style="width:100%; height:100vh; border:none;"
6    allow="clipboard-read; clipboard-write; microphone; camera"
7  ></iframe>
8</body>
8

Final Step

1Step 1

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

Output Preview

Output Preview
Chatbot