Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel call a static function

namespace AppLibrary;

class Utilities {

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

// then do this in your controller 
Utilities::doBeforeTask(); 
 
PREVIOUS NEXT
Tagged: #laravel #call #static #function
ADD COMMENT
Topic
Name
9+1 =