Answers for "static function model laravel"

PHP
0

static function model laravel

public static function isOpen($week)
{
    return (new static)::where('week', $week)->first();
}
Posted by: Guest on February-13-2021
0

laravel call a static function

namespace App\Library;

class Utilities {

 //added new user
 public static function doBeforeTask() {
  // ... you business logic.
 }
}

// then do this in your controller 
Utilities::doBeforeTask();
Posted by: Guest on March-27-2021

Code answers related to "static function model laravel"

Browse Popular Code Answers by Language