Thanks for the video! For anyone struggling with an error of "Target class [PostController] does not exist" (or similar), you will need to update the 'Route::resource' line to be: "Route::resource('posts', 'App\Http\Controllers\PostController');" In later versions of Laravel, you have to use the Fully Qualified Class Name for your Controllers when referring to them in your routes when not using the namespace prefixing. 👍
@hello-matthew3 жыл бұрын
I am now starting my very first Laravel project which is heavily API based -- This tutorial is invaluable, an absolute golden find!!! Thank you.
@GuzzX84 жыл бұрын
I have been writing my PHP Rest API without framework like Laravel all this time, and I think I should start to use Laravel sooner or later, Then I found this easy-to-understand-and-follow tutorial that get me started learning how to use Laravel, thanks Chris. I hope you make other sessions going deeper in Laravel.
@jamlizzy1014 жыл бұрын
You could shorten creating model, API controller and migration more in the command like this: *php artisan make:model Post -cma*
@joseramonbellido35163 жыл бұрын
35:52 For Insomnia/Postman updating operation, you must use POST method and include in the body a key named "_method" with "PUT" as value.
@samiulsalehin28314 жыл бұрын
Wow, this is really great. Do sessions like this more often.
@alpachino4684 жыл бұрын
What an awesome tutorial, thank you. I personally don't mind you trawling through the official docs; one can't possibly be expected to remember everything, and it's a good habit to get into. Thanks Chris and Digital Ocean :)
@TylerJusCodes2 жыл бұрын
what folder did he install the laravel on that he was able to run the my-super-duper-api.test?
@DigitalOcean2 жыл бұрын
"I used Laravel Valet to create a folder that will be served from .test. Here's the Vapor docs laravel.com/docs/9.x/valet" - Chris
@JonibekJ4 жыл бұрын
What a Great Content!! 😀 Please, make videos going deeper on laravel api. 🙏🙏
@jkbullitt89864 жыл бұрын
Chris on Code - Kudos as always bro!!
@fitbouncer67953 жыл бұрын
till 21min, tis problem is showing----SQLSTATE[HY000]: General error: 1364 Field 'slug' doesn't have a default value (SQL: insert into `posts` (`title`, `updated_at`, `created_at`) values (my first post, 2021-07-20 15:46:57, 2021-07-20 15:46:57)) i'm using xampp(phpmyadmin) tell the solution
@DigitalOcean3 жыл бұрын
Based on what you've described, it looks like you're using tools that are outside the scope of the tutorial. So unfortunately, we can't advice on this particular problem. But always reach out if you have questions and we'll see what we can do :)
@fitbouncer67953 жыл бұрын
No, I hadn't using any outside tool, I just followed what you have shown
@cholzdelrosario4 жыл бұрын
Watch this twice , I hade to do codes then notes plus codes to not forget the syntax . haha I don't like searching the documentation without knowing the keywords. Thanks for the great content! :)
@mohamedabdelhalim98924 жыл бұрын
As a backend developer i gotta prepare such APIs for the front end and mobile developers to access the database right?
@londonboy35012 жыл бұрын
Indeed!
@Shogoeu4 жыл бұрын
What about Lumen? Isn't it better to use that for APIs?
@ylmaz103 жыл бұрын
thanks bro, good video for laravel lovers
@kendallhayes49174 жыл бұрын
Does this video include jwt auth or unique API keys
@gunarcom4 жыл бұрын
I didn't know what I was missing until I installed the vs-code icons extension. Wowee it's easier to navigate.
@Ayoub_Himself4 жыл бұрын
May I ask what color scheme is that?
@MrL224 жыл бұрын
Thank you for this great tutorial. My only question would be: With large amounts of data being returned through the API. How would you go about managing pagination, passing a "p" or "page" integer and where or how would this be handled? I may have answered my own question but would it be that the function index returns 20 results by default but you use Eloquent skip() if "p" is set in the request?
@HassanAbuBakar2 жыл бұрын
HATEOAS might help
@Toozh4 жыл бұрын
Create tutorial, exactly what I was looking for. My update request worked fine in the PostController, and I just followed you :)
@chocinspired4 жыл бұрын
Whats the best advice to scale well and load balance in Laravel.Great video.
@samueltorres24854 жыл бұрын
For fillable, do you always have to put every column? I know its for mass assignment but what does that mean exactly? How do you know which columns you list in the fillable property?
@hijenelkhalifi91982 жыл бұрын
if you are going to use validation , and only use validated data , than you can enable mass assignment globally ,, we identify the fillable fields so no one would add a variable to our request which we dont want to change ( for example role , status etc .. )
@kalaiselvi-ch2sf4 жыл бұрын
20:10 you put like "use App\Post" In that App means what? And this migrate command gives error as not found. Please help me
@devideeze7878 Жыл бұрын
did you solve this?
@shuttereff3ct5934 жыл бұрын
What a time to learn, thank you!
@meghak82123 жыл бұрын
Thank you so much for making such a nice vedio .
@willian.schenkel4 жыл бұрын
Awesome, Laravel facilitates our life! btw, what is your vscode theme?
@seikosantana23133 жыл бұрын
Why don't we have autocomplete for ::create?
@DigitalOcean3 жыл бұрын
It seems that Chris' text editor didn't do it for some reason on that one.
@bhoomivaghasiya27943 жыл бұрын
When I do 'php artisan migrate' I get this 'Access denied for user 'root'@'localhost error. I am using laravel 4.1.1. Please help me.
@dhanushd2323 жыл бұрын
change DB_USERNAME and DB_PASSWORD in env file
@djnkuli4 жыл бұрын
This is awesome thank you for bringing me back to Laravel!!!!!
@baranbahari14414 жыл бұрын
thanks for the tutorial, I was wondering what is the tool you're using to view your api-name.test in the browser, cause I was not able to find it by googling.
@devlopes1024 жыл бұрын
Conteúdo muito bom me ajudou muito, um salve aqui do Brasil.
@Akosiyawin3 жыл бұрын
Why is your VSCode showing some Intellisense for laravel, whilst mine is not haha.
@DigitalOcean3 жыл бұрын
Hey Yayin! Try installing the PHP Intelephense extension: marketplace.visualstudio.com/items?itemName=bmewburn.vscode-intelephense-client
@mihiranchathuranga86754 жыл бұрын
Is this a Laravel rest api tutorial.
@mixtureworld73263 жыл бұрын
great tutorial man, I like this video do more stuff. cheers
@Roter_Wolf4 жыл бұрын
Great video. It would be even better if there were timestamps
@keanallen4 жыл бұрын
awesome lecturer. very clear.
@deepakjerry50303 жыл бұрын
Wow that's good content
@manish-ghimire4 жыл бұрын
22:58 DogController :D Anyway, nice video. Thx.
@AmbientResonanceSounds3 жыл бұрын
Great video and great quality content, I however how one request: Please speak a little slower and also be slower when interacting with your screen. You are very fast between switching windows and files etc... It's hard to follow and remember when it's so fast.
@yema83193 жыл бұрын
Is this still good in 2021?
@DigitalOcean3 жыл бұрын
Yes! Laravel has done a great job at not breaking its core functionality in years.
@sadiaarooj72834 жыл бұрын
what an amazing tutorial
@mr_don_key4 жыл бұрын
Why do you want this to be a slug and not id? i mean the ID never changes, the slug can.. making links to it (by favorites e.g.) go bust.
@sir_brian_d3 жыл бұрын
making videos on laravel to try and get forge users to switch to app platform. thanks but id rather my money go towards supporting the framework's developement instead of leeching from it.
@davidatebisun4 жыл бұрын
This tutorial blew my mind. it so great
@JavierMartinez003 жыл бұрын
was it? 48 minutes in....can't even get his route defined.
@jamols094 жыл бұрын
Do a tutorial for Laravel with Dingo api
@talktosunnysethi3 жыл бұрын
It's Cool !
@dennymactavish3074 жыл бұрын
nice
@SYR20254 жыл бұрын
big thanks
@platoosom4 жыл бұрын
Thank you.
@khanhpd31293 жыл бұрын
thanksss
@iamchets3 жыл бұрын
Crud has nothing to do with a restful api..
@softhitech3 жыл бұрын
very dragged and lots of things are irrelevant as I was looking for a quick solution but i think you need to plan what steps should be followed to create a long video like this.
@mahmoudmohamed-oo3xs3 жыл бұрын
Wow, this is really great. Do sessions like this more often.