app/Http/Controllers/TaskController.php
/**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
Display a listing of the resource.
@return \Illuminate\Http\Response
Display a listing of the resource . @return \ Illuminate \ Http \ Response
public function index()
    {
        $tasks = Auth::user()->task()
        ->orderBy('completion_date', 'asc')
        ->orderBy('expiration_date', 'asc')
        ->orderBy('registration_date', 'asc')
        ->paginate('5');
        return view('tasks.index', compact('tasks'));
    }
public function index ( ) { $ tasks = Auth :: user ( ) -> task ( ) -> orderBy ( 'completion_date' , 'asc' ) -> orderBy ( 'expiration_date' , 'asc' ) -> orderBy ( 'registration_date' , 'asc' ) -> paginate ( '5' ) ; return view ( 'tasks.index' , compact ( 'tasks' ) ) ; }
Display a listing of the resource.
Display a listing of the resource .