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]);
    }



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire