in Laravel, Technology, Tips and Tricks
use of binding in kernel laravel 8
Route Model Binding When injecting a model ID to a route or controller action, you will often query the database to retrieve the model that corresponds to that ID. Laravel route model binding provides a convenient way to automatically inject the model instances directly into your routes. For example, instead of injecting a user’s ID, […]
You must be logged in to post a comment.