app/Http/Controllers/HomeController.php
/**
     * Show the application dashboard.
     *
     * @return \Illuminate\Http\Response
     */
Show the application dashboard.
@return \Illuminate\Http\Response
Show the application dashboard . @return \ Illuminate \ Http \ Response
public function index()
    {
        $users = User::count();
        $assets = Asset::count();
        return view('home')->withUsers($users)->withAssets($assets);
    }
public function index ( ) { $ users = User :: count ( ) ; $ assets = Asset :: count ( ) ; return view ( 'home' ) -> withUsers ( $ users ) -> withAssets ( $ assets ) ; }
Show the application dashboard.
Show the application dashboard .