RESTful API CRUD with Laravel

preview_player
Показать описание
In this video you will learn how to create API using Laravel. We will create API and test using postman.

Complete Full Stack Authentication Angular & Laravel (Login & Register API)

Download the source code from the description

Please don't forget to like & subscribe my YouTube channel

#laravel #api #laravel_crash_course
Рекомендации по теме
Комментарии
Автор

If this one doesn't work $employee = update($request->all()); use $employee -> update($request->all());

alexeyfilatov
Автор

Perfect video, just what i needed! Thanks and keep it up, greetings from Munich

tibro
Автор

Great Tutorial !
For those who got "Undefined type" error at return response()->json(Employee::all(), 200); In laravel 8,
I found a fix after searching for hours:

FIX : -

in your EmployeeController.php
type,



in the api.php file
type,


and

Route::get('employees/',  [EmployeeController::class,  'getEmployee'])->name('employees');


Type all the Routes like above format.
it should work!

yproductions
Автор

You are the best. Amazing tutorial, thank you so much! I understand it way better now, hero! Liked and subscribed :D

o.m.
Автор

Thanks man for your content education about RESTful API CRUD with Laravel

diazdjuliansyah
Автор

Thanks a lot for this course, very helpfull !!!

myagilekit
Автор

Well explained, Thank you so much for this tutorial

SatishKumar-rdzf
Автор

Great video ;) I think you don't need to return just return Employee:all().
Laravel will automatically serialize your Eloquent models and collections to JSON when they are returned from routes or controllers:

norbertsandor
Автор

Man you rock !!!! Really well explained !

julesndiaye
Автор

thanks, bro...it's worth to hit you channel red button..

TrikNgonlen
Автор

Nice video . I learned lot from this video!!! Please keep do more

srahul
Автор

Thanks! Very well explained!
Just a little mistake in case you want to correct it in your Github repo. In AppServiceProvider you have:
use
instead of:
use

rubenblanza
Автор

So if I want to code api for all tables in the database, not just 1 table like above, I have to write crud for each right? Or what should I do?

danielhat
Автор

Excellent video...please make a video on E-commerce tutorial with Angular and Laravel SPA.

Webapp
Автор

This is a very helpfull and lightning video, but it's missing a part about, how to protect de api's from access to non autenticate user, to prevent consumming the api's...

Chorizzot
Автор

Your content is fantastic, so easy to learn and i would buy your content should you teach on Udemy

dirkrobbertse
Автор

Thanks it was very helpful, but when i click send an postman i receive this Target class [EmployeeController] does not exist !

aymanejuyi
Автор

Hi I am watching your tutorial and it's very good but I have a trouble, when I type Use App\Employee on EmployeeController shows an error "Undefined type" at return response()->json(Employee::all(), 200); do you know why this?

chalino
Автор

thanks for this information about api.. so how can I use it with flutter

baran
Автор

Why you dont use instant resouce as index, create, show, edit, delete, update in laravel???

sauau