public function index() { $title = "List " . $this->post_type . 's'; $posts = $this->post->all_post($this->post_type); return view('Posts::' . $this->link_type . '.' . $this->current_theme . '.posts.index', compact('title', 'posts')); }