Answers for "laravel get route from requeest"

PHP
1

delete route method in laravel

<form method="POST" action="{{ route('route.name', [ 'id'=> $item->id ]) }}">
              @csrf
              <input type="hidden" name="_method" value="DELETE">
              <button type="submit" class="btn btn-danger btn-icon">
                <i data-feather="delete"></i>
              </button>
            </form>
Posted by: Guest on October-18-2020
0

laravel get current route name

Route::getCurrentRoute()->getActionName();
Posted by: Guest on August-26-2020

Code answers related to "laravel get route from requeest"

Browse Popular Code Answers by Language