Skip to content
This repository was archived by the owner on Dec 6, 2019. It is now read-only.

Commit 77ac7b3

Browse files
committed
Changed to search to a GET-Query to make it easier to reload the page
1 parent b788ff7 commit 77ac7b3

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

app/NameHistory.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
* @method static \Illuminate\Database\Query\Builder|\App\NameHistory whereCreatedAt($value)
2222
* @method static \Illuminate\Database\Query\Builder|\App\NameHistory whereUpdatedAt($value)
2323
* @mixin \Eloquent
24+
* @property-read \App\Player $player
2425
*/
2526
class NameHistory extends Model {
2627

resources/views/index.blade.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,10 @@
2424
<h1>Minecraft Database - Serverlist</h1>
2525
</div>
2626
<div id="serach_container" class="col-sm-4">
27-
<form action="{{ url("search") }}" method="POST" id="search">
27+
<form action="{{ url("search") }}" method="GET" id="search">
2828
<div class="input-group">
2929
<input type="text" class="form-control dark-background-input" name="search"
3030
placeholder="Search">
31-
{!! csrf_field() !!}
3231
<span class="input-group-btn">
3332
<button class="btn btn-default dark-background" type="submit">
3433
<span id="search_icon" class="glyphicon glyphicon-search" aria-hidden="true"></span>

resources/views/search/result.blade.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,10 @@
1919
</ul>
2020
</div>
2121
@endif
22-
<form action="{{ url("search") }}" method="post">
22+
<form action="{{ url("search") }}" method="GET">
2323
<div class="input-group">
2424
<input type="text" class="form-control dark-background-input" name="search" placeholder="Search"
2525
value="{{ $keyword or '' }}">
26-
{!! csrf_field() !!}
2726
<span class="input-group-btn">
2827
<button class="btn btn-default dark-background" type="submit">
2928
<span id="search_icon" class="glyphicon glyphicon-search" aria-hidden="true"></span>

0 commit comments

Comments
 (0)