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.
将文件放在src/views
文件夹中并加载它:
\View::make('packageName::test');
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.