Laravel 4 Redirect::action() “Route not defined”
问题 I'm currently having troubles with Laravel 4. I would like to use slugs for forum categories and forum topics (slugs are unique). In order to determinate if the user is in a category or in a topic, I have this route: Route::get('forum/{slug}', function($slug) { $category = ForumCategory::where('slug', '=', $slug)->first(); if (!is_null($category)) return Redirect::action('ForumCategoryController@findBySlug', array('slug' => $slug)); else { $topic = ForumTopic::where('slug', '=', $slug)->first