I'm running my first laravel app for the first after hours struggling with dependencies installation errors.
Sorry it might be tiny mistake but seems I couldn't find out.
Picture are darker, computer is being broken.
app/Http/routes.php
<?php
// view('helloworld') ==> helloworld.blade.php
Route::get('/', function () {
return view('helloworld');
});
resources/view/helloworld.blade.php
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<div class = "container">
<div class = "content">
</div>
<p> Yo test....test..</p>
</div>
</body>
</html>
when I hit http://localhost:8000/
, it gaves me (even after refreshing) :
Why doesn't '/'
get routed ? It's laravel 5, the latest one.
In Laravel 5.3, the Http routes file was switched to the routes/ directory.
https://laravel.com/docs/5.3/routing#basic-routing
All Laravel routes are defined in your route files, which are located in the routes directory. These files are automatically loaded by the framework. The routes/web.php file defines routes that are for your web interface. These routes are assigned the web middleware group, which provides features like session state and CSRF protection. The routes in routes/api.php are stateless and are assigned the api middleware group.
can you check in incognito or maybe you should remove the welcome.blade.php file
you should have your web page routes in routes/web.php
in laravel 5.3 !