0

I discovered a link to integrate adminLTE in Laravel 8 and I followed it.

Here is the link.

But when im going to use jquery's document.ready and toastr. It says $ not defined or toastr not defined. Im not installing jquery or toastr since I assume its included in adminLTE as the docs said.

Can anyone help me? Thanks.

6
  • npm install npm run dev Commented Jul 24, 2021 at 18:12
  • i already did it. @tirtakeniten Commented Jul 24, 2021 at 18:14
  • where do you call the $? Commented Jul 24, 2021 at 18:15
  • in script. @tirtakeniten Commented Jul 24, 2021 at 18:17
  • This question is answered By jogarcia stackoverflow.com/questions/32498328/… Commented Jul 24, 2021 at 18:31

1 Answer 1

0

To add jquery to laravel you first have to add the Scaffolded javascript file, app.js

This can easily be done adding this tag.

<script src="{{ asset('js/app.js') }}"></script>

Please see complete answer. https://stackoverflow.com/a/56794159/14249612

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.