diff --git a/tippspiel/app/Http/Controllers/PagesController.php b/tippspiel/app/Http/Controllers/PagesController.php
index e613a39..2669c50 100644
--- a/tippspiel/app/Http/Controllers/PagesController.php
+++ b/tippspiel/app/Http/Controllers/PagesController.php
@@ -3,12 +3,14 @@
namespace App\Http\Controllers;
use Illuminate\Http\Request;
+use App\Team;
class PagesController extends Controller
{
function dashboard() {
+ $teams = Team::all();
return view('dashboard')->with([
-
+ $teams => 'teams',
]);
}
}
diff --git a/tippspiel/app/Team.php b/tippspiel/app/Team.php
new file mode 100755
index 0000000..a390eab
--- /dev/null
+++ b/tippspiel/app/Team.php
@@ -0,0 +1,34 @@
+
-
Type
- Column heading
- Column heading
- Column heading
+ Nr.
+ Mannschaft A
+ Mannschaft B
+ Tipp
+ Bearbeiten