Fixed dead features.

This commit is contained in:
Sebastian Davaris 2021-02-25 13:51:37 +01:00
parent 232fc86560
commit 0b97231292
2 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ class PostController extends Controller
->orWhere("posts.text", "LIKE", "%{$search}%") ->orWhere("posts.text", "LIKE", "%{$search}%")
->orWhere("statuses.name", "LIKE", "%{$search}%") ->orWhere("statuses.name", "LIKE", "%{$search}%")
->orWhere("occupations.name", "LIKE", "%{$search}%") ->orWhere("occupations.name", "LIKE", "%{$search}%")
->andWhere("statuses.name", "NOT", "Pending") ->where("statuses.name", "NOT", "Pending")
->get(); ->get();
return view("index", [ "posts" => $posts]); return view("index", [ "posts" => $posts]);

View File

@ -93,7 +93,7 @@
<button type="submit" class="btn btn-primary">Opdater</button> <button type="submit" class="btn btn-primary">Opdater</button>
</form> </form>
<form action="" method="post"> <form action="/admin/posts/{{ $post->id }}" method="post">
@csrf @csrf
@method("DELETE") @method("DELETE")