Answer the question
In order to leave comments, you need to log in
Why doesn't it say Missing required parameters for [Route: shedule.update] [URI: shedule/{schedule}]?
I'm trying to create an edit page through a modal window, but this error is shown to me, I just have to pass the id to it as I understand it, but why doesn't it issue
Missing required parameters for [Route: shedule.update] [URI: shedule/{schedule }]
my implementation in vushkeya is like this
<div class="block-lesson" style="width: 43.5%; height: {{ ((strtotime($lesson->time_end) - strtotime($lesson->time_start))/60/30 + 1) * 33}}px;" data-href="{{ route('shedule.edit', $lesson->id) }}">
public function edit($id)
{
$user = Auth::user()->id;
$branch = Branch::where('user_id', $user)->get();
$direction = Direction::where('user_id', Auth::user()->id)->get();
$shedule = Shedule::find($id);
return view('shedule.update', compact('branch', 'direction', 'shedule'));
}
Route::resource('shedule', 'SheduleController')->middleware('auth');
Answer the question
In order to leave comments, you need to log in
The point is in the form, as I understand it in the modal window, there is a value
<form id="form-create_shedule" action="{{ route('shedule.update') }}" method="post">
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question