ViktorasssIT
ViktorasssIT

Reputation: 387

Laravel backpack 4.1 Add anchor tag to table

How to make a link from a database field and display it inside the table? enter image description here

Inside the protected function setupListOperation() the code for the link looks like this:

 CRUD::column('link')->type('link');

Upvotes: 0

Views: 528

Answers (1)

tabacitu
tabacitu

Reputation: 6193

You can use the wrapper attributes to turn that into an anchor. See the docs here - https://backpackforlaravel.com/docs/5.x/crud-columns#wrap-column-text-in-an-html-element

Upvotes: 2

Related Questions