Fixed bug

This commit is contained in:
2018-06-02 00:11:00 +02:00
parent 9b3f816c31
commit c20b7bbc78
2 changed files with 3 additions and 5 deletions

View File

@@ -8,10 +8,8 @@ use App\Team;
class PagesController extends Controller
{
function dashboard() {
$teams = Team::all()->pluck('name');
foreach ($teams as $t) {
dd($t);
}
$teams = Team::all();
return view('dashboard')->with([
'teams' => $teams,
]);

View File

@@ -34,7 +34,7 @@
<tbody>
@foreach($teams as $t)
<tr>
<td{!! $t !!}</td>
<td>{!! $t->name !!}</td>
<td>Column content</td>
<td>Column content</td>
<td>Column content</td>