Spielerliste alphabetisch sortieren
This commit is contained in:
parent
3f17c76403
commit
0d57d3129b
4 changed files with 39 additions and 6 deletions
33
pfosten/.env_local
Executable file
33
pfosten/.env_local
Executable file
|
|
@ -0,0 +1,33 @@
|
|||
APP_NAME=Laravel
|
||||
APP_ENV=local
|
||||
APP_KEY=base64:kDZstIrXoxXzGa2reMEbvFjDhcaoJ4eKupyPnPL7euE=
|
||||
APP_DEBUG=true
|
||||
APP_LOG_LEVEL=debug
|
||||
APP_URL=http://localhost
|
||||
|
||||
DB_CONNECTION=mysql
|
||||
DB_HOST=127.0.0.1
|
||||
DB_PORT=3306
|
||||
DB_DATABASE=pfosten
|
||||
DB_USERNAME=root
|
||||
DB_PASSWORD=root
|
||||
|
||||
BROADCAST_DRIVER=log
|
||||
CACHE_DRIVER=file
|
||||
SESSION_DRIVER=file
|
||||
QUEUE_DRIVER=sync
|
||||
|
||||
REDIS_HOST=127.0.0.1
|
||||
REDIS_PASSWORD=null
|
||||
REDIS_PORT=6379
|
||||
|
||||
MAIL_DRIVER=smtp
|
||||
MAIL_HOST=smtp.mailtrap.io
|
||||
MAIL_PORT=2525
|
||||
MAIL_USERNAME=null
|
||||
MAIL_PASSWORD=null
|
||||
MAIL_ENCRYPTION=null
|
||||
|
||||
PUSHER_APP_ID=
|
||||
PUSHER_APP_KEY=
|
||||
PUSHER_APP_SECRET=
|
||||
|
|
@ -55,7 +55,7 @@ class Game extends Model
|
|||
$now=Carbon\Carbon::now();
|
||||
|
||||
if (!$game->hasResult()) {
|
||||
if ($game->kickoff > $now) return "Anstoss: " . $game->kickoff;
|
||||
if ($game->kickoff > $now) return "-";
|
||||
|
||||
$start=Carbon\Carbon::parse($game->kickoff);
|
||||
$end=$start->addHours(2);
|
||||
|
|
|
|||
|
|
@ -38,15 +38,15 @@ class UsersController extends Controller
|
|||
if (Auth::guest()) { return redirect("/"); }
|
||||
if (!Auth::user()->admin) { return redirect("/"); }
|
||||
|
||||
$users = DB::table('users')->where('deleted',null)->get();
|
||||
$users = DB::table('users')->where('deleted',null)->orderBy('lastname')->get();
|
||||
return view('users.index', compact('users'));
|
||||
}
|
||||
|
||||
/*
|
||||
public function showUsers() {
|
||||
$users = DB::table('users')->get();
|
||||
$users = DB::table('users')->orderBy('lastname')->get();
|
||||
return view('users.list', compact('users'));
|
||||
}
|
||||
|
||||
*/
|
||||
// Route-Model binding, because parameter in web.php route has same name as functionparameter
|
||||
public function showUser(User $userObject) {
|
||||
//return $userObject; // If you want it as a JSON object
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
@section('content')
|
||||
<section class="jumbotron text-center">
|
||||
<div class="container">
|
||||
<h1 class="jumbotron-heading">Hoschis Vollpfosten</h1>
|
||||
<h1 class="jumbotron-heading">Hoschis Tippspiel</h1>
|
||||
<p class="lead text-muted">Eine Tippgemeinschaft unter Freunden.</p>
|
||||
<div><p></p><p></p><p></p></div>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue