Skip to content
This repository has been archived by the owner on Mar 27, 2021. It is now read-only.

Helpers

Bruno Fernando dos Santos Silva edited this page Aug 5, 2017 · 1 revision

Working with setRobot helpers

In order to call setRobot helpers you need to call the setRobot namespace App\

Available helpers:

Working with images

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.

Loading into common files

With php

<?php echo App\getImage('cute-pig.png'); ?>

With blade (recommended)

{{ App\getImage('cute-pig.png') }}

Loading into css files

background-image: image-url('');

Excerpt

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 ]) }}
Clone this wiki locally