mardi 3 novembre 2015

in laravel view I want the content of the url and not the url itself

I would like to show the content instead of the url in my view. How can I use Laravel to make this work?

At the moment, in my Laravel view I have:

<a href="{!! route('plaats.text', ['plaats' => $plaatsje]) !!}">Link</a>
<p>{!! route('plaats.text', ['plaats' => $plaatsje]) !!}</p>
<p>{!! action('TablesController@text', ['plaats' => $plaatsje]) !!}</p>

The first creates a link with a working active url, the second and third a death link: "http://ift.tt/1GJyorB".

Following the link itself (in all cases) returns the expected content of the url (So, my routing seems to be ok). But neither returns the underlying content.

regards Peter



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire