Public scope example
<?php | |
namespace App; | |
use Sober\Controller\Controller; | |
class FrontPage extends Controller | |
{ | |
/** | |
* This function will be represented as $custom_title variablr inside front-page.blade.php file. | |
* | |
* @return string. | |
*/ | |
public 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