jeudi 10 novembre 2016

How can I get project name of blade view regarding to project Id in Laravel

Hellow, I have two models as project and collaboratos in my laravel app. and in collaborator model contain project_id column. I have one blade file need to print project_name to relate to project_id. My blade file generate with collaborator Model.

<h2><a href="/collaborators//">{!! $proj->project_id !!}</a></h2> // I need print project Name instead this project_id

how can I print project_name of project Model using collaborator_id of collaborator Model?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire