Skip to content

AssetContainer could not be converted to string #10

@aviqbaihaqy

Description

@aviqbaihaqy

after migrate from teepluss\theme to FaCuZ/laravel-theme, in script

{!! Theme::asset()->container('footer')->usePath()->add('app', 'js/app.js') !!}

i get error:

"Object of class Facuz\Theme\AssetContainer could not be converted to string (View: D:\WWW\barlin\public\themes\default\views\landing.blade.php)"

then result in dd:

AssetContainer {#5927 ▼
  +usePath: true
  +path: null
  +name: "footer"
  +"assets": array:1 [▼
    "script" => array:1 [▼
      "app" => array:3 [▼
        "source" => "public/themes/default/assets/js/app.js"
        "dependencies" => []
        "attributes" => []
      ]
    ]
  ]
}

whats wrong this script?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions