3
I have the following loop in a view table
@foreach ($filme as $f)
<tr>
<td>{{ $f->fil_id }}</td>
<td>{{ $f->fil_filme }}</td>
<td>{{ $f->fil_sinopse }}</td>
<td>{{ $f->fil_lancamento }}</td>
<td>{{ $f->cat_id }}</td>
</tr>
@endforeach
But it only displays the category id as it is in the movie table. How to give an INNER JOIN with the category table in Laravel 5?
Place models and controller?
– novic
Puts the code that generates the variable
$filme
– Wallace Maxters