How to Build REST API in Laravel 8

  Рет қаралды 90,678

The Codeholic

The Codeholic

Күн бұрын

🔥 Learn how to build fully functional E-commerce website with Laravel, Tailwind.css, Alpine.js and Vue.js with Admin Panel, Online Payments, Analytics Dashboard and Deployed on custom domain. Check thecodeholic.com
In this video we will build image manipulation REST API using Laravel, implement authentication using Sanctum and deploy on production environment using Hostinger.
Support me by subscribing - bit.ly/2xTQOI0
Follow me on social media:
/ thecodeholic
/ thecodeholic
/ thecodeholic
Check my Github:
github.com/thecodeholic
Project Demo:
www.lobiimages.com/
Project source code:
github.com/thecodeholic/larav...
Helpful videos:
PHPStorm vs VSCode for PHP - • PHPStorm vs VSCode for...
Top 12 VSCode extensions for PHP - • Top 12 VScode Extensio...
Table of Contents
----------------------------
00:00:00 - Intro
00:00:38 - Demo
00:09:42 - Project Steps
00:10:53 - Setup Domain & Hosting
00:21:10 - Prerequisites
00:23:56 - Install Laravel
00:29:49 - Generate models
00:35:03 - Album CRUD
00:48:46 - API Versioning
00:51:50 - Resources
01:01:44 - Implement Image Resize
01:45:32 - Image API endpoints
01:49:38 - Rate limiting
01:51:20 - Login & Registration
01:54:13 - Sanctum Personal Access Tokens
02:04:30 - REST API Authentication
02:13:48 - Deployment on production
02:22:58 - Finish

Пікірлер: 89
@hooktest8101
@hooktest8101 2 жыл бұрын
I love that you explain advanced stuff and don't just fill your videos with trivial examples .. keep the good work up
@TheCodeholic
@TheCodeholic 2 жыл бұрын
Thank you buddy. Appreciate
@hassanmohammed1323
@hassanmohammed1323 2 жыл бұрын
Ever since your video on building a PHP MVC framework, I've always looked forward to your videos. I already know this will be the best video on this topic because you know how to explain advanced concepts.
@blessed-favored
@blessed-favored 2 жыл бұрын
Definitely enjoyed. Learnt quite a bunch of stuff. Thank you.
@mysambokids
@mysambokids 2 жыл бұрын
Thank you very much😊😊😊 Could you make more lessons on Laravel, please? I am a Laravel developer and your lessons are very useful for me. The best explanation ever
@nourddineaharbach2929
@nourddineaharbach2929 2 жыл бұрын
thanks a lot for your videos my english is not super so your voice is clear and simple and that really help anyone to understand anything even just i hope to make more videos about laravel projects for full stuck developers
@talehtaghi8249
@talehtaghi8249 2 жыл бұрын
Great video! Thank you a lot for help! About that confusion with Regex: it was actually presented on the documentation page, but it was written like "REGular EXpressions" out there)
@headlikeahole6548
@headlikeahole6548 2 жыл бұрын
Awesome stuff as always.
@ShamsuddeenAbdulkadir
@ShamsuddeenAbdulkadir 2 жыл бұрын
Hi from Nigeria. I just want to say that your video tutorials are awesome and always on point. You should make a video about Design pattern in Large Laravel Applications some time. thank you
@TheCodeholic
@TheCodeholic 2 жыл бұрын
I will keep on mind. Thank you.
@yousofjafari5693
@yousofjafari5693 2 жыл бұрын
You are amazing💥 just continue👍
@victoronwe906
@victoronwe906 2 жыл бұрын
This is great. Am also looking forward to a front-end part with vuejs 3 composition Api
@TheCodeholic
@TheCodeholic 2 жыл бұрын
Vue.js is in my plans
@AliHassan-wc6nb
@AliHassan-wc6nb 2 жыл бұрын
@@TheCodeholic hi champ, one request, transactions and their logs, reporting of dynamic data in Pdf/excel, dynamic menu based on roles. These are the things I need to implement in Yii2. Can you help?
@robdorn420
@robdorn420 2 жыл бұрын
Enjoying your videos very much. It would be a great follow up video in which you would cleanup the bulky controller by using Service and Action classes. I am trying to learn about that at this moment.
@newtonboco1703
@newtonboco1703 Жыл бұрын
Really appreciate your content.
@prashantrijal
@prashantrijal 2 жыл бұрын
Wow bro. After such a long time. Happy to see you
@TheCodeholic
@TheCodeholic 2 жыл бұрын
Thanks buddy
@jameshello38
@jameshello38 2 жыл бұрын
Yeah!! Just what I was looking for 😊😊
@TheCodeholic
@TheCodeholic 2 жыл бұрын
Enjoy
@blessed-favored
@blessed-favored 2 жыл бұрын
👍 Have enjoyed the the video.
@behzodjon
@behzodjon 2 жыл бұрын
Great!! Thank you!
@jonathanwalumbe9572
@jonathanwalumbe9572 2 жыл бұрын
This is awesome. Thank you Zura
@TheCodeholic
@TheCodeholic 2 жыл бұрын
Thank you
@paulnaija
@paulnaija 2 жыл бұрын
Omo, this is not for beginners but it's really awesome... Thanks
@TheCodeholic
@TheCodeholic 2 жыл бұрын
Thankw buddy
@hardeepsingh-kz4bt
@hardeepsingh-kz4bt Жыл бұрын
you did so much hardwork for video
@swanyee176
@swanyee176 2 жыл бұрын
Thanks for your video. This help me a lot and I got a lot of knowledge. We need more video like this.
@TheCodeholic
@TheCodeholic 2 жыл бұрын
Glad it was helpful!
@devope
@devope 2 жыл бұрын
Thanks a lot for this lesson. I have learned a lot. Fun fact: it took me 11 hours within 3 days to complete it. Greetings from Batumi :)
@TheCodeholic
@TheCodeholic 2 жыл бұрын
Keep it up
@houdaifaboucenna7631
@houdaifaboucenna7631 Жыл бұрын
Great video and clear explanation for different topics, Congratulation
@TheCodeholic
@TheCodeholic Жыл бұрын
Glad it helped!
@IngPedroAraujo
@IngPedroAraujo 2 жыл бұрын
Thanks for sharing your knowledge...
@TheCodeholic
@TheCodeholic 2 жыл бұрын
Always welcome
@marcinmaj3609
@marcinmaj3609 2 жыл бұрын
Its will be great laravel api and nextjs
@vutienle926
@vutienle926 2 жыл бұрын
This video really helpful sir. Thank you so much.
@TheCodeholic
@TheCodeholic 2 жыл бұрын
Thanks
@vutienle926
@vutienle926 2 жыл бұрын
​@@TheCodeholic hi sir, I have question. When I create new token, the function in DashboardController return view to show the token, but if I F5 to refresh page, this submit and create new token with the same name. So I create a new route to show token, and pass $token->plainTextToken to this and the token display in URL, is it security ? or you have a solution for that?
@rakinar2
@rakinar2 2 жыл бұрын
Amazing tutorial!
@TheCodeholic
@TheCodeholic 2 жыл бұрын
Thanks
@rakinar2
@rakinar2 2 жыл бұрын
@@TheCodeholic Sir, please make a video on regex, it will be very helpful for me (others also).
@aizazaziz5636
@aizazaziz5636 2 жыл бұрын
Thanks dude
@mailforigo
@mailforigo 4 ай бұрын
thank you so much, but you forget to clarify about setup of GD driver. I waiste a lot of time to setting this up. So inside docker file you should add RUN docker-php-ext-configure gd --enable-gd --with-freetype --with-jpeg RUN docker-php-ext-install gd
@adeyemiemmanuelsegun2024
@adeyemiemmanuelsegun2024 2 жыл бұрын
Wow This is priceless Thanks alot
@TheCodeholic
@TheCodeholic 2 жыл бұрын
You're welcome
@betasetupper6103
@betasetupper6103 2 жыл бұрын
Hi There! From Mozambque 🤝
@TheCodeholic
@TheCodeholic 2 жыл бұрын
Hi. Glad that peope watch me from Mozambique as well.
@dilmurod9820
@dilmurod9820 2 жыл бұрын
More videos pls for laravel framework
@alishahidi1053
@alishahidi1053 Жыл бұрын
thank's a lot :)
@ShabnamDeveloper
@ShabnamDeveloper 2 жыл бұрын
thanks 😃😃😃😃
@ojsojs6004
@ojsojs6004 2 жыл бұрын
Laravel is awesome
@justinlemuel12
@justinlemuel12 2 жыл бұрын
Hi do I need to have the relations so that the show function would work? I tried this step by step but it seems it didn't workout fine. I already have a database, I'm just trying to GET and UPDATE data's not store them.
@rexrandy2996
@rexrandy2996 Жыл бұрын
How to manage the cors issue when fetching datas in frontend?
@gravityarm9240
@gravityarm9240 2 жыл бұрын
Whats Framework Better for you laravel , symfony or yii2, 3 ?
@brunofunnie
@brunofunnie 2 жыл бұрын
1:14:27 you can use $this->file('image') as well
@alnahian2003
@alnahian2003 2 жыл бұрын
Thanks Bruno, that helped!
@hamadadel1947
@hamadadel1947 2 жыл бұрын
If you don't mind, it would be great to make a crash course about regex🏆
@raziqijr
@raziqijr 2 жыл бұрын
please make tutorial on laravel itself we need to learn basic first . thank you very much
@rajabhishek2936
@rajabhishek2936 2 жыл бұрын
Nice
@TheCodeholic
@TheCodeholic 2 жыл бұрын
Thanks
@abelmarkos5753
@abelmarkos5753 2 жыл бұрын
We need more laravel tutorial please
@TheCodeholic
@TheCodeholic 2 жыл бұрын
Working on it.
@merlinafera4865
@merlinafera4865 2 жыл бұрын
Free checker is an email logger your email list can be retrieved by the tools builder
@jafarghorbani-vh4qb
@jafarghorbani-vh4qb Жыл бұрын
HELLO FROM IRAN 🇮🇷
@mohdhaikalrozhan6237
@mohdhaikalrozhan6237 Жыл бұрын
Hi Zura, please make regex tutorial...
@mohammedasfoor7334
@mohammedasfoor7334 2 жыл бұрын
show method is returning null for Albums. is anyone facing the same issue?
@mahdiandalib186
@mahdiandalib186 Жыл бұрын
please make a full web app using laravel and angular
@smeekshasharma2127
@smeekshasharma2127 11 ай бұрын
My code is giving an error i.e. Call to a member function move() on string in ImageManipulationController ....How to solve it?
@decoMasserati
@decoMasserati Жыл бұрын
please sir, i use xampp, and i dont know how to serve it with xampp.please help
@leeleon4505
@leeleon4505 2 жыл бұрын
postman test sanctum API redirects to login page
@omotolaniolurotimi5262
@omotolaniolurotimi5262 2 жыл бұрын
I'm having same issues too, I thought I did something wrong. Please have you solved it? if yes, how did you go about it? I have it sorted. What I did was add Accept application/json in my header
@bernardchisumo4054
@bernardchisumo4054 2 жыл бұрын
are you able to share those links for testing an image?
@TheCodeholic
@TheCodeholic 2 жыл бұрын
Sorry which links do you mean? Can you provide exact time from video?
@metinhrcn5096
@metinhrcn5096 Жыл бұрын
You are working at the bottom of the page. therefore your working area overlapping with subtitles.
@shahriarshaon1626
@shahriarshaon1626 2 жыл бұрын
please make one hours course for regex
@cubedev4838
@cubedev4838 Жыл бұрын
Your demo link not working anymore
@vitalikartsivadze
@vitalikartsivadze 2 жыл бұрын
migrate:fresh
@TheCodeholic
@TheCodeholic 2 жыл бұрын
migrate:refresh would be better
@devope
@devope 2 жыл бұрын
1:14:24 because files are in $_FILES
@michaelbrauner5320
@michaelbrauner5320 2 жыл бұрын
Was you not a Yii2 evangelist?
@TheCodeholic
@TheCodeholic 2 жыл бұрын
I am
@domination3428
@domination3428 2 жыл бұрын
ქართულად არ აპირებ ვიდეოებს?
@TheCodeholic
@TheCodeholic 2 жыл бұрын
ორშაბათს დაიდება ზუსტად ეს ვიდეო ქართულად
@domination3428
@domination3428 2 жыл бұрын
@@TheCodeholic ძალიან გამახარე.
@lazyprogrammer98
@lazyprogrammer98 2 жыл бұрын
Hello from Uzbekistan.Iʼm yii2 and laravel developer.Your lessons amazing
@TheCodeholic
@TheCodeholic 2 жыл бұрын
Glad to hear that
@TheCodeholic
@TheCodeholic 2 жыл бұрын
🔥 Learn how to build fully functional E-commerce website with Laravel, Tailwind.css, Alpine.js and Vue.js with Admin Panel, Online Payments, Analytics Dashboard and Deployed on custom domain. Check thecodeholic.com
ROCK PAPER SCISSOR! (55 MLN SUBS!) feat @PANDAGIRLOFFICIAL #shorts
00:31
FOOLED THE GUARD🤢
00:54
INO
Рет қаралды 63 МЛН
She ruined my dominos! 😭 Cool train tool helps me #gadget
00:40
Go Gizmo!
Рет қаралды 63 МЛН
Can You Draw A PERFECTLY Dotted Line?
00:55
Stokes Twins
Рет қаралды 82 МЛН
The BETTER Raspberry Pi? // ZimaBlade Review
13:41
Christian Lempa
Рет қаралды 7 М.
PHP Developer roadmap - How to Become a PHP Developer in 2022
23:50
The Codeholic
Рет қаралды 136 М.
Creating a Laravel API
59:10
DigitalOcean
Рет қаралды 93 М.
Do NOT Learn Kubernetes Without Knowing These Concepts...
13:01
Travis Media
Рет қаралды 240 М.
VSCode - The Complete Setup for PHP Development
33:59
The Codeholic
Рет қаралды 92 М.
Google Data Center 360° Tour
8:29
Google Cloud Tech
Рет қаралды 5 МЛН
Laravel Eloquent: Deeper Relationships with One Query
10:37
Laravel Daily
Рет қаралды 137 М.
JWT Authentication Tutorial - Node.js
27:36
Web Dev Simplified
Рет қаралды 1 МЛН
ROCK PAPER SCISSOR! (55 MLN SUBS!) feat @PANDAGIRLOFFICIAL #shorts
00:31