Soft Admin
http://www.toriandmatt.com/softadmin/index.html
SB Admin 2
https://blackrockdigital.github.io/startbootstrap-sb-admin-2/pages/index.html
Thursday, 21 December 2017
Wednesday, 20 December 2017
Send SMS Laravel Nexmo
References
Basic Tutorial
https://laravel-news.com/sending-receiving-sms-laravel-nexmoBasic SMS guide
https://developer.nexmo.com/messaging/sms/overview
Through Packagist guide
https://packagist.org/packages/nexmo/client
Some Problem that might occured :
cURL error 60: SSL certificate problem: self signed certificate in certificate chain
While on local-host with Laravel you can easily bypass cURL error.
navigate to Client.php file (vendor\guzzlehttp\guzzle\src\Client.php)
Change "verify" to false
$defaults = [
'allow_redirects' => RedirectMiddleware::$defaultSettings,
'http_errors' => true,
'decode_content' => true,
'verify' => false,
'cookies' => false
];
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) }}
Saturday, 16 December 2017
Thursday, 14 December 2017
Wednesday, 13 December 2017
Subscribe to:
Posts (Atom)