Search
 
SCRIPT & CODE EXAMPLE
 

PHP

$ is not define

We must delete "defer attribute"

->app.blade.php

   //this is wrong
   <script src="{{ asset('js/app.js') }}" defer></script>
   
   //this is correct
   <script src="{{ asset('js/app.js') }}" ></script>
 
 ->resources>js>app.js
 	window.$ = require("jquery")
 	window.bootstrap = require("bootstrap");

   
Comment

PREVIOUS NEXT
Code Example
Php :: php localhost 
Php :: laravel-enum 
Php :: Predefined Constants php 
Php :: laravel notification 
Php :: how to pass parameters to relationships laravel 
Php :: php array push 
Php :: php recortar string 
Php :: get array of last 3 dates with carbon 
Php :: how to go one folder back in __dir__ in php 
Php :: count cpt wp 
Php :: how to determine if file is empty in php 
Php :: laravel log package, laravel log, save laravel log 
Php :: api resource create in laravel 
Php :: woocommerce my account php code wordpress 
Php :: remove space and line from json in php 
Php :: echo php dropdown from db and save it in a db 
Php :: how to print something in php 
Php :: php get all days between two dates 
Php :: laravel unique id 
Php :: Non-static method called statically php 
Php :: date and time syntax 
Php :: specify php version composer 
Php :: namecheap shared cpanel change php version for subdomain 
Php :: explode (PHP 4, PHP 5, PHP 7, PHP 8) explode — Split a string by a string 
Php :: PHP sha1 — Calculate the sha1 hash of a string 
Php :: Skip model accessor laravel8 
Php :: php file date created older than 
Php :: php compress csv file 
Php :: cara install php7.3 di ubuntu 20.04 
Php :: laravel collection sort by date 
ADD CONTENT
Topic
Content
Source link
Name
3+7 =