Conflicts:
	skolehjem/routes/web.php
This commit is contained in:
Sebastian Davaris 2020-06-10 12:31:11 +02:00
commit 2f0ec75278
7 changed files with 21 additions and 7 deletions

View File

@ -2,18 +2,21 @@
namespace App\Http\Controllers; namespace App\Http\Controllers;
use App\User;
use Illuminate\Http\Request; use Illuminate\Http\Request;
class EventController extends Controller class EventController extends Controller
{ {
/** /**
* Display a listing of the resource. * Display a listing of the resource..
* *
* @return \Illuminate\Http\Response * @return \Illuminate\Http\Response
*/ */
public function index() public function index(Request $request)
{ {
// $users = User::query()->paginate($request->query("limit", 20));
return view("user.index", [ "users" => $users]);
} }
/** /**
@ -23,7 +26,7 @@ class EventController extends Controller
*/ */
public function create() public function create()
{ {
// return view("user.create");
} }
/** /**

View File

@ -15,7 +15,7 @@ class CreateWashingReservations extends Migration
{ {
Schema::create('washing_reservations', function (Blueprint $table) { Schema::create('washing_reservations', function (Blueprint $table) {
$table->id(); $table->id();
$table->time("time"); $table->timestamp("time");
$table->timestamps(); $table->timestamps();
}); });
} }

View File

@ -15,6 +15,8 @@ class CreateEvents extends Migration
{ {
Schema::create('events', function (Blueprint $table) { Schema::create('events', function (Blueprint $table) {
$table->id(); $table->id();
$table->string("name");
$table->string("description");
$table->timestamps(); $table->timestamps();
}); });
} }

View File

@ -15,6 +15,7 @@ class CreateWashingMachines extends Migration
{ {
Schema::create('washing_machines', function (Blueprint $table) { Schema::create('washing_machines', function (Blueprint $table) {
$table->id(); $table->id();
$table->string("name")->unique();
$table->timestamps(); $table->timestamps();
}); });
} }

View File

@ -13,9 +13,8 @@ class AlterWashingReservations extends Migration
*/ */
public function up() public function up()
{ {
//
}
}
/** /**
* Reverse the migrations. * Reverse the migrations.
* *

0
skolehjem/laravel.sqlite Normal file
View File

View File

@ -0,0 +1,9 @@
@extends('layout.base')
@section('content')
<ul>
</ul>
@endsection