SHARE
TWEET

Untitled

a guest Jul 17th, 2017 42 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @if(isset($tasks))
  2. @foreach ($tasks as $task)
  3. <h1>{{ $task->task_name }}</h1>
  4. @endforeach
  5. @endif
  6.    
  7. public function index()
  8. {
  9.     $tasks = Task::all();
  10.  
  11.    return view('tasks.index')->withTasks($tasks);
  12. }
RAW Paste Data
Top