Route Model Binding

Description

Example of how simple route model binding works
Luis Rojas
Note by Luis Rojas, updated more than 1 year ago
Luis Rojas
Created by Luis Rojas over 7 years ago
74
0

Resource summary

Page 1

It needs a wildcard in the route.This wildcard needs to match against the controller method who's expecting the wildcard.Laravel assumes a primary key for the model wildcard.Route::get('Model/{model}', 'ModelController@nameMethod');public function nameMethod(Model $model){ return $model;}

Show full summary Hide full summary

Similar

Welcome to GoConqr!
maya velasquez
FCE WRITING
rmartin
Tips de Decoración para un cuarto Vintage
lombardom
PHP/Laravel
Luis Rojas
TIPS DE ÉXITO PROFESIONAL
Jorge Morquecho
Fichas- Inteligencia Emocional
Andres Laverde
¿Cómo ser un buen líder?
Karina Acevedo
Estimulación Temprana
Minerva Molina
Mapa mental Joomla
brayeisma
Tips to boost your mental health
Andrea Pan
HOW TO ACE AN INTERVIEW
Miguel Herrero