Overview
This is the conclusion and the latest updates of vibe coding technologies — Laravel/PHP edition. Enjoy! The website pages that you have seen actually have 3 different aspects:- Skeleton (HTML): Imagine blocks when you are writing on Notion
- Skin (CSS): Styling
- Brain (PHP/JavaScript): Logics
HTML
Hyper Text Markup Language (HTML) is a file to define your website blocks and metadata. This is a required and main file that has to exist in order to create a website.How to Start
In Laravel, HTML is written inside Blade template files with the.blade.php extension, located in:
- Visual Studio Code
- Cursor
- PhpStorm
Tags
Notice the pattern:Head vs Body
Head Tag
Inside<head> you usually place metadata such as:
- Title
- Description
- OpenGraph tags
- SEO information
Body Tag
Inside<body> is where the content of your website goes.
Examples:
Attributes
Tags can contain attributes. Example:srchrefalt
CSS
Cascading Style Sheets (CSS) is used to style your HTML elements. CSS cannot run alone. It must be connected to an HTML file.Linking CSS
In Laravel, assets are managed via Vite. Add this inside your<head> using the @vite directive:
resources/css/app.css
Custom Fonts
You can get fonts from: https://fonts.google.com. Search a font and copy the link tag into your Blade layout’s<head>.
Base Styling Template
Common CSS reset atresources/css/app.css:
- Reset browser default spacing
- Prevent elements exceeding dimensions
CSS Selectors
Selectors target HTML elements. Types:- Tag selector
- Class selector
- ID selector
.→ class selector#→ id selector
Magic Element: Div
div is a container element used to group elements.
Example:
- wrapper
- container
- layout block
Layout Styling Template
Flexbox
Used for horizontal or vertical layouts- row
- column
Grid
Used for card-based layouts. Example:- Google Classroom style cards
PHP
PHP is the primary programming language of Laravel. PHP adds logic and interactivity on the server side.PHP in Blade
In Laravel, PHP is written using Blade directives — a cleaner syntax compared to raw PHP.Blade Templating
Blade is Laravel’s built-in template engine.Layout & Components
Create the main layout atresources/views/layouts/app.blade.php:
Blade Components
Components make your UI reusable. Create a component:resources/views/components/button.blade.php
Laravel
Laravel is the most popular fullstack PHP framework today. Docs: https://laravel.com/docs Laravel includes:- Backend (PHP)
- Frontend (Blade/Vite)
- Routing
- API
- Built-in Authentication
- ORM (Eloquent)
Getting Started
Install Laravel via Composer:TailwindCSS
TailwindCSS allows styling without writing CSS files. Docs: https://tailwindcss.com Install in Laravel:Basic Syntax
Colors
Size
Spacing
Layout
Routing
Routing in Laravel is defined inroutes/web.php (for pages) and routes/api.php (for API).
Dynamic Routes
Route Groups & Middleware
Controllers
Controllers handle the application’s business logic. Create a Controller:Rendering Methods
Server Side Rendering (SSR)
In Laravel, all rendering is done on the server side by default using Blade. Benefits:- SEO-friendly
- More secure for sensitive data
- Ideal for pages that require authentication
Client Side Rendering (CSR)
For browser-side interactivity, use Alpine.js (lightweight) or Livewire (reactive without writing JavaScript). Alpine.js:Middleware
Middleware is used to protect routes. Create a Middleware:API Routes
Create API endpoints inroutes/api.php:
Infrastructure
Laravel Forge / Ploi
https://forge.laravel.com A deployment platform built specifically for Laravel. Features:- Server provisioning
- GitHub integration
- Automatic deployments
- Automatic SSL
Railway / Render
Cloud platforms that support PHP/Laravel. Great for:- Small to medium projects
- Fast deployment from GitHub
Supabase / PlanetScale
Cloud databases that can be integrated with Laravel. https://supabase.com Supports:- PostgreSQL (Supabase)
- MySQL (PlanetScale)
- File storage
OpenRouter
AI API platform with free credits. https://openrouter.ai Can be integrated with Laravel via its built-in HTTP client:Libraries & Packages
Eloquent ORM
Laravel’s built-in ORM for communicating with the database. https://laravel.com/docs/eloquent Benefits:- Safer queries
- Prevent SQL injection
- Easy data manipulation
Laravel Breeze / Jetstream
Laravel’s official authentication starter packages. https://laravel.com/docs/starter-kits Supports:- Email/password
- Google login (via Socialite)
- OAuth
Laravel Sanctum / Passport
For API authentication. https://laravel.com/docs/sanctum Sanctum (simple):Livewire
A framework for building reactive UIs without writing a lot of JavaScript. https://livewire.laravel.com Install:Bonus
Complete Laravel starter kit with:- Breeze (Auth)
- Livewire
- TailwindCSS
- Eloquent ORM