Search
 
SCRIPT & CODE EXAMPLE
 

PHP

bootstrap is not defined in laravel

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 globals 
Php :: convert collection to array laravel 
Php :: asin() php 
Php :: how to trim text php 
Php :: add footer code 
Php :: Best Security tools for php 
Php :: Corsair K70 RGB MK.2 
Php :: laravel pivot table model 
Php :: static class methods php 
Php :: $_server php 
Php :: how to know if file is empty in php 
Php :: php input radio 
Php :: how to get stripe processing fees api 
Php :: multe data on database laravel 
Php :: php prepared statements 
Php :: laravel validation check foreign key exists 
Php :: delay queue laravel 
Php :: How do I log properly a Laravel Job 
Php :: laravel not run test 
Php :: this php 
Php :: how to add javascript to a php variable 
Php :: fakestore api data in laravel 
Php :: php detect daylight saving time DST 
Php :: get dates between two dates using specific interval using carbon 
Php :: curl_setopt_array php 
Php :: Call to undefined method PsyUtilStr::random() 
Php :: remove MainWP Child phpmyadmin 
Php :: turn off wordpress user list exposed 
Php :: How can I get current controller in yii2 
Php :: symfony append to file 
ADD CONTENT
Topic
Content
Source link
Name
9+1 =