Wednesday, 20 December 2017

Solve Illegal offset type (Laravel)

You are passing the same data to the view twice. Better to chose (and be consistent with) one or the other methodology for passing data to the view,
return view('menus::admin.create', compact('menus', 'type', 'menu_id'));

// which is equivalent to:
return view('menus::admin.create', [
    'menus' => $menus, 
    'type' => $type, 
    'menu_id' => $menu_id
]);
or, using the with method:
 return view('menus::admin.create')
    ->with('menu_id', $menu_id)
    ->with( 'type', $type) 
    ->with('menu_id', $menu_id);
There are also magic methods such as
...
    ->withType($type) 
    ->withMenus($menu_id);

Tuesday, 19 December 2017

Dump & Die (Reading an Array)

dd($request); 
or
dd(User::all());
or
dd($users->toArray());
or
 dd(User::all()->toArray());
or you can then dump it into your blade template
{{ dd($users) }}

Thursday, 5 October 2017

VMware vSphere 6.0.0 Esxi Installation

Steps of Installation

1. check grid/ rack id
2. get ip address of server
3. adjust ipv4 connection of client computer
4. enter address and index server web
5. enter huawei server login ( default provided)
5. enter remote tab from menu
6. remote virtual console
6. run JDC (Java application)
7. reboot application (ctrl + alt + delete)
8. check raid storage ( Ctrl + C)
8. insert image file/ iso file from ( desktop )
9. reboot again ( ctrl alt delete )
10. connect image file from disk
11. Installing vmware esxi system image
10. Enter esxi login password (default provided)
11. Disconnect mount image file
12. Reboot