trait ShowWithPreview (View source)

Methods

View|RedirectResponse
show(string $slug, Request $request, Redirector $redirector, Factory $viewFactory, Repository $config)

No description

Model|null
getItem(string $slug)

No description

Model|null
getItemPreview($slug)

No description

array
showData(string $slug, mixed $item)

No description

Details

View|RedirectResponse show(string $slug, Request $request, Redirector $redirector, Factory $viewFactory, Repository $config)

No description

Parameters

string $slug
Request $request
Redirector $redirector
Factory $viewFactory
Repository $config

Return Value

View|RedirectResponse

Exceptions

Exception

protected Model|null getItem(string $slug)

No description

Parameters

string $slug

Return Value

Model|null

protected Model|null getItemPreview($slug)

No description

Parameters

$slug

Return Value

Model|null

protected array showData(string $slug, mixed $item)

No description

Parameters

string $slug
mixed $item

Return Value

array