Support the ongoing development of Laravel.io →
posted 10 years ago
Blade
Last updated 2 years ago.
0

you don't access view file directly.

you should access it via route.

//in app/routes.php
Route::get('users/test', function()
{
	return View::make('users.test');
});

//then visit
http://localhost/laravel/public/users/test
Last updated 2 years ago.
0

Thanks alainbelez. I accessed directly: http://localhost/laravel/app/views/users/test.blade.php You meant I should access via routes?

Last updated 2 years ago.
0

that would be the result if you run the blade file directly, if you want a static page. create a new route for it.

blade should never be accessed directly.

Last updated 2 years ago.
0

Thanks alainbelez. It works.

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

ttttieu ttttieu Joined 4 Jun 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.