Created
March 26, 2014 16:44
-
-
Save zofe/9787701 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class HomeController extends BaseController | |
{ | |
public function showWelcome() | |
{ | |
$articoli = Articolo::Articoli()->Pubblici()->take(4)->remember(10)->get(); | |
$primopiano = $articoli->shift(); | |
$voci = Voce::ultime()->take(3)->remember(10)->get(); | |
$news = News::ultime()->take(6)->get(); | |
$collaboratori = Collaboratore::homepage(20)->get(); | |
return View::make('home', compact('primopiano','articoli','voci' ,'news', 'collaboratori')); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment