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()
    {
        $user = Auth::user();
        $usertypes=UserType::all();
        if(isset($user->user_type_id)){
            return redirect()->route('projects.index');
        }else{
        return view('home', compact('user','usertypes'));
        }
    }
public function index ( ) { $ user = Auth :: user ( ) ; $ usertypes = UserType :: all ( ) ; if ( isset ( $ user -> user_type_id ) ) { return redirect ( ) -> route ( 'projects.index' ) ; } else { return view ( 'home' , compact ( 'user' , 'usertypes' ) ) ; } }
Show the application dashboard.
Show the application dashboard .
// print($id);exit; // $user = User::findOrFail($id); /*return view('home');*/