also is $ticket = TicketIssue::all();
or $ticket = TicketIssue::with('status')->get();
??
i would remove the belongsToMany relationship completly and try:
$ticket = TicketIssue::with('status')->get();
$tickets = \Auth::user()->tickets;
On User Model
public function tickets()
{
return $this->hasMany('app\TicketIssues');
}
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community