Laravel Rest Api Tutorial for Beginners | Laravel Rest Api Tutorial

preview_player
Показать описание
#laravelapitutorial
#laravelrestapitutorial
#laravelapitutorialforbeginners

Join this channel to get access to perks:

If you get helped from this tutorial, please subscribe my channel and stay with me to get more powerful tip 

Thanks For Watching.

I hope This video was helpful.If you have any questions then let me know in the comment section.
Best of luck
.#webtechknowledge

You can connect with me with the given links below:

Follow me on :
Рекомендации по теме
Комментарии
Автор

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

Joel_Powell
Автор

Super clear and super straightforward. Thanks for this API tutorial!

lancewilliamcatal
Автор

Thank you, Great tutorial 👍 Taught me the basics of building a simple API in Laravel.

horizon
Автор

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! <3

ocqcfdn
Автор

How to add some sort of api keys authorization system for external entities that are not users of the application?

celotrovi
Автор

can you show a tutorial api auth from laravel? to use it in react or vue.js

justdoitk
Автор

A very helpful tutorial for beginners. Thank you!

uros.u.novakovic
Автор

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.

chrissmith