public function index(Blog $blog) { $this->data['records'] = $blog->getActiveRecords(); return view('blog.index', $this->data); }