At 27:15 when trying to bring up the vue page for the first time I had to do two things: In webpack.mix.js add ".vue()" so that it reads: mix.js('resources/js/app.js', 'public/js').vue() Also run "npm i vue-loader" in command prompt Thanks for the awesome video!
@arshadahmad44333 жыл бұрын
Thanks!
@tigere013 жыл бұрын
Thanks very much. I had to stop and scroll down the comments looking for any reference to the issue.
@ardhafatika83203 жыл бұрын
thanks for the info, but when i npm run hot again and still got error message Error: Cannot find module 'D:\Project\laravel-mix\bin\cli.js' can someone help me.. ?
@therain93893 жыл бұрын
Thank you, you're a legend
@henrique-arthur2 жыл бұрын
thanks!!
@AdrianSmithSEO3 жыл бұрын
You are definitely my favourite Laravel instructor. Other instructors spend ages explaining their code and it usually puts me to sleep. You get straight in there - no waffle! Many thanks.
@joelatan57142 жыл бұрын
I think that depends, if you're an experience dev, then this pace is really good, but if you're just starting, you need to understand what he's doing instead of just mimicking.
@MonyetLepasCh3 жыл бұрын
dude im really glad i found this channel
@mayerlysuarezordonez53703 жыл бұрын
Excellent!! I had to do a change in file webpack.mix.js : add .vue() and run perfect. mix.js("resources/js/app.js", "public/js") .vue() .postCss('resources/css/app.css', 'public/css', [ // ]).vue();
@milijan-mosic3 жыл бұрын
You just saved me. Thanks!
@yusinkim79213 жыл бұрын
You just saved another one.
@BrandonWingerAir2 жыл бұрын
If you get an error starting the Vue app this setup currently works: 1. In webpack.mix.js add ".vue()" so that it reads: mix.js('resources/js/app.js', 'public/js').vue() 2. Ensure vue loader is installed or updated, run "npm i vue-loader" in command prompt 3. New app.js file: require('./bootstrap'); import { createApp } from 'vue'; import App from './vue/app'; const app = createApp(App); app.mount('#app');
@bbpyno2 жыл бұрын
thx mate it helped me
@victordada968 Жыл бұрын
Thanks a lot. This saved me from being stuck.
@kiliansalomon73063 жыл бұрын
I am following this video for half an hour now and I love your step by step explanations!
@gabrieljumahjumah31353 жыл бұрын
Oooh I have enjoyed this tutorial and learnt so much at the same time. I hope and pray one day I become as good as you are in Laravel & VueJS Scrypster. Thanks.
@bashircodes3 жыл бұрын
I was about to learn VueJs and couldn't get where to start I already know Laravel but I want to make my projects more attractive by integrating other technologies this guy showed me a way to achieve that thanks a lot.
@AH-co4mj3 жыл бұрын
liked it a lot! In case you want to add new items by hitting just enter you might want to add v-on:keyup.enter="addItem()" in the addItemForm.vue file like so: In case you run into some compile errors with vue setup you might want to add in the webpack.mix.js file a single .vue();
@ThePublicTutorials3 жыл бұрын
I watched this video when it was new and remembered it now as I have some more time to code now. For some reason I hadn't subscribed to your channel so it wasn't easy to find it. I'm not particularly planning to make a todo app but I wanted to say how great this content is! It really helps clearing a bunch of things up. It's the worst when tuts skip steps, not realizing that those steps are important to get things right. But this is crystal clear. Many thanks, man! Hoping to see more Laravel and/or Vue stuff on your channel.
@dr.kenedy-oltitia2 жыл бұрын
I had just began learning Laravel and vue. Coming from mern stack technologies. This tutorial enabled, e to learn crud operations within an hour
@ZeeshanAli-cd4db3 жыл бұрын
if you guys are checking for reviews, this is the best video for VueJS API calls.
@JavedBaloch7863 жыл бұрын
Very well explained simply and pretty straight forward. Keep making videos / projects on Laravel & Vue.
@stronglonggg3 жыл бұрын
Short and concise, right into the content! Save me lots of time! Thanks so much!
@TagalogHacksandTutorials3 жыл бұрын
I love the way you deliver this crash course. - Cruize: Philippines
@lesssass44783 жыл бұрын
Each an every line of code is explained. Such a great tutorial.
@cristian702 Жыл бұрын
Finaly! I was looking for a video like this for a whole week. Subscribed.
@BillClinton2283 жыл бұрын
There are very few tutorials about Laravel and Vue, thanks for making this.
@jahdielcastaneda87284 жыл бұрын
Simplest and most concrete laravel vue tutorial I've seen.. thanks man.. keep em up 😎😎
@scrypster4 жыл бұрын
Best complement I’ve ever received ❤️ thank you!
@akintadeajibade57443 жыл бұрын
@@scrypster 😊
@kddjk13 жыл бұрын
Hi Dude its very helpful to learn basic this of vue js. I was very confused about the 'emit' but after watching this video, confusion removed. Thanks for this video.
@abdulrahmanali5993 жыл бұрын
You are amazing dude! You are currently building up my confidence for my new job! I just got a full-stack job and currently using this tutorial to familiarise myself with the frameworks! Thanks heaps mate!
@branimirdragicevic60143 жыл бұрын
At the 21:30 you're making things a little bit weird in my opinion. There is obviously something wrong (item not found), but the response is 200 (all green). So for cases like this one, much better approach would be if you returned response(["message" => "Some appropriate message"], 404);. This way, you could easily implement then -> catch or try -> catch on the frontend side whenever an item was not found. This would be way more elegant and preferable approach in my opinion. Side note: 404 is http status code for "resource not found". There is also a handy class Symfony\Component\HttpFoundation\Response which you can import and then use it, for example, as Response::HTTP_NOT_FOUND
@armanhossain75803 жыл бұрын
You are really rock though i am a Laravel developer but i can not understand how work with vue but now i understood thnx bro
@aftermathpenaut67583 жыл бұрын
You can create model, migrations and controller with a single command "php artisan make:model Item -cmr"
@scrypster3 жыл бұрын
Definitely an awesome option!
@md.abulkalamazad49652 жыл бұрын
@@scrypster And also "php artisan make:model Item -a"
@angelorigo3 жыл бұрын
Most clear an concise lessons i ever found about laravel and vuejs thank you for this tutorial
@stefanilic41783 жыл бұрын
What a video! For one hour, I'm learned so much stuff. Great tutorial, keep going.
@nathanstanfordsr2 жыл бұрын
Just a note I just started watching this video and your voice sounds good for training. I am hoping to watch your other videos I have subscribed. Hope to learn a lot from you. Thanks for your time.
@LolForeverChannel2 жыл бұрын
This boy is programming over MacBook, and he has no issue, when I tried to my windows pc, I'm facing with too many issues. So it will be great if you made some videos that you explain also the problems that we will faced on Windows OS. Thank you!
@whitecountryoldroad2 жыл бұрын
It's not because of the OS, it's probably because of the Vue version that you're using (among some other things that might be causing you trouble).
@rashmifartode7023 жыл бұрын
I really like your video thumbnail. Its seems definition of how much we should be serious about professions. nice content. explain very well. Thank you Guru.
@clydecalador2 жыл бұрын
Hands down best explanation I’ve seen! Subscribed.
@eleetgeek51503 жыл бұрын
Most comprehensive tutorial for a beginner!
@muzika50012 жыл бұрын
Great tutorial. Had some problems ahead, because used newest php, laravel and everything on docker. But managed to get the same output after video finished. Thank you very much for this tutorial! :)
@mpuco112 жыл бұрын
an actual useful video covering all necessary features, props
@yunusalade68353 жыл бұрын
You've done so well scrpster. Keep it up on laravel!
@scrypster3 жыл бұрын
Thank you!
@jarednthomas2 жыл бұрын
" "export 'default' (imported as 'Vue') was not found in 'vue' " Vue wasn't working for me; it installed Vue 3 not Vue 2 and it's changed a bit: my `resources/js/app.js` file: ~~~~~~~~~~~~~~~~~~ require('./bootstrap'); import { createApp } from 'vue' import App from './vue/app' export const app = createApp(App) createApp(App).mount('#app')
@dietervrancken13892 жыл бұрын
Thanks bro
@mikmiklanada66792 жыл бұрын
Thank you. this worked :D
@米亞樂樂2 жыл бұрын
thanks :)))))
@23pointblank3 жыл бұрын
Great tutorial. I think we should use another field as the :key since index changes. If you delete the first item then the second item takes its index position. item.id would be a good candidate to use as the key since its from the db and won't change.
@darksoldader4 жыл бұрын
I've been looking for such a good explanation for a long time, thank you very much
@tomosterlund64973 жыл бұрын
This is a brilliant tutorial! My favorite online teacher in the PHP-spectrum so far :)
@scrypster3 жыл бұрын
Thank you!
@ganztv31063 жыл бұрын
Wow..thank you very much..I was able to follow all and resolve issues along the way. I have learned a lot and thats all gold. Keep doing videos to help more like me.
@virgiliustancu92933 жыл бұрын
For all the people who use windows the command npm run dev give error if you have spaces in your project path. I waste a day to figure out. My project was in a folder 'Laravel projects'. Finally I renamed 'Laravelprojects' and worked.
@scrypster3 жыл бұрын
Thank you. I believe you can all put the project path in “quotations” if there are spaces
@millikin20992 жыл бұрын
Hey thanks for the great tutorial. I have had trouble with tutorials creating a Laravel/Vue project. I was always getting these funky errors when I tried to install Vue, not with yours. Great job my friend!
@cliffordmwale57822 жыл бұрын
Just a thought. There was no reason to add "/store" when posting a new Item. It simply goes against rules for creating a RESTful API. Your HttP verb should say the action to be done, not the route name. But great video and I love the simplicity of It all
@AlexG-wk3nh2 жыл бұрын
thanks for this information, what you you put instead ? or just leave it without a prefix?
@kplsharma133 жыл бұрын
Your tutorial and your beard both are fantastic.
@humanbeing76242 жыл бұрын
This frontend language is so elegant and clean. I am only using jquery and ajax in my laravel app. How long will it take to learn this language?
@asim-gandu-phenchod3 жыл бұрын
One word for the video "AWEEEEEEEEEEEEEEEEEEEEEEEEEEEEESOME". Thanks a lot for such a great content. Would definitely want to see more content from you. Keep it up. Peace
@alpocalipse2 жыл бұрын
DUDE YOU ENLIGHTENED MY HORIZON THANK YOU SO MUCH
@malikmudassarawan3 жыл бұрын
Thank God, some good English finally, been roaming for one which I can clearly understand. thanks bro
@niazahmad13 жыл бұрын
very good video the way of teaching is very attractive mush appreciated please carry on such video thanks again
@borknagarchile Жыл бұрын
Great tutorial and great teaching skills
@Buildawesomewebsites3 жыл бұрын
Super high quality. I've been looking to learn a backend with Vue - thought Laravel was a nice choice - so glad I found this! Subbed!
@scrypster3 жыл бұрын
Thank you!
@JohnSmith-zl8rz3 жыл бұрын
After watch the whole video, mmm I see the good about VUE but at some point I think is more simple goes with pure Laravel Components, thanks!
@scrypster3 жыл бұрын
Thank you. You may prefer Jetstream Livewire. Check it out. You can build all your components with Laravel Blades instead of Vue. It’s pretty cool.
@JohnSmith-zl8rz3 жыл бұрын
@@scrypster I add Livewire to my current project, and well yes is nice but the true I want now try Laravel + Nuxt, yes I know is a contradictory comment after I say "pure blade components" but maybe if I go deep I will ending love Nuxt + Laravel.
@RicardoRodriguez-jw1yk3 жыл бұрын
Great stuff... Question: are you using laravel 8 in this video? In minute 7:40 (line 17) my middleware says 'auth:sanctum' instead of 'auth:api'. What does it change?
@mahdimiad4 жыл бұрын
Thanks for the video, my question is can we add authentication to API ?
@scrypster4 жыл бұрын
You can absolutely add authentication if you’d like. I didn’t want this to turn into a 2-3 hour video so I tried to focus on core concepts for a todo list.
@mahdimiad4 жыл бұрын
@@scrypster Thank you
@IoTRepublic2 жыл бұрын
Excellent! It does a lot!! It would be very good if you separated the front-end app from the back-end app. Anyway, thanks a lot for this!
@mehdicharife23353 жыл бұрын
At 27:08, when I run 'npm run hot', I get the following the error: "C:\Users\AdMiN\Desktop\todolist ode_modules\import-local\index.js:7 const globalDir = pkgDir.sync(path.dirname(filename)); ^ TypeError: pkgDir.sync is not a function." I searched in StackOverflow and other similar forums but found nothing. EDIT: I tried adding .vue() to the webpack.mix.js file as one comment here suggested but it didn't work.
@mouadjanah161811 ай бұрын
did you find the solution please
@mehdicharife233511 ай бұрын
@@mouadjanah1618 Sorry, I don't remember. It's been two years.
@cesarebich3 жыл бұрын
Man, why you've only 2.3k subs ?! Big up for you! ;)
@lekhoi83 жыл бұрын
Excellent video and to the point with best practice, thank you
@jkpz103 жыл бұрын
thanks man, this can help a lot for us still JR Developer.
@tnorthern3 жыл бұрын
Any reason for not capitalizing first letter of components? Isn’t that standard?
@anastasiaalexandrovna8061 Жыл бұрын
Thanks for video. It is clear and not very fast.
@ashimmaharjan80793 жыл бұрын
ERROR in ./resources/js/app.js 4:0-28 Module not found: Error: Can't resolve './vue/app' in 'E:\LEARN\LearnVue esources\js'. WHAT DOES THIS MEAN?? help anyone
@kordrijver90453 жыл бұрын
What worked for me: Thanks to @mei mei Had the same issue, go to your webpack.mix.js file and add .vue() mix.js("resources/js/app.js", "public/js") .vue() .postCss("resources/css/app.css", "public/css", [ ]); And thanks to someone else on the internet Clear the cache php artisan cache:clear
@kordrijver90453 жыл бұрын
But still weird, because Scrypster does not use this in his webpack.mix.js
@SandmanGeek3 жыл бұрын
If anyone is getting error: ERROR in ./resources/js/app.js 4:0-28 Module not found: Error: Can't resolve './vue/app' Just open up webpack.mix.js and add .vue() at the end. Just like this: mix.js('resources/js/app.js', 'public/js').vue() .postCss('resources/css/app.css', 'public/css', [ // ]);
@AngeloMesquita3 жыл бұрын
Great!
@MikeAshelby3 жыл бұрын
I've tried adding that .vue() to the mix.js call, but still no joy in compiling. Any further ideas?
@drksydedj2 жыл бұрын
This was exactly what i was looking for!
@LevelUpJourney-d2d3 жыл бұрын
i have problem in compile Module not found: Error: Can't resolve '/vue/app'
@sallarqureshi27033 жыл бұрын
I am also facing this same issue did u solve it?
@k.jflacko57203 жыл бұрын
this is an amazing tutorial!. Helped me out a lot. Keep it up G.
@FullMe7alJacke73 жыл бұрын
Question, is there any particular reason you declared your routes individually instead of using laravel's "apiresource" Route type?
@fidaeamok4864 Жыл бұрын
Wonderful video keep going i use it with vite it's cool thanks
@maximmaximov47723 жыл бұрын
really unusual seeing such complicated method of coding in laravel
@rabbitpig90163 жыл бұрын
Simple and perfect, great video and big thumb!
@BenjaNetan3 жыл бұрын
Hi, can you help me with this error that is obtained after running npm run dev ERROR in ./resources/js/app.js 4:0-28 Module not found: Error: Can't resolve './vue/app' in 'C:\Users etan\Gitlab\todolist esources\js'
@meimei-cd1je3 жыл бұрын
Had the same issue, go to your webpack.mix.js file and add .vue() mix.js("resources/js/app.js", "public/js") .vue() .postCss("resources/css/app.css", "public/css", [ ]);
@BenjaNetan3 жыл бұрын
@@meimei-cd1je Thank you @mei mei! It has worked
@reckonroy79873 жыл бұрын
@@meimei-cd1je Thank you very much you are life saver. this resolved my problem
@marekjurica90983 жыл бұрын
@@meimei-cd1je Thank you.
@faizaljaleramadhan68423 жыл бұрын
Thanks, you helped me learn web programming a lot!
@voliteon2 жыл бұрын
Great vid, clear, succinct and really helpful. Thank you!!
@JohnSmith-zl8rz3 жыл бұрын
Video start at 3:02 and Vue stuff start at 23:08
@NoOne-qd2yp3 жыл бұрын
Thank you for the video. I scanned through your channel. Will you do a tutorial on a Real-Life system? Like Library System, Rental System etc.? From Login all the way to Reporting?
@scrypster3 жыл бұрын
I’ll see what I can do. I try really hard to keep these videos under an hour. I personally dislike the multi-hour how-to tutorials. There’s just so much to follow and remember I don’t think it’s as beneficial for learning. Maybe I could break it into a series 🤔
@audinmichelcastor39753 жыл бұрын
Very very good!!! i like the way you explained, so good job!
@thiagopetherson12683 жыл бұрын
I'm from Brazil. Thank you very much!
@chidiebere3 жыл бұрын
Thanks for the tutorial...How do you use states instead of emit ? If you can explain, thanks
@iscjiha3 жыл бұрын
Thanks, do you have this in a git repository?
@scrypster3 жыл бұрын
I don’t typically post the source code into git repositories. Sorry. Maybe I’ll start 🤔
@sergeyk72853 жыл бұрын
@@scrypster In vain, without the source code, it's all useless, especially since there are a lot of similar manuals with source codes
@snovart3 жыл бұрын
Thank you for this awesome tutorial! :)
@JavedBaloch7863 жыл бұрын
@Scrypster your way of teaching is amazing, can you make a video/project on AntDesign in Vue.
@scrypster3 жыл бұрын
Thank you! I’m actually not familiar with AntDesign, but I will definitely check it out!
@JavedBaloch7863 жыл бұрын
@@scrypster I saw enterprise companies using AntDesign with React and Vue. If would be great if you make something on it.
@yvessomda45473 жыл бұрын
Yes your tuto is really well explained, thank you.
@reactify47193 жыл бұрын
hey, can i use React with Laravel? or it is suggested to use Vue ? . thanks for feedback.
@charlesloehle79982 жыл бұрын
Very clear and concise! Thank you
@tafappfabricadeaplicativos44703 жыл бұрын
Hi Scrypster, First of all congratulations for all your videos , and thanks a lot. i would like to know why in my script i has to do this : axios.put('api/item/' +this.item.id,{ item:this.item notice if i not put (this.item) i get the error: ''ReferenceError: item is not defined " but you do not needed do that, you just ... axios.put('api/item/' +item.id,{ item:item ... why?
@scrypster3 жыл бұрын
Good question! I would do it your way! I may have just gotten lucky. When I record these videos I typically do it all in one session and then edit out mistakes or trim things down. It’s possible I edited the video incorrectly which is why it appears not using “this” is working. But the way you are describing sounds like the correct way. Without rewatching the whole video to find out specifically it’s hard to say. If you can provide the time stamp in the video I can take a look at the code specifically.
@tafappfabricadeaplicativos44703 жыл бұрын
that is ok, thanks for answer me, the best luck for you.You are the best !
@tigere013 жыл бұрын
This is an excellent tutorial. Thank you.
@M_BN2873 жыл бұрын
I learnt things from this, Thank you.
@nishanmazumder64033 жыл бұрын
love u bro. please make a complete e-commerce site...
@quantumcd10453 жыл бұрын
Thanks for the content, a great tutorial so far.
@reckonroy79873 жыл бұрын
Great man, this helped a lot
@victoriacassolo2 жыл бұрын
Nice video! Congrats
@rjmacalino31862 жыл бұрын
stuck at installing vue? try this. >composer require laravel/ui >php artisan ui vue >npm i vue-loader >npm update vue-loader >npm install >npm run dev
@victorparedes68873 жыл бұрын
I feel like I'm pulling my hair out here. I'm using Vue3, so I'm not sure if that's the reason, but I"m at 1:00:15 and my list is throwing this big error: "[Vue warn]: Extraneous non-emits event listeners (reloadlist) were passed to component but could not be automatically inherited because component renders fragment or text root nodes. If the listener is intended to be a component custom event listener only, declare it using the "emits" option." Can you let me know if It's just because of the version or if I should keep looking around for some kind of typo. I've gone over it close to 50 times character by character and I feel like I'm going crazy. Thanks for putting your time into this. It's very challenging, to be sure.
@villianfadhilahareksa55533 жыл бұрын
OMG!! Dude you are a life saver!!
@donmikele073 жыл бұрын
php artisan make:controller ItemController --api -m Item - THIS CREATE API RESCOURCE CONTROLLER AND IMPLEMENTS ROUTE MODEL BINDING. So this spares some time.
@nicanorhuamanlima14723 жыл бұрын
php artisan make:model Item -mr --api
@buiquocanh36862 жыл бұрын
Thank u so muck, for shared your knowledge 😍
@mexantos2 жыл бұрын
how about in the index items, if our data too many of them, i mean if we want to show them as pagination and make route with url segment also in the url segment for filtering and and sorting or tagging and so on and on.