Answers for "pass variable with route laravel"

PHP
2

pass js var to laravel route

var url = '{{ route("admin.stocks.edit", ":id") }}';
url = url.replace(':id', stock.id);
$('.stocks_list').append('<li><a href="'+url+'">' + stock.symbol + ' </a></li>');
Posted by: Guest on May-31-2021
0

passing parameters with route keyword in blade laravel

<a href="{{ route('blog.by.slug', ['slug' => 'someslug']) }}">...</a>
Posted by: Guest on June-19-2021

Code answers related to "pass variable with route laravel"

Browse Popular Code Answers by Language