Fixed bug
This commit is contained in:
@@ -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,
|
||||
]);
|
||||
|
@@ -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>
|
||||
|
Reference in New Issue
Block a user