The function () use () {} is like closure for PHP.

Without use, the function cannot access parent scope variable

The use variable's value is from when the function is defined, not when called

use variable by-reference with &

that was a comment I found in StackOverflow

<div class=”custom-file”>
<input name=”image” id=”image” type=”file” class=”custom-file-input”
onchange=”document.getElementById(‘output’).src = window.URL.createObjectURL(this.files[0])”><label
class=”custom-file-label”>Choose File</label>
<div class=”col-sm-12"><img id=”output” src=”” class=”img-fluid”></div>

If you want to create new disk go to :

config => filesystems.php

The base code structure

At the very beginning, the first thing we’re going to need is a starting block of code that we can modify to suit our needs:

This was solved you need to do one thing.
You have to create a new js file or new empty js file
Then you just add that

You see the name “ datascript ” was same. So you should look after that both of name will be same.

I wrote the name ‘ datascript ’ name could be anything pizza, burgers, etc

I think you find the solution 💻

Okay, first you go to the page where you work or testing code.
Then press Ctrl+U and go to the source code. See

<script type=’text/javascript’ src=’'></script>

<script type=’text/javascript’ src=’'></script>

This two script are there or not. If now type

On your script function.php

Then you have to do this one on your script where you did not find jquery

The Problem solve 💻

Md. Najmul Hasan

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store