- Forums
- laravel
- What You Need For A Laravel Blade Page: Route, Contrller And Blade File
These are the three requirements you need to create a simple blade page in laravel. [5263], Last Updated: Mon Jun 24, 2024
edw
Wed Dec 20, 2023
0 Comments
170 Visits
To create a Laravel Blade Page, all you need is these three items:
Route:
get('/posts')
/routes/web.php or
/routes/api.php
Controller
view('posts/index');
/app/Http/Controllers
blade
<html></html>
/resources/views/posts/index.blade.php
g-63ClKANsM