DEV Community

Cover image for Using Svelte.js with Laravel Part 2: Make Svelte scaffold in Laravel 6

Using Svelte.js with Laravel Part 2: Make Svelte scaffold in Laravel 6

Shah Nawaz Shuvo on September 09, 2019

Svelte is a radical new approach to building user interfaces. In my last post I used a package called laravel-svelte-preset to get Svelte scaffoldi...
Collapse
 
collectasaurus profile image
Collectasaurus

$ npm install --save jquery pooper.js bootstrap svelte

I would suggest popper over pooper but... Also why would you want to use svelte and then install jquery???

Collapse
 
dansvel profile image
dan

i thinks is because many Bootstrap components require jQuery,,
here more getbootstrap.com/docs/4.4/getting-...

Collapse
 
shakhawatfci profile image
shakhawat hossain sabbir

but i want master page as in laravel .. i want to render components by calling it here in page as like vue laravel is it possible ?

Collapse
 
pkumaravk profile image
pkumaravk

Inserting the script tag in the

element inserts the component in the code ?

i thought to insert the component we need to add in the body tag.

Collapse
 
shuv1824 profile image
Shah Nawaz Shuvo

The JavaScript code inside the js/app.js file will automatically mount the App component in the <body>

Collapse
 
amjad_niazi profile image
Amjad Iqbal Khan

Great, please also make a tutorial how to use laravel6 Authentication with svelte and how to get rid of vue like "php artisan ui vue --auth"