Exemple #1
0
 public function onStart()
 {
     $feature = $this['feature'] = Rainlab\Blog\Models\Post::orderBy('id', 'desc')->first();
     $this['blogPosts'] = Rainlab\Blog\Models\Post::where('id', '<>', $feature->id)->orderBy('id', 'desc')->paginate(4);
 }