Create some timestamps while helping someone new to Laravel learn API creation. Hopefully helpful for others. 0:18 create laravel project - laravelapitutorial 1:20 create static route to student 2:58 make:controller for StudentController 4:08 implement index method for StudentController 4:52 make:model (and -m migration) for Student 5:18 edit migration file for students table 5:44 set fillable columns in model file 6:14 run migration 6:32 view table in phpMyAdmin 6:58 edit StudentController to add Student model and eloquent query to all 9:18 retest student api in browser 9:34 manually add data in student table using phpMyAdmin 10:07 use Postman to example API results 11:19 add POST method for student calling upload method (and using Validator) 13:16 implement handler for if validation fails 14:46 implement handler for success 16:25 use Postman to test POST method for student API (shows debugging steps) 18:28 building JSON to sent via POST in Postman 19:10 using Postman to show validation failures 19:42 using Postman to complete a valid POST 19:57 using Postman to use GET method to see record was inserted successfully 20:20 using phpMyAdmin to see raw data in database 20:28 add one additional record in student via POST student api 20:52 use GET request to ensure it was inserted properly 21:05 add new route to edit data (PUT request, method name is edit) 21:38 implement edit method in StudentController 22:00 implement validation rules 22:40 finding record to edit using eloquent 23:15 testing edit method using Postman for record 1 23:52 show validation failing 25:03 show edit succeeding 25:35 add new route to delete data (DELETE request, delete method) 25:59 implement delete method in Student Controller 27:31 testing delete method in Postman for record 3 (some debugging) 28:37 using GET request to ensure it was deleted properly
Wow! That's friggin awesome! Can you make a part 2 for this a continuation of this tutorial but with authentication like sanctum or passport? Thank you so much! Subscribed!
I needed English subtitles :/ - overall a decent tutorial for a basic introduction. Please though - do not use this code in production. It is very bad.
Create some timestamps while helping someone new to Laravel learn API creation. Hopefully helpful for others.
0:18 create laravel project - laravelapitutorial
1:20 create static route to student
2:58 make:controller for StudentController
4:08 implement index method for StudentController
4:52 make:model (and -m migration) for Student
5:18 edit migration file for students table
5:44 set fillable columns in model file
6:14 run migration
6:32 view table in phpMyAdmin
6:58 edit StudentController to add Student model and eloquent query to all
9:18 retest student api in browser
9:34 manually add data in student table using phpMyAdmin
10:07 use Postman to example API results
11:19 add POST method for student calling upload method (and using Validator)
13:16 implement handler for if validation fails
14:46 implement handler for success
16:25 use Postman to test POST method for student API (shows debugging steps)
18:28 building JSON to sent via POST in Postman
19:10 using Postman to show validation failures
19:42 using Postman to complete a valid POST
19:57 using Postman to use GET method to see record was inserted successfully
20:20 using phpMyAdmin to see raw data in database
20:28 add one additional record in student via POST student api
20:52 use GET request to ensure it was inserted properly
21:05 add new route to edit data (PUT request, method name is edit)
21:38 implement edit method in StudentController
22:00 implement validation rules
22:40 finding record to edit using eloquent
23:15 testing edit method using Postman for record 1
23:52 show validation failing
25:03 show edit succeeding
25:35 add new route to delete data (DELETE request, delete method)
25:59 implement delete method in Student Controller
27:31 testing delete method in Postman for record 3 (some debugging)
28:37 using GET request to ensure it was deleted properly
Love you vai...You are genious. clear speech, no unnecessary talking, breaked down every single part very nicely. Love you man...great job, carry on
To the point, no garbage talking. Thanks man ❤🎉
Super clear and super straightforward. Thanks for this API tutorial!
Thank you, Great tutorial 👍 Taught me the basics of building a simple API in Laravel.
Wow! That's friggin awesome! Can you make a part 2 for this a continuation of this tutorial but with authentication like sanctum or passport? Thank you so much! Subscribed!
Thank You . Understood very well 🙌
Thank you sir. Very clear and well undersrood
I love the way you say John Doe
good explanation sir
thank you, it helped me a lot
A very helpful tutorial for beginners. Thank you!
Thank you for your kind words! I'm happy to know that the tutorial was helpful for you.
great video 😊😊
How to add some sort of api keys authorization system for external entities that are not users of the application?
Thank you so much brother
thank u sir for this tutorial
you explained well sir
please can you make a tutorial on using Sactum for api token generation ?
super
When I create a new laravel project, my routes folder does not contain an api.php file. Does anyone know why that might be the case?
Thank you sir 👍👍
you are welcome as well
can you show a tutorial api auth from laravel? to use it in react or vue.js
can i use resource full controller
thanks man
AWESOME! Thank you!
You're welcome!
How can I get it thru javascript?
❤ good work
thank you
osm
This is helpful
really glad that it was helpful
I needed English subtitles :/ - overall a decent tutorial for a basic introduction. Please though - do not use this code in production. It is very bad.
Well it is only to show the basics of api for beginners but thanks for the advice
good explanation sir