1class ContentController extends BaseController {
2
3 public static $text = null;
4
5 public static function getContent($description)
6 {
7 $content = Content::where('description', $description)->first();
8 return static::$text = $content->text;
9 }
10}
11
1class Export extends Model {
2 public static $itemsPerPage = 20;
3
4 public function test() {
5 static::$itemsPerPage;
6 }
7}