Skip to content

Commit 8c9a9d1

Browse files
committed
published() removed from controller
1 parent e4b3e39 commit 8c9a9d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Http/Controllers/PublicController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public function __construct(EloquentObject $object)
1919
*/
2020
public function index()
2121
{
22-
$models = $this->repository->published()->findAll();
22+
$models = $this->repository->all();
2323

2424
return view('objects::public.index')
2525
->with(compact('models'));
@@ -32,7 +32,7 @@ public function index()
3232
*/
3333
public function show($slug)
3434
{
35-
$model = $this->repository->published()->bySlug($slug);
35+
$model = $this->repository->bySlug($slug);
3636

3737
return view('objects::public.show')
3838
->with(compact('model'));

0 commit comments

Comments
 (0)