class ContentController extends BaseController {
public static $text = null;
public static function getContent($description)
{
$content = Content::where('description', $description)->first();
return static::$text = $content->text;
}
}
class RoleController extends Model {
public const IS_ADMIN = 1;
}
Explained like a charm
https://stackoverflow.com/questions/15898843/what-means-new-static
class Export extends Model {
public static $itemsPerPage = 20;
public function test() {
static::$itemsPerPage;
}
}