Create Controllers | Laravel REST API Tutorial | Part 8

Create Controllers | Laravel REST API Tutorial | Part 8

AngelJay Academy

2 года назад

1,785 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@chrisli3179
@chrisli3179 - 11.02.2022 09:03

Hi, thanks for the videos you've made with helping me understand how to use Laravel for API. I think the videos are relatively easy to follow from 1 - 8. But one problem that i'm finding is that you don't provide direction towards running the code or viewing what has been coded. For example, with models, migrations, factories etc. I don't think there was any testing with regards to migrations until the seeders part of the video. It would have been good if there was direction towards testing the migrations during the migration videos, and then seeders is testing the seeders (which would also include re-migrating). As I got to the controller, collection and resources part of the video, I found the same issue, and it was a bit more frustrating because you mentioned that your not using postman to check the routes, but can use the browser... although, at this point, there was not information towards how you were viewing the routes through the browser. I'm assuming you have created the routes already in your local... so I presume you've already connected up the api.php routes file.

I think in order for your audience to really learn, you need to provide guidance to how to see their errors and results in each step. So for migrations, by the end of the video, there should be direction to how to run the migration, the fact is, most people will probably have errors at this stage in the video. But this will give a chance for them to check their code and review your video. Similarly, with the controller, collection, resources part ... it would have been beneficial for people to connect the routes first, show them how to see the route in action with the controller (even if its empty at first), then continue with building out the json result set through your collection and resources. This will give the viewer a chance to continuously check their work as they follow your directions. Just my 2 cents.

Ответить