Fixed dead features.
This commit is contained in:
parent
232fc86560
commit
0b97231292
|
@ -38,7 +38,7 @@ class PostController extends Controller
|
|||
->orWhere("posts.text", "LIKE", "%{$search}%")
|
||||
->orWhere("statuses.name", "LIKE", "%{$search}%")
|
||||
->orWhere("occupations.name", "LIKE", "%{$search}%")
|
||||
->andWhere("statuses.name", "NOT", "Pending")
|
||||
->where("statuses.name", "NOT", "Pending")
|
||||
->get();
|
||||
|
||||
return view("index", [ "posts" => $posts]);
|
||||
|
|
|
@ -93,7 +93,7 @@
|
|||
<button type="submit" class="btn btn-primary">Opdater</button>
|
||||
</form>
|
||||
|
||||
<form action="" method="post">
|
||||
<form action="/admin/posts/{{ $post->id }}" method="post">
|
||||
@csrf
|
||||
@method("DELETE")
|
||||
|
||||
|
|
Loading…
Reference in New Issue