app/Http/Controllers/TasksController.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()
    {
        $completed = Task::select('*')
        ->where('completed', '=', 0)
        ->orderBy('priority', 'asc')
        ->orderBy('updated_at', 'DESC')
        ->get();
       return view('project.tasks')->with('companies', Company::all())->with('users', User::all())->withTasks($completed);
    }
public function index ( ) { $ completed = Task :: select ( '*' ) -> where ( 'completed' , '=' , 0 ) -> orderBy ( 'priority' , 'asc' ) -> orderBy ( 'updated_at' , 'DESC' ) -> get ( ) ; return view ( 'project.tasks' ) -> with ( 'companies' , Company :: all ( ) ) -> with ( 'users' , User :: all ( ) ) -> withTasks ( $ completed ) ; }
Display a listing of the resource.
Display a listing of the resource .