Answer the question
In order to leave comments, you need to log in
Laravel can't find the route! Where to dig?
There is a route
Route::group(['prefix' => 'admin', 'middleware' => ['menu']], function () {
Route::resource('/event/', 'EventController', [ 'except' => [ 'show' ] ]);
});
<td><a href="{{ action( '[email protected]', [$event->id] ) }}">{{ $event->id }}</a></td>
GET|HEAD | admin/event/{}/edit | edit | App\Http\Controllers\[email protected] | web,menu
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Input;
class EventController extends Controller
{
/**
* @param int $id
* @return \Illuminate\Http\Response
*/
public function edit($id)
{
$event = null; //Event::find($id);
return view('admin.event_detail', ['event' => $event ] );
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question