This repository was archived by the owner on Mar 27, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Helpers
Bruno Fernando dos Santos Silva edited this page Aug 5, 2017
·
1 revision
In order to call setRobot helpers you need to call the setRobot namespace App\
Available helpers:
Loading images into setRobot theme is easy, just pass the picture name and you're ready to go! Note: In order to work you need compile your files first, although you will not be allowed to use these images.
With php
<?php echo App\getImage('cute-pig.png'); ?>
With blade (recommended)
{{ App\getImage('cute-pig.png') }}
background-image: image-url('');
At some point you will need the summarized content of a post, and this is where you use the excerpt function.
With php
<?php App\excerpt('excerpt', [ int | limit ]); ?>
With blade (recommended)
{{ App\excerpt('excerpt', [ int | limit ]) }}