I need to show two categories in a view
. I tried the following, but without success:
public function index()
{
return View::make('Titles.IndexFutebol')->withType('time1')->withType('time2');
}
only shows type time2
.
I need to show two categories in a view
. I tried the following, but without success:
public function index()
{
return View::make('Titles.IndexFutebol')->withType('time1')->withType('time2');
}
only shows type time2
.
By what I read in the comments you are using version 4.2 of laravel (do not consider upgrades?).
Try this:
public function index()
{
return View::make('Titles.IndexFutebol')->with('type', $time1, $time2);
}