No video

Controllers In Laravel | Learn Laravel From Scratch | Laravel For Beginners

  Рет қаралды 28,008

Code With Dary

Code With Dary

Күн бұрын

This video will show you how you could create and use Controllers in Laravel - Learn one of the most popular PHP frameworks for its advanced features, templating engine, fast commands and security.
📚 New Udemy Course
If you're looking to level up your Laravel skills, my new course "Udemy Migirations, Seeders, Factories, Query Builder, Eloquent & Relationships" is the perfect opportunity. Learn the essential tools and techniques for building robust and scalable web applications with Laravel: www.udemy.com/...
📲 Let’s plan a meeting
Plan a (paid) 1-hour meeting on Calendly to do portfolio reviews, code reviews resume reviews or a coaching session for Laravel. Please read the description before booking: calendly.com/c...
💌 Newsletter
Sign up for my free weekly email newsletter: www.newsletter...
🔥 Resources
- PHP Hosting (10% DISCOUNT): www.hostinger....
- TikTok: / codewithdary
- Instagram: / codewithdary
- Twitter: / codewithdary
- Blog: blog.codewithd...
- Newsletter: newsletter.cod...
- Patreon: www.patreon.co...
- GitHub: github.com/cod...
Want to learn more?
- Courses: / @codewithdary
#laravel #laravel8 #php #controllers

Пікірлер: 71
@codewithdary
@codewithdary 2 жыл бұрын
LETS CONNECT THROUGH INSTAGRAM. www.Instagram.com/codewithdary
@davidfranklin63
@davidfranklin63 3 жыл бұрын
Having gone through PHP, OOP, MVC and now Laravel, I am soooo pleased to find your channel - it is excellent and very much needed! There's so much content about Laravel but most of it is years' old and totally out of date in methods, syntax and structure. Thanks for the excellent tutorials so far - please keep up the good work!
@OnlyJavascript
@OnlyJavascript 3 жыл бұрын
He is really awesome man.
@codewithdary
@codewithdary 3 жыл бұрын
Can't thank you enough David! Keep me updated if a certain Laravel topic of missing :)
@codewithdary
@codewithdary 3 жыл бұрын
My man! :)
@oloja__
@oloja__ Жыл бұрын
Couldn’t be explained better👏
@codewithdary
@codewithdary Жыл бұрын
Thank you so much
@adriantolero6687
@adriantolero6687 2 жыл бұрын
I'm so lucky that I finally found a tutorial that makes it easier to understand Laravel 8. Thank you so much sir Dary! Kudos! :)
@codewithdary
@codewithdary 2 жыл бұрын
Love the positivity Adrian, thank you!
@ronarmengol1677
@ronarmengol1677 Жыл бұрын
You can return multiple with properties: return view('products.index) ->with('title', $title) ->with('description', $description);
@codewithdary
@codewithdary Жыл бұрын
Definitely! Would probably prefer returning an array over multiple with methods!
@user-ph2it6ou5m
@user-ph2it6ou5m 2 жыл бұрын
Great explanation, even though i don't have any fundamentals in php nor laravel, very easy to catch up! Thank you so much!!!
@codewithdary
@codewithdary 2 жыл бұрын
Wow that is incredible to hear :)
@expertswrite
@expertswrite 3 жыл бұрын
Thanks for the videos. I really like how you show multiple ways of accomplishing the task.
@codewithdary
@codewithdary 3 жыл бұрын
Thanks Man. I’ll do it because whenever you google issues, you might see a solution in a different way and I don’t want the viewers to think that there’s only one way to accomplish something
@Jack.m7
@Jack.m7 3 жыл бұрын
All right guys! Love your intro. Learning a lot from your videos. 🙏
@OnlyJavascript
@OnlyJavascript 3 жыл бұрын
me too
@codewithdary
@codewithdary 3 жыл бұрын
Awesome! Thank you!
@ronrontall6370
@ronrontall6370 3 жыл бұрын
The best videos for Laravel that I've seen. Really good to find your channel!
@alial-nuaimi2695
@alial-nuaimi2695 Жыл бұрын
DUDE WHAT THE HELL ? ur SO genuis and I'm happy to watch ur video !. U make my DAY
@codewithdary
@codewithdary Жыл бұрын
Wow, thanks!
@snelledre
@snelledre 3 жыл бұрын
The best channel so far i have seen. Keep up the good work.
@codewithdary
@codewithdary 3 жыл бұрын
Whoa that’s awesome to hear Andre! Thank you.
@deathcuree
@deathcuree Жыл бұрын
finally found someone whom i can understand
@codewithdary
@codewithdary Жыл бұрын
Nice, happy to help :)
@deathcuree
@deathcuree Жыл бұрын
@@codewithdary yees im actually making projects but not on my own, i always follow youtube videos so i figured out that i have to really understand the basic logics in order to build a system, and luckily i found your youtube channel! thank you so much, i love how you explain it, straightforward with easy vocabularies. that's why it can be understood, i like this better than at my school hahaha, thank you!
@AmsterFun
@AmsterFun 3 жыл бұрын
Hi Dary, thanks for your course! Tip/qq: when hitting a laravel error-message page you might use that event to show how to interpret error-messages. That is a useful part of coding as well.
@codewithdary
@codewithdary 3 жыл бұрын
Thanks for sharing!
@sarmad54
@sarmad54 2 жыл бұрын
I enjoy these videos. I have one suggestion for you why don't you use the --resourse parameter to create all of A CRUD requirement. Laravel resource routing assigns the typical create, read, update, and delete ("CRUD") routes to a controller with a single line of code away from the headache of missing of or forgetting a statement
@codewithdary
@codewithdary 2 жыл бұрын
It's a video series, I did focused on the resource controllers later on :)
@sirbangalot569
@sirbangalot569 3 жыл бұрын
Dude you are a life saver.
@codewithdary
@codewithdary 3 жыл бұрын
Thank you man!
@nomissimo
@nomissimo 2 жыл бұрын
Nice tutorial. Only thing is: I'm pretty sure you don't have Emmet but Laravel Blade Snippets. I didn't watch the videos before so I was confused as Emmet didn't work.
@codewithdary
@codewithdary 2 жыл бұрын
I've got both because VS code has Emmet installed b default :)
@lethaldaku1
@lethaldaku1 3 жыл бұрын
liked your video ~ from Pakistan
@codewithdary
@codewithdary 3 жыл бұрын
Thank you Sebastian! Love from the Netherlands.
@OnlyJavascript
@OnlyJavascript 3 жыл бұрын
vanakkam guru ji 🙏.. my only mentor for Laravel.
@codewithdary
@codewithdary 3 жыл бұрын
Awesome! :D :D
@patrickmaine7778
@patrickmaine7778 3 жыл бұрын
you are a blessing
@codewithdary
@codewithdary 3 жыл бұрын
No, you are a blessing for watching and commenting so I can start my day the right way! Thanks :)
@sergeisurin2963
@sergeisurin2963 3 жыл бұрын
Thank you for the tutorials, very helpful
@codewithdary
@codewithdary 3 жыл бұрын
You're very welcome!
@zahrarashtchi6008
@zahrarashtchi6008 2 жыл бұрын
Thank you for your great tutorial, very helpful.
@codewithdary
@codewithdary 2 жыл бұрын
You are welcome!
@variouscontent8032
@variouscontent8032 2 жыл бұрын
Thank you
@codewithdary
@codewithdary 2 жыл бұрын
Thanks for watching :)
@muzika5001
@muzika5001 2 жыл бұрын
The old method before Laravel 8 routing is working with Laravel version 8.6 :D
@codewithdary
@codewithdary 2 жыл бұрын
Don’t pay too much attention to the version numbers. They add a new version number is a new patch comes out, which can be very small. Laravel 7 to 9 on the other hand is a big difference.
@samyfarahat8672
@samyfarahat8672 3 жыл бұрын
I really like your channel, keep going! But I advice you to use to terminal of vscode I'ts a lot less effort.
@codewithdary
@codewithdary 3 жыл бұрын
Thanks for the tip! I was kind of in-between. Didn't knew which one was easier to use. Maybe for MySQL, it's better to use the terminal. But anyways, lots of thanks for your comment.
@Akram-se3nc
@Akram-se3nc 2 жыл бұрын
Actually we can also pass multiple variables using ->with to blade file like Ex: ->with('name',$name)->with('age',$age);
@codewithdary
@codewithdary 2 жыл бұрын
Definitely true!
@wmafendi
@wmafendi Жыл бұрын
awesome
@codewithdary
@codewithdary Жыл бұрын
Thank you! ❤️
@tanweisiang494
@tanweisiang494 3 жыл бұрын
Hi Dary, How do we use namespace in the Laravel 8 routing? For example I want to make my api with versioning. Do I have a better way to write instead of "use App\Http\Controllers\V1\ProductController", "use App\Http\Controllers\V2\ProductController"...
@codewithdary
@codewithdary 3 жыл бұрын
No :( you got to pull it in the use statement.
@ganeshbabu3318
@ganeshbabu3318 2 жыл бұрын
hi dary! your explanation in awesome. but I go this error ErrorException Undefined variable: data (View: D:\Laravel\leckho esources\views\addons\index.blade.php) $data is undefined Make the variable optional in the blade template. Replace {{ $data }} with {{ $data ?? '' }} how to rectify the issue please let u me know
@codewithdary
@codewithdary 2 жыл бұрын
Are you passing $data correctly from the controller to the view It's not recognising $data in your index.blade.php file! :)
@morgane1762
@morgane1762 3 жыл бұрын
Is there a playlist?
@codewithdary
@codewithdary 3 жыл бұрын
Yessir! kzbin.info/aero/PLFHz2csJcgk_3VJwzVoeyMuC1rdBcfiLv
@NikhilBokadeNik_1D
@NikhilBokadeNik_1D 3 жыл бұрын
12:30 404 NOT FOUND error is displaying. What should I do ?
@codewithdary
@codewithdary 3 жыл бұрын
Difficult to help without code.
@ahmedsunil3235
@ahmedsunil3235 3 жыл бұрын
total how many videos?
@OnlyJavascript
@OnlyJavascript 3 жыл бұрын
totally 9 videos so far.
@ahmedsunil3235
@ahmedsunil3235 3 жыл бұрын
@@OnlyJavascript i meant total, not current :)
@OnlyJavascript
@OnlyJavascript 3 жыл бұрын
@@ahmedsunil3235 it depends
@codewithdary
@codewithdary 3 жыл бұрын
I have no idea, I'll try to cover everything, I'm checking after every section how many videos I want to add.
@sinistermagus8962
@sinistermagus8962 2 жыл бұрын
What does (Request $request) do and why? public function store(Request $request) { 2 $this->validate($request, [ 3 'name' => 'required|string', 4 'body' => 'required|string', 5 'publish_at' => 'required|date_format:Y-m-d H:i:s' 6 ]);
@codewithdary
@codewithdary 2 жыл бұрын
It holds the request that has been submitted from a form :)
@sanetro4563
@sanetro4563 2 жыл бұрын
Hello I had problem but I solved it. When I want to route to the index.blade.php file and then Laravent didn't find this. "InvalidArgumentException View [index.blade] not found. domingo.bingo/products". I modified view('index.blade') to view('index') in file ProductsController.php stackoverflow.com/questions/17913929/laravel-view-not-found-exception For people who will or have had the same problem as me. I would be happy if someone could explain why this is happening
@codewithdary
@codewithdary 2 жыл бұрын
The view method finds the file based on the name without the file extension. In your case, it will convert it to index.blade.blade.php.
Jumping off balcony pulls her tooth! 🫣🦷
01:00
Justin Flom
Рет қаралды 38 МЛН
The Giant sleep in the town 👹🛏️🏡
00:24
Construction Site
Рет қаралды 19 МЛН
If Barbie came to life! 💝
00:37
Meow-some! Reacts
Рет қаралды 66 МЛН
Using single action controllers in Laravel
5:43
Andrew Schmelyun
Рет қаралды 9 М.
Model Factories | Laravel For Beginners | Learn Laravel
8:03
Code With Dary
Рет қаралды 26 М.
Introduction To Eloquent | Laravel For Beginners | Learn Laravel
45:20
Laravel Tutorial For Beginners (Simple User CRUD App)
1:16:13
LearnWebCode
Рет қаралды 177 М.
PHP in 100 Seconds
2:21
Fireship
Рет қаралды 1,3 МЛН
Jumping off balcony pulls her tooth! 🫣🦷
01:00
Justin Flom
Рет қаралды 38 МЛН