skip to Main Content

PHP Trait static property

I have a class that extends EloquentModel. I want to define a trait that adds a static property and a static method to the class. trait Searchable { protected static array $searchable; public static function formatSearchQuery($value) { $queryArray = array();…

VIEW QUESTION
Back To Top
Search