Skip to content

Instantly share code, notes, and snippets.

@buiquangduc
Created January 24, 2018 16:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save buiquangduc/7a3252a26e1e291946b98b57601cee0e to your computer and use it in GitHub Desktop.
Save buiquangduc/7a3252a26e1e291946b98b57601cee0e to your computer and use it in GitHub Desktop.
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