Discussion

ecommerce not starting when access with web browser

Symfony\Component\Debug\Exception\FatalThrowableError method_exists(): Argument #1 ($object_or_class) must be of type object|string, null given (View: /Users/triplec/Sites/laravel-ecommerce/laravel-ecommerce/resources/views/home.blade.php)

::method_exists vendor/avored/framework/src/Database/Models/Page.php:33

protected $contentTags = ['%%%', '%%%'];



/**

 * The attributes that are mass assignable.

 * @var array

 */

protected $fillable = ['name', 'slug', 'content', 'meta_title', 'meta_description'];



/**

 * Get the Content and make sure if it has widget key then render the widget too

 * @return string

 */

public function getContent()

{

    $content = $this->content;

    $pattern = sprintf('/(@)?%s\s*(.+?)\s*%s(\r?\n)?/s', $this->contentTags[0], $this->contentTags[1]);

    $callback = function ($matches) {

        $whitespace = empty($matches[3]) ? '' : $matches[3] . $matches[3];

        $widget = Widget::get($matches[2]);



     ****error->***   if (method_exists($widget, 'render')) {

            $widgetContent = $widget->render();

        } else {

            $widgetContent = '';
lxbfYeaa
lxbfYeaa
4 days ago

555

Want to contribute?

© AvoRed 2021 Privacy