Help with view laravel

1

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 .

    
asked by anonymous 23.03.2018 / 13:58

1 answer

0

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);

}
    
23.03.2018 / 18:48