Свойство | Type | Description | |
---|---|---|---|
$category | CategoryRepository object. | ||
$post | PostRepository object. | ||
$tag | TagRepository object. |
Méthode | Description | |
---|---|---|
__construct ( |
ArchiveController constructor. | |
groupByCategory ( ) : Illuminate\Contracts\View\Factory | Illuminate\View\View | Get all categories used to group posts. | |
groupByDate ( ) : Illuminate\Contracts\View\Factory | Illuminate\View\View | Get all posts grouped by create date. | |
groupByTag ( ) : Illuminate\Contracts\View\Factory | Illuminate\View\View | Get all Tags used to group posts. | |
showCategory ( $id ) : Illuminate\Http\RedirectResponse | Redirect to categories with default category. | |
showTag ( $id ) : Illuminate\Http\RedirectResponse | Redirect to tags with default tag. |
public __construct ( |
||
$category | ||
$tag | ||
$post |
public groupByCategory ( ) : Illuminate\Contracts\View\Factory | Illuminate\View\View | ||
Résultat | Illuminate\Contracts\View\Factory | Illuminate\View\View |
public groupByDate ( ) : Illuminate\Contracts\View\Factory | Illuminate\View\View | ||
Résultat | Illuminate\Contracts\View\Factory | Illuminate\View\View |
public groupByTag ( ) : Illuminate\Contracts\View\Factory | Illuminate\View\View | ||
Résultat | Illuminate\Contracts\View\Factory | Illuminate\View\View |
public showCategory ( $id ) : Illuminate\Http\RedirectResponse | ||
$id | ||
Résultat | Illuminate\Http\RedirectResponse |
public showTag ( $id ) : Illuminate\Http\RedirectResponse | ||
$id | ||
Résultat | Illuminate\Http\RedirectResponse |
protected CategoryRepository,App\Repositories $category | ||
Résultat |
protected PostRepository,App\Repositories $post | ||
Résultat |