vue_laravel/package.json
. Also include devDependencies
listed below:
public
and paste it into
vue_laravel/public
.
vue_laravel/resources/ts
and
inside this folder create file app.ts
.
src
folder we can fully copy this folder and place it
inside vue_laravel/resources/ts
.
main.ts
, we
need to import it in app.ts
.
node_modules/.bin/tsc --init
. (no need
for the full path if you have a global TypeScript installation) that
appears in the newly created tsconfig.json
file.
tsconfig.json
in laravel app.
webpack.mix.js
in vue_laravel project.
resources/views
. Let's
call it app.blade.php
app.blade.php
file this code.
routes/web.php
http://127.0.0.1:8000
and open this url in your browser.