Skip to content
Web Applications in PHP
Search
K
Main Navigation
Home
PHP 8
Introduction
Example project
Basic syntax
Operators
Control structures
Arrays and objects
Functions
Forms
Classes
Laravel 10
Introduction
The Vinyl Shop project
Basic routing & views
Layout component: part 1
Automation
Reusable components
Layout component: part 2
Record covers
Database migrations
Eloquent models: part 1
Eloquent models: part 2
Shop: master section
Shop: detail section
Shop: filter section
Authentication
Custom error pages
User: profile
Admin: genres
Admin: records
Admin: users (basic, advanced and expert)
Admin: covers: part 1
Admin: covers: part 2
Contact
Class: Cart
Basket
User: order history
Admin: order history
Advanced use of linked tables
Laravel Exercise
Introduction
Part 1
Part 2
Part 3
Part 4
Part 5
Part 6
Part 7
Part 8
Part 9
Part 10
Part 11
Part 12
Config
Work environment
Laravel 10 project
Laravel Vite
.env file
Debug Livewire
Tippy.js
SweetAlert2
Localization
Customize registration
Combell webhosting
Laravel 10 cheat sheet / Summary
Livewire 3 cheat sheet / Summary
Tailwind cheat sheet
Alpine JS docs
Alpine Toolbox
Laravel artisan cheat sheet
Appearance
Return to top
On this page
Table of Contents for current page
Part 2 - Creating a route and view
PREREQUISITES
Finished
Laravel exercise -> Part 1 - Creating the project
Finished
Laravel -> Basic routing & views
Create a route and view for the home page (= page shown at root URL)
For now the homepage only shows a
h1
title: