0

I am using datatables and I have a line with an entry number for a quotation.

The entry comes from

 $item->entry

What I am trying to do is wrap this in a href

<a href="{{URL('ProdecQuote/{$item->entry}')}}">{{ $item->entry }}</a>

my problem here is the $item within the route area does not translate to a number, instead I get

http://localhost:8000/ProdecQuote/{$item->entry}

Help would be gratefully appreciated

1 Answer 1

2

Try this solution:

<a href="{{URL('ProdecQuote/', [$item->entry])}}">{{ $item->entry }}</a>

Hope it help you :)

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.