Skip to content

Not Working for Laravel 5.4 - Error foo is not defined #106

@svs22121990

Description

@svs22121990

I have installed the "laracasts/utilities": "3.0" package.

Add Laracasts\Utilities\JavaScript\JavaScriptServiceProvider::class to the providers array

I got Uncaught ReferenceError: foo is not defined in the console.

Then, I also tried changing the javascript config file and changed 'bind_js_vars_to_this_view' => 'foot' where, foot.blade.php is a file in the subfolder in resources. Do I need to specify the entire file path ? I tried that but, that also, didn't work for me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions