I do this by define two route
But when i run php artisan serve on the teeminal
Just one page apear
This is my code inside the route directory:
// routes/web.php
<?php Route::get('/', function () { return view('welcome'); });
// Here is your custom route
Route::get('/hello-world', function () { return view('helloworld'); });
That should work
Depending on the number of pages made, there is a short syntax for routing pages in laravel (don side is that it doesn't take arguments like the long syntax), you will have to make the route for all of them: Route::get('<url>', <filename>); <url> means the link name you want to query
Обсуждают сегодня