Last active
January 24, 2018 16:01
-
-
Save buiquangduc/21a1cb4dda037e8c9f5c291dc6b9d906 to your computer and use it in GitHub Desktop.
Public scope example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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