B
B
BonBon Slick2017-02-08 16:53:51
Laravel
BonBon Slick, 2017-02-08 16:53:51

Pass id to Route::resource by name?

You need to pass the url with the post id in the following route:

Route::resource('forums', 'PostsController', ['names' => [
    'show' => 'admin.forums.show',

How?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Ukolov, 2017-02-08
@BonBonSlick

route('admin.forums.show', $post->id);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question