<td>{{ $question->block()->name }}</td>
class QuestionController extends Controller
{
public function index() {
$questions = Question::all()->load('block');
return view('question.index')->with('questions', $questions);
}
}
<td>{{ $question->block->name }}</td>
{
"autoload": {
"files": [
"helpers/functions.php",
]
}
}