Components\ContactManager\Controllers\PublicController::showCategory PHP Метод

showCategory() публичный Метод

Show all contacts in the specified contact category
public showCategory ( $alias )
$alias
    public function showCategory($alias)
    {
        $category = ContactCategory::with('contacts')->whereAlias($alias)->first();
        if (!$category) {
            App::abort(404);
        }
        $this->layout->title = "Contact in {$category->name}";
        $this->layout->content = View::make("public.{$this->current_theme}.contact-categories")->with('title', "Contact in {$category->name}")->with('category', $category);
    }