use the Laravel docs instruction instead. Instantiate a model then add <code>srid</code> parameter
public function revisions()
{
return $this->hasMany(
'StudentRevision',
'sid'
);
}
at your controller
public function getStudent($srid=NULL)
{
$m= new Student();
$g= $m->current()->where('srid',$srid);
var_dump($g);
// another code written here...
}
#cmiiw
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community