Я пытаюсь создать контроллер ресурсов (для CRUD) в Laravel 5.1. Я добавил это приложение/Http/routes.php:Resource Route возвращает пустую страницу
<?php
Route::get('/', function() {
return view('home');
});
Route::get('/home', function() {
return view('home');
});
Route::resource('markers', 'MarkerController');
Route::get('auth/login', 'Auth\[email protected]');
Route::post('auth/login', 'Auth\[email protected]');
Route::get('auth/logout', 'Auth\[email protected]');
Route::get('auth/register', 'Auth\[email protected]');
Route::post('auth/register', 'Auth\[email protected]');
Это мой контроллер: http://pastebin.com/mcm6kfSB
Это мое мнение:
@if (Session::has('message'))
<div class="alert alert-info">{{ Session::get('message') }}</div>
@endif
<table class="table table-striped table-bordered">
<thead>
<tr>
<td>Name</td>
<td>x</td>
<td>y</td>
<td>Actions</td>
</tr>
</thead>
<tbody>
@foreach($markers as $key => $value)
<tr>
<td>{{ $value->name }}</td>
<td>{{ $value->x }}</td>
<td>{{ $value->y }}</td>
<td>
<a href="markers/index">Show</a>
<a href="markers/idnex">Edit</a>
</td>
</tr>
@endforeach
</tbody>
</table>
Когда я иду в http://partyrecycler.dev/markers/index я получаю пустая страница без содержания, и я не знаю, почему, помогите?
Это работало, спасибо !! – Alexander