- Forums
- laravel
- Laravel Jetstream Blade Add A New Component To Laravel Jetstream Page /a Page
This is how you can add a component in jetstream blade component [5297], Last Updated: Mon Jun 24, 2024
edw
Sun Mar 03, 2024
0 Comments
262 Visits
1. download the zip file which has a /a folder: https://www.webune.com/forums/laravel-blade-template-starter-layout-and-route-example.html
2. Place the a/ folder in views - Should look like views/a
3. Open web.php and add the following route:
use Illuminate\Support\Facades\View;
Route::get('/a', function()
{
return View::make('a.pages.index');
});
Open in browser: http://127.0.0.1:8000/a
You will see the following:
>>>>>>>>header.blade.php<<<<<<<<<<<<<<<<<
This is index