worked on event blade files.
This commit is contained in:
@@ -102,10 +102,10 @@ class EventController extends Controller
|
||||
* @return \Illuminate\Contracts\Foundation\Application|\Illuminate\Contracts\View\Factory|\Illuminate\View\View
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function destroy(Event $id)
|
||||
public function destroy($id)
|
||||
{
|
||||
$id->delete();
|
||||
|
||||
return Response::detect("events.destroy");
|
||||
$link = Event::find($id);
|
||||
$link->delete();
|
||||
return redirect()->route("events.index");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user