Laravel resource() Routes vs apiResource() Routes: What's the Difference? #laravel #shorts

preview_player
Показать описание
In this tutorial, we'll explore the differences between Route::resource and Route::apiResource in Laravel. We'll learn about their unique use cases and advantages, and examine how each one can impact the performance and security of your application. By the end of this tutorial, you'll have a better understanding of how to optimize your Laravel routes for web applications and APIs.

📚 New Udemy Course

🧑🏼💻 Let’s plan a meeting

💌 Newsletter

🔥 Resources

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

I always used apiResource route when I'm using Laravel + InertiaJS with React or Vue 3

imnash
Автор

Thank you
We need content about websocket

mwaas
Автор

Actually create and edit methods are excluded in ::apiResource.

gbeh
Автор

Wow, now i am able to solve why I am facing csrf mismatch in my post request which I added in in api php file

zoroXgamings