lundi 25 mars 2019

Macroable.php Method foregin does not exist

I need help in solving this issue

In Macroable.php line 99: Method foregin does not exist.

image link 1: https://prnt.sc/n2z0gl image link 2: https://prnt.sc/n2z0mu

used this :

namespace Illuminate\Support\Traits;

use Closure;
use ReflectionClass;
use ReflectionMethod;
use BadMethodCallException;

Line of coding :

public function __call($method, $parameters)
    {
        if (! static::hasMacro($method)) {
            throw new BadMethodCallException("Method {$method} does not exist.");
        }

        $macro = static::$macros[$method];

        if ($macro instanceof Closure) {
            return call_user_func_array($macro->bindTo($this, static::class), $parameters);
        }

        return call_user_func_array($macro, $parameters);
    }
}



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2CCYNcd
via IFTTT

Aucun commentaire:

Enregistrer un commentaire