jeudi 20 février 2020

production.ERROR: Method [getContent] does not exist on view

I'm working on a project based on laravel 5.5, When I use the command php artisan serve, my website is not running on localhost, and I'm getting the following in my error.log file.

{"exception":"[object] (BadMethodCallException(code: 0):

Method [getContent] does not exist on view. at /home/lord/myproject/vendor/laravel/framework/src/Illuminate/View/View.php:399)

The following is the codesegment of /vendor/laravel/framework/src/Illuminate/View/View.php:399

    /**
     * Dynamically bind parameters to the view.
     *
     * @param  string  $method
     * @param  array   $parameters
     * @return \Illuminate\View\View
     *
     * @throws \BadMethodCallException
     */
    public function __call($method, $parameters)
    {
        if (! Str::startsWith($method, 'with')) {
            throw new BadMethodCallException("Method [$method] does not exist on view.");
        }

        return $this->with(Str::camel(substr($method, 4)), $parameters[0]);
    }



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

Aucun commentaire:

Enregistrer un commentaire