Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • Using the first option i get this error: Action App\Http\Controllers\/admin/pages/<?php echo e($item->id); ?> not defined Second options gives me an ErrorException: Array to string conversion Commented Jan 21, 2016 at 4:55
  • 1
    @Zalon it seems that you cannot pass parameters with post requests. So you need to choose the second method. I edited the code. Refer this answer: stackoverflow.com/questions/31872422/… Commented Jan 21, 2016 at 5:40
  • I played around with it a bit, I ended up getting it to work by using: 'url' => ['admin/pages/'.$item->id.'/increment'], instead of action. Thanks a lot for your help Commented Jan 21, 2016 at 5:48