PHP code example of mfn / laravel-view-obj
1. Go to this page and download the library: Download mfn/laravel-view-obj library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
mfn / laravel-view-obj example snippets
@view_obj($article)
HTML
<article>
<h1>{{ $obj->title }}</h1>
<div>
{{ $obj->content }}
</div>
</article>
HTML
<li>
<a href="{{ URL::route('article', [$obj->id]) }}">
{{ $obj->title }}
</a>
</li>