app/Http/Controllers/HomeController.php
/**
     * Show the application dashboard.
     *
     * @return \Illuminate\Contracts\Support\Renderable
     */
Show the application dashboard.
@return \Illuminate\Contracts\Support\Renderable
Show the application dashboard . @return \ Illuminate \ Contracts \ Support \ Renderable
public function index()
    {
        $loginedUser = User::where('id', Auth::id())->first();
        $allUsers = User::all();
        $allProjects = Project::all();
        return view('home')->with('loginedUser', $loginedUser)->with('allUsers', $allUsers)->with('allProjects', $allProjects);
    }
public function index ( ) { $ loginedUser = User :: where ( 'id' , Auth :: id ( ) ) -> first ( ) ; $ allUsers = User :: all ( ) ; $ allProjects = Project :: all ( ) ; return view ( 'home' ) -> with ( 'loginedUser' , $ loginedUser ) -> with ( 'allUsers' , $ allUsers ) -> with ( 'allProjects' , $ allProjects ) ; }
Show the application dashboard.
Show the application dashboard .
//return $loginedUser->projects;