chairuman
320
23
Laravel

Too few arguments to function App\Http\Controllers\Backend\BlogController::edit(), 0 passed and exactly 1 expected

Posted 3 months ago by chairuman

can anybody help me with this error? i use route resource

here is my route

Route::resource('/blog/post', 'Backend\BlogController');

but when it access edit($id) it has error like above, i access the url throught button, and here's my button code

<a href="{{ route('post.edit', $post->id) }}" class="btn btn-xs btn-default">

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.