app/Http/Controllers/AcctController.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()
    {
        $user= Auth()->user();
        $data = [
            'success'=>'Account Updated',
            'user'=>$user,
            'accts'=> acct::orderBy('created_at', 'desc')->get()
        ];
        return view('/myacct')->with($data);
    }
public function index ( ) { $ user = Auth ( ) -> user ( ) ; $ data = [ 'success' => 'Account Updated' , 'user' => $ user , 'accts' => acct :: orderBy ( 'created_at' , 'desc' ) -> get ( ) ] ; return view ( '/myacct' ) -> with ( $ data ) ; }
Display a listing of the resource.
Display a listing of the resource .
// $user = user::orderBy('updated_at','desc')->paginate(10); // return view('myacct')->with('user',$user); // $user = user::find($id)->get(); // return view('/myacct')->with('user',$user);