Reputation: 19453
I am trying to put routes into a package and I am able to run the route in the package after reading this: http://laravel.com/docs/packages#package-routing
Example working route in package:
Route::get('pack', function()
{
return 'It works!!!';
});
Now I am able to get the return from route properly and display 'It works!!!!' on the webpage. However, how can I set the route to display a file from the package? I was trying with return View::make('test');
but it didn't works.
Thank you.
Upvotes: 0
Views: 151
Reputation: 26992
Put the file in the src/views
folder and load it like this:
\View::make('packageName::test');
Upvotes: 2