Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Public static function example
<?php
namespace App;
use Sober\Controller\Controller;
class FrontPage extends Controller
{
/**
* This function will be called on front-page.blade.php by this way: FrontPage::custom_title().
*
* @return string.
*/
public static function custom_title() {
return 'Front Page custom title';
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment