If you're looking to level up your Laravel skills? My new course "Mastering Laravel 10 Query Builder, Eloquent & Relationships" is the perfect opportunity: www.udemy.com/course/mastering-laravel-10-query-builder-eloquent-relationships/?referralCode=C784C3DB5B8925207FCB
The images aren’t showing up on mine, there’s something wrong with the image path, what format should it be when putting the path in the imag tag ‘src=img path’??
Hey Dary the coder ! i watched this tutorial many times and i managed to nail a laravel developer position and now i am mastering the art of Laravel everyday , so i want to say thanks to you for opening my door by sharing this video tutorial , you are a Laravel Guru , i like how you know the tailwind css for spacing and sizes by default , wow .
I'll be diving deeper into larvae for a project embedding python for Stock price action predictions. Hope you can show me some pointers once on production. Thank you again.
Darry am just 18 minutes into the video tutotial and I came back to subscribe this channel. My official laravel channel. The video is just too awesome. Thanks for putting it together
Thank you Dary. I watched your previous tutorial on laravel as well as this tutorial. Now, i feel like i have learned all the basics of laravel. Really appreciate it.
44:12 That's the mistake that many Laravel developers make, if you want to get a collection of posts with user relationship, you need to preload relationship by specifying it like that: `Post::with('user')`, otherwise you will be querying user for each post. For example you have 50 posts, now you will make 50 requests to database to get user for each post.
Can you please instruct me on how to add multiple image upload. How would you do it, and how would you specifice a certain position for a certain uploaded image in the body of the post. On the side note, love your videos, keep it up, wish you all the luck.
Hi thanks for the video. Just a friendly tip... anchor is pronounced ain (same as the sound in pain but no p) than cer with a HARD C like the C in Cat... so ain - Cer .... and array != air-ray ... array == a (ah like in a-pple) then ray... ah-ray
Suggestion: keep controllers in singular case. PageController and PostController would be the right naming convention as to PagesController and PostsController
Plural. Although the official laravel docs use singular for controller names, it is very well known that most of prominent laravel developers such as Jeffrey Way, Adam Wathan, Chris Fidao and many others uses plural for controller names that it sort of become the actual standard.
I know that this is outdated, but when you create slug for the post, can't you just use the Str helper from Laravel? Why do you need to use external services while you can just use Illuminate\Support\Str and do something like: Str::lower(Str::slug($request->title))
Good one👍. I am little confuse from the commands used for this project setup. Is there any video where you have explain about such commands or any other source? Thanks
Those are command line interface commands which you will learn once you start using frameworks! Haven't really covered them in a separate video, just in my Laravel courses :)
I don't know what happened to the sound of the video, but your voice is much cleaner and balanced in here than in your Complete Laravel 8 Course Tutorial video. Your mic is the same right? Good job!
Hello! what to do if create/edit/delete buttons are on a separate page? for instace, view is only for users and create/edit/delete is for admins. Great tutorial by the way!
Hi Dary, Thank you for the video. Since we are using the title to create the slug & the slug is used to get the title (for the show & edit page), how does one make the slug unique if you use the same title for different post also is it not advisable to use the id instead
This was excellent tutorial and great introduction to make my own similar CRUD website for personal needs. Thank you very much, Dary! Do you plan to make exciting projects after completing laravel 9?
You really have a good way to make tutorials. Hope you are going to show us how to deploy a complete Laravel project with authentication. Keep on uploading good content on Laravel. I will also like to know what frontend javascript framework are you using as a developer. Thank you .
Thank you, very kind from you to take time and write this lovely comment. I’m actually working on it right now! :) It really depends on what I want to make. I even use vanilla JS when I need to do basic stuff. But I use react or vue every once in a while as well.
Hello, thanks for your tutorial. I've watched full video and made a simple blog like yours with confirm delete on delete, added myself, and delete image added myself. I wish, you use bootstrap framework for UI instead of tailwind because for a simple UI block in Tailwind need lot of class but in bootstrap does not need that much and UI will be better too. While following your tutorial, I take much more longer time, I think, due to tailwind. It would be faster, if it has used bootstrap instead. I want to see Fullstack Laravel, Vue.js, bootstrap RESTful Api at advance level. Thanks in advance level.
Well my main goal is to reach Laravel and not bootstrap or tailwind. So you can basically adjust the Laravel code with a bootstrap framework! I’m adding styling to make it a bit better looking.
Thanks for the AMAZING TUTORIAL ,I really enjoy your style of teaching :-), and could you tell me the vscode laravel, tailwind and folder extensions your using, please thanks a lot
Hello, my image does not load on the home page. The text "Want to become a developer" and Read More are there but the image doesnt load. Please help. I've checked the name of the background image and all.
thank you for this tutorial i want ask you on 38:25 when you write the command Schema the box appear have the command and the description for the command how to enable this feature in vscode?
I created a new css file in public->css->style.css and then I loaded it app.blade.php as I've put it in a classic way without that mix crap that I don't now how it works or why is needed...
I am a big fan of your tutorials. By the way, whenever I reload pages, loading time of app.css and app.js take too long. is there any way to solve this problem?
I like this video (it's great) and need a blog, but I am at PHP 7.4. I checked the list of backward incompatibilities that should be considered when migrating from 7.4 to 8.0 of PHP. I will try to migrate and come back later.
Sir I am big fan of your channel..In this project, I do as exactly as you did. but my background-image url() does not work.Is it because of my version?
This tutorial is just amazing. Thanks for putting so much effort into it. I got an issue while edit my edit.blade.php file. The error exeptions says : Trying to get property 'slug' of non-object (View: C:\wamp64\www\firstproject esources\views\blog\edit.blade.php). Can you help me out please ?
Yes you definitely can. But think about it right, have you ever seen a blog where they show the id? In real life examples (look online) you don't, it's always a slug. A id is always easy to showcase how it works.
hello, i want to ask, i have error when i want to create an article, the message error is : SQLSTATE[HY000]: General error: 1364 Field 'user_id' doesn't have a default value are you have a solution for this error, what should i do? thank you
This error message suggests that there is a missing value for the "user_id" field in a database table, and that the field does not have a default value set. In Laravel, this can be resolved by either adding a default value to the field or specifying a value when inserting data into the table.
That was an epic explanation! Epic tutorial! Just EPIC! I have a question! Could we do the slug operation with a mutator instead of installing an extension for this? Also could u do auth->user()->posts->create[] instead so u would u get user_id automatically and wouldnt add it in fillable? I am learing laravel and i think i read this on documentation Ty in advance
Well think about it. If you want to transform the title to a slug, you basically needs two PHP methods. You got the Strtolower, to have lowercase only, and you have a string replace, since you want to replace a space with a dash.
If you're looking to level up your Laravel skills? My new course "Mastering Laravel 10 Query Builder, Eloquent & Relationships" is the perfect opportunity: www.udemy.com/course/mastering-laravel-10-query-builder-eloquent-relationships/?referralCode=C784C3DB5B8925207FCB
The images aren’t showing up on mine, there’s something wrong with the image path, what format should it be when putting the path in the imag tag ‘src=img path’??
Hey Dary the coder ! i watched this tutorial many times and i managed to nail a laravel developer position and now i am mastering the art of Laravel everyday , so i want to say thanks to you for opening my door by sharing this video tutorial , you are a Laravel Guru , i like how you know the tailwind css for spacing and sizes by default , wow .
Hi Ronnie. Thank you so much for your encouraging words man, appreciate it :D
Congrats! ❤️
Was ready to give up on Laravel before I found Dary’s tutorials. This dude is a natural.
Never give up man, you are putting so much effort in to learn Laravel, good job!
"INCREDIBLE" this tutorial is a gem, thank you Daryl, simply the best php/Laravel content in RUclips.
Appreciate it dude! Hope you are satisfied with it!
I'll be diving deeper into larvae for a project embedding python for Stock price action predictions.
Hope you can show me some pointers once on production.
Thank you again.
I agree. I've been watching a lot of tutorials to try and learn this stuff, and Dary is by far the best.
Simply the best Laravel php on the web training, even better then udemy.
Whoa, best comment I've seen today
Darry am just 18 minutes into the video tutotial and I came back to subscribe this channel. My official laravel channel. The video is just too awesome. Thanks for putting it together
Wow, that's awesome to read Allan. Let me know if you finished it :)
I been rusty in Laravel and this tutorial is a good start to brush up. Keep it up man!
Lovely Rafael, I did my best to help you out! :)
Thank you Dary. I watched your previous tutorial on laravel as well as this tutorial. Now, i feel like i have learned all the basics of laravel. Really appreciate it.
Great to hear!
Thank you so much. I tried many courses and this was the best. I am just starting out in Laravel and wanted to learn Laravel 8.
You're very welcome!
underrated! these videos need spreading around
Thanks buddy, appreciate it. Hopefully we’ll get there! :)
You're the best teacher I've ever come across in my life. perfect Dary
Wow I feel gassed. Thank you so much buddy :)
hey dary the coder , u are angel i love what y r doing keep never surrender
Thank you so much, will never do
Thanks bro for the video. This video really helped me to pass my assignment, also now I feel more comfortable using Laravel as my framework.
Glad it helped!
I want you to know that you are doing great work. You literally saved me! Without this tutorial I would have failed my exam. Big ups brudda!
Wow that's why I do it man, glad to hear that :)
Still i looking this lecture. Appreciate again!
Love to hear that. If you do understand CRUD with your eyes closed your pretty much set to create a lot of apps!
Thank you for sharing your knowledge! It is so helpful for noobies like me!
Haha! No noobs out there man, we are all in a learning process
44:12 That's the mistake that many Laravel developers make, if you want to get a collection of posts with user relationship, you need to preload relationship by specifying it like that: `Post::with('user')`, otherwise you will be querying user for each post. For example you have 50 posts, now you will make 50 requests to database to get user for each post.
Thanks for sharing it with me :D
@@codewithdary so, how the update using `Post::with('user')` looks like?
@@rafaelgruia8734 you can use it in model:
/**
* The relationships that should always be loaded.
*
* @var array
*/
protected $with = ['user'];
It was so much fun creating this thing😊
Right? I loved making it as well!
Awesome tutorial for beginner. Thanks a lot for your effort. Your teaching style is amazing. I've finished the project and enjoyed a lot.
Great to hear that Tanvir, thank you :).
It should be a separate video in which you solve the mix problem. It was lifesaving.
Wait... That's a great idea LOL
Hey Dary
Big fan from India
Very excited for laravel and react ecommerce backend+frontend
Thank you so much. That’s not planned for the first quarter of the year.
Can you please instruct me on how to add multiple image upload. How would you do it, and how would you specifice a certain position for a certain uploaded image in the body of the post. On the side note, love your videos, keep it up, wish you all the luck.
I usually prefer to use a table called post_image where you store the post_id and image_url
Woow this is a really great tutorial. Thanks a lot.
Greetings from Bosnia 👋👋
You are welcome!
Simply Amazing. I need to say thankyou for this video.
You're very welcome Rehman! :)
Hi thanks for the video. Just a friendly tip... anchor is pronounced ain (same as the sound in pain but no p) than cer with a HARD C like the C in Cat... so ain - Cer .... and array != air-ray ... array == a (ah like in a-pple) then ray... ah-ray
Appreciate it Brendan! I’m working on the way I pronounce works! May I ask where your from?
@@codewithdary Yep no problem. Generally your pronounciation is good so I wouldn't worry about it too much! from Canada.
Thank you man, always room for improvement right? 💪🏼😄
Best video for beginner. Thanks a lot!
Glad it was helpful!
This course is exactly what I've been looking for! Thanks Dary!
You're so welcome!
Brazil watching. Very amazing your videos.
Love from the Netherlands!
Simply, the BEST Laravel tutorial
Wow, thanks buddy!
Thanks for your videos of Laravel! They are very useful. I follow your steps except Tailwind (I use bootstrap).
Bootstrap is awesome to use as well! Thanks for watching
Thank you very much for your style explanation wonderful and simplify things as much as possible And we hope for more courses laravel
Definitely the topic I'll be focusing on. Thank you :)
Another great video from Dary ! thanks a lot !
Glad you enjoyed it Ron!
keep it up bro . you are helping too much people around the world you are a hero :)
Thanks, Shadi. Responses like this are the reason why I love doing it man.
completely in love with this tutorial
Feels good to hear that Rajat!
Thanks a lot Dary, it's very well and clearly explained!
Love to hear that! :)
Suggestion: keep controllers in singular case. PageController and PostController would be the right naming convention as to PagesController and PostsController
Plural. Although the official laravel docs use singular for controller names, it is very well known that most of prominent laravel developers such as Jeffrey Way, Adam Wathan, Chris Fidao and many others uses plural for controller names that it sort of become the actual standard.
I know that this is outdated, but when you create slug for the post, can't you just use the Str helper from Laravel? Why do you need to use external services while you can just use Illuminate\Support\Str and do something like:
Str::lower(Str::slug($request->title))
I don't think it was available back then. I've been using the Str facade nowadays though!
You deserve a credit, that helped me a lot 👍
Glad it helped!
Good one👍. I am little confuse from the commands used for this project setup. Is there any video where you have explain about such commands or any other source?
Thanks
Those are command line interface commands which you will learn once you start using frameworks! Haven't really covered them in a separate video, just in my Laravel courses :)
Great content! You are doing a great job, Dary.
Thanks so much!
Thanks for your videos of Laravel!
My pleasure!
This is exactly what i want. Thank you again Dary. I respect!
Thank you buddy!! :)
Ty for this .. your very clear and easy to follow. I did find another solution for the mix issue at the moment by using yarn .. thoughts??
Can you share the solution? :D
thanks for the tutorial, it's very helpful
You're welcome!!
Hi man, you doing a great job here. Do you have in plan some tutorial about creating admin panel in Laravel?
Not anytime soon :(
Amazing video! Is really interesting to watch
Thank you so much! :)
This helps so much since I’m learning Laravel at the moment
Hey Bradleigh I’m glad I could help! :).
Dary we love u ur course is just the best i have ever came across. plz can u help build real life project with Resfull API driven
I just finished a crash course but I’ll definitely make a project in the future!
MAN, i LEARNT A LOT FROM YOU, THANKS!!
Glad to hear it buddy!
Thank you very much Dary!
You are so welcome!
Awesome Tutorial. really loved it. could you please make a video on how to add post category to the blog?
Sounds interesting. Might do it in the future buddy!
I don't know what happened to the sound of the video, but your voice is much cleaner and balanced in here than in your Complete Laravel 8 Course Tutorial video. Your mic is the same right? Good job!
I switched from software towards the end of the complete tutorial. Thanks man, appreciate it!
Mic is exactly the same btw!
Pro Max content....thanx buddy
My pleasure :)
The next video wants a multi-authentication with roles, please make this video. I am waiting for this video.
Yes, a tutorial with multiple roles like admin, teacher and student. Would be great
Might be do it soon then!
Hello! what to do if create/edit/delete buttons are on a separate page? for instace, view is only for users and create/edit/delete is for admins. Great tutorial by the way!
Well then you need to think about how you’re going to pass in the id of a specific post to another page! :)
Subscribed, great content , a laravel video that actually shows some backend to frontend content request
Love to hear that. Welcome to my channel :D
Amazing tutorial… is it advisable to use a package to manage the slug or use the STR::slug helper class instead?
You can use that too, which maybe is even better. I just like to mix things up! Haha :)
Thank you very much ,perfect job.
Thank you too!
Hi Dary, Thank you for the video. Since we are using the title to create the slug & the slug is used to get the title (for the show & edit page), how does one make the slug unique if you use the same title for different post
also is it not advisable to use the id instead
Thnaks. Nice video tutorial
Thank you for watching Azad!
This was excellent tutorial and great introduction to make my own similar CRUD website for personal needs. Thank you very much, Dary! Do you plan to make exciting projects after completing laravel 9?
Not any planned but definitely will! :)
show man, im from brazil i would like to say thanks for this tutorial
Thanks for watching Josimar!! :)
You really have a good way to make tutorials. Hope you are going to show us how to deploy a complete Laravel project with authentication. Keep on uploading good content on Laravel.
I will also like to know what frontend javascript framework are you using as a developer. Thank you .
Thank you, very kind from you to take time and write this lovely comment.
I’m actually working on it right now! :)
It really depends on what I want to make. I even use vanilla JS when I need to do basic stuff. But I use react or vue every once in a while as well.
Thanks a million for this project sir , it has helped me a lot
You are most welcome Tem!
Awesome video. It was a big help.
Glad it helped!
Hello, thanks for your tutorial. I've watched full video and made a simple blog like yours with confirm delete on delete, added myself, and delete image added myself. I wish, you use bootstrap framework for UI instead of tailwind because for a simple UI block in Tailwind need lot of class but in bootstrap does not need that much and UI will be better too.
While following your tutorial, I take much more longer time, I think, due to tailwind. It would be faster, if it has used bootstrap instead.
I want to see Fullstack Laravel, Vue.js, bootstrap RESTful Api at advance level. Thanks in advance level.
Well my main goal is to reach Laravel and not bootstrap or tailwind. So you can basically adjust the Laravel code with a bootstrap framework! I’m adding styling to make it a bit better looking.
Thank you so much for this tutorial, it helped me alot.
You're welcome!
This tutorial is awesome! Thank you man
Glad you liked it!!
You are the Best
No, you are ;)
Thanks for the AMAZING TUTORIAL ,I really enjoy your style of teaching :-), and could you tell me the vscode laravel, tailwind and folder extensions your using, please thanks a lot
Do you mean the “Vs code great icons” extension? Anyways thank you for your kind words!
Such a helpful tutorial Dary! I really enjoy your style of teaching :-)
Ah thank you Caroline! Means a lot to me!
Why didn't I find your channel sooner😭 now I get B+ in my web developing study if I just find your channel sooner I might get an A😭
Haha thank you so much. I hope I get you a A+ now ;)
Hello, my image does not load on the home page. The text "Want to become a developer" and Read More are there but the image doesnt load. Please help. I've checked the name of the background image and all.
You can add the image in the style attribute of an element as well
@@codewithdary how?
thank you for this tutorial i want ask you on 38:25 when you write the command Schema the box appear have the command and the description for the command how to enable this feature in vscode?
That's because I've got PHP intelephense installed from the marketplace.
is this the correct way to delete or unlink including the image?
unlink($post->image_path) ; ?
I prefer to use the Facade like this: File::delete($filename);
@@codewithdary wow perfect . Another idea Thank you 🙏
Great tutorials that i was really looking for.
Awesome!!
Appreciate your time and effort Dary. My background image isn't appearing. Any help would be appreciated.
I created a new css file in public->css->style.css and then I loaded it app.blade.php as I've put it in a classic way without that mix crap that I don't now how it works or why is needed...
Carol's solution works too!
@@AndrewComputerGK Thank you! Problem is sovled!
I am a big fan of your tutorials. By the way, whenever I reload pages, loading time of app.css and app.js take too long. is there any way to solve this problem?
Maybe you can try to clear the cache of your view and route:
php artisan view:clear
php artisan route:cache
nice video, you could cover authentication
Coming up next :D
nice tutorial brah ❤️
Thanks 🔥
Great job bro.. this is my first watch and made project. Thanks, u from my heart.
Awesome to hear that. I need to thank you for watching ;)
okay, I will try again....anyway, thank you very much....
Always welcome Stephen!
I like this video (it's great) and need a blog, but I am at PHP 7.4. I checked the list of backward incompatibilities that should be considered when migrating from 7.4 to 8.0 of PHP. I will try to migrate and come back later.
How did it go?
@@codewithdary I found that PHP 7.4 came with Ubuntu 20.04. I also saw several people found moving to PHP 8 difficult. I will move ahead with 7.4.
Awesome Tutorial as always. Great Job!!!!!
Thank you! Cheers!
It is really helpful, thanks a lot 🙏
Most welcome!
Thank you sir!
You are welcome!
whats the difference between the database u're using here vs using dbngin, mamp or anything else
Great video...
Just one note.. you keep using text-s and text-l ... instead of text-sm and text-lg.
Greetings from Mexico 🇲🇽
Hero! Thank you man :)
Sir I am big fan of your channel..In this project, I do as exactly as you did. but my background-image url() does not work.Is it because of my version?
Nope. Heard that before. You can add the background image as a style attribute, output will be the same.
highly underrated video
Thanks Naveed! :)
Thank you very much! This is incredible! Keep it up
Glad you like it!
The greatest of all times!
Thank you a lot Marcos!
Thank you very much sir
Most welcome!
Awesome! Thanks for this tutorial!
No problem Julio!
This tutorial is just amazing. Thanks for putting so much effort into it. I got an issue while edit my edit.blade.php file. The error exeptions says : Trying to get property 'slug' of non-object (View: C:\wamp64\www\firstproject
esources\views\blog\edit.blade.php). Can you help me out please ?
Can you show me the line where you add ‘slug’ in your view?
@@codewithdary Here is the line : action="/blog/{{ $post->slug }}"
Hey Dary, very nice tutorial just finished it. I was wondering why are we using slugs, can't we just access posts through ids?
Yes you definitely can. But think about it right, have you ever seen a blog where they show the id? In real life examples (look online) you don't, it's always a slug. A id is always easy to showcase how it works.
Also, thank you so much :)
@@codewithdary oh yeah that makes sense. Thank you so much man you’re great!!!
thank you very much for the lesson! I got a problem at 44:31. I can't see data from the database on the page, what could be the problem?
What else are you getting?
@@codewithdary sorry my mistake, I made a syntax error. Thank you very much for the lesson and for the answer, your lessons helped me a lot
Super awesome 😎!!!!
Thanks!!!
hello, i want to ask, i have error when i want to create an article, the message error is : SQLSTATE[HY000]: General error: 1364 Field 'user_id' doesn't have a default value
are you have a solution for this error, what should i do? thank you
This error message suggests that there is a missing value for the "user_id" field in a database table, and that the field does not have a default value set. In Laravel, this can be resolved by either adding a default value to the field or specifying a value when inserting data into the table.
That was an epic explanation! Epic tutorial! Just EPIC! I have a question! Could we do the slug operation with a mutator instead of installing an extension for this?
Also could u do auth->user()->posts->create[] instead so u would u get user_id automatically and wouldnt add it in fillable? I am learing laravel and i think i read this on documentation Ty in advance
Well think about it. If you want to transform the title to a slug, you basically needs two PHP methods. You got the Strtolower, to have lowercase only, and you have a string replace, since you want to replace a space with a dash.
@@codewithdary exactly! Ty sir!