I'm guessing you are passing the model id in your route, like model/{id}/edit
.
If that's the case, you can retrieve the value of {id}
from route, like this:
$id = $this->route('id');
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community