2017-10-07から1日間の記事一覧
EPISODE 31 Sorting Posts By Tags $route->add('/posts/tags/{tag}', 'TagsController@index') TagsController function index(\App\Tag $tag) { $posts = $tag->posts; return view('posts.index', compact('posts')); } class Tag extends model { public…