dimanche 30 juillet 2017

unable to display table data in blade file in Laravel

Need display table data in laravel on show.blade.php file it is generated from TaskController.php

public function index()
{
    $tasks = Task::all();
return view('tasks.index')->with('tasks', $tasks);

}

this is index.blade.php

@if(isset($tasks))

@foreach ($tasks as $task)

<h1></h1>

@endforeach

@endif

include this index with file to show.blade.php

@include('tasks.index')

but not generate any results???? No any error??? how to fix this



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2wbr5F2
via IFTTT

Aucun commentaire:

Enregistrer un commentaire