프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$category | CategoryRepository object. | ||
$post | PostRepository object. | ||
$tag | TagRepository object. |
메소드 | 설명 | |
---|---|---|
__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 | ||
리턴 | Illuminate\Contracts\View\Factory | Illuminate\View\View |
public groupByDate ( ) : Illuminate\Contracts\View\Factory | Illuminate\View\View | ||
리턴 | Illuminate\Contracts\View\Factory | Illuminate\View\View |
public groupByTag ( ) : Illuminate\Contracts\View\Factory | Illuminate\View\View | ||
리턴 | Illuminate\Contracts\View\Factory | Illuminate\View\View |
public showCategory ( $id ) : Illuminate\Http\RedirectResponse | ||
$id | ||
리턴 | Illuminate\Http\RedirectResponse |
public showTag ( $id ) : Illuminate\Http\RedirectResponse | ||
$id | ||
리턴 | Illuminate\Http\RedirectResponse |
protected CategoryRepository,App\Repositories $category | ||
리턴 |
protected PostRepository,App\Repositories $post | ||
리턴 |