Laravel 4: tooltip path undefined

I am trying to make a packet route, and this is my working example:

Route::get('pack', function()
{
    return View::make('MyPackage::test');
});

When I run a website, I got this error: No hint path defined for [MyPackage]. How can i solve this? How to determine the path?

Thank.

+3
source share
1 answer

This is the syntax for displaying a view that is not in the main views folder.

Try adding a hint. See http://laravel.com/docs/packages#package-configuration in the "Registering a resource namespace manually" section and add a "MyPackage" hint, followed by the path to your views folder.

+1
source

All Articles