samedi 11 février 2017

Difference between {!! !!} and

I am curious between the difference between {!! !!} and

In laravel, Model-View-Controller it is used in View where the user declare the variables which was sent from the Controller

Example Given:

**In Controller**

public function show(){
     $somevariable = 'What is the difference';
     return view('someView.page')->with('somevariable', $somevariable)
}



**In View**

<span class="label label-default">{!! $somevariable !!}</span>

<span class="label label-default"></span>

Both works but I wanna know if there's significant changes it does and what is their differences.



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2l4ZcvV
via IFTTT

Aucun commentaire:

Enregistrer un commentaire