Answers for "what is static property laravel"

PHP
2

how set variable public in static method in laravel

class ContentController extends BaseController {

    public static $text = null;

    public static function getContent($description)
    {
        $content = Content::where('description', $description)->first();
        return static::$text = $content->text;
    }
}
Posted by: Guest on April-10-2021
0

new static laravel

Explained like a charm
https://stackoverflow.com/questions/15898843/what-means-new-static
Posted by: Guest on October-03-2020

Browse Popular Code Answers by Language