I am trying to override the default __call
method for Eloquent/Model
, but without luck.
I have tried the following:
function __call($method, $parameters)
{
die("test");
}
static function __callStatic($method, $parameters)
{
die("test2");
}
But it simply doesn't die, any ideas?
Try using the __construct()
at the top of your controller
it works for all function calls
public function __construct() {
echo '=========>test';
exit;
}