Tuesday, 17 July 2018

Webpush notifications for Laravel

Here the necessary steps in creating a webpush applications in LARAVEL. Add the library in your composer by checking this site. In order for you to run this site, you must enforce https on your website by adding this line in you AppServiceProvider.php public function boot() { $this->app['request']->server->set('HTTPS', true); } I wanted to use sqlite in heroku...
Share:

Monday, 16 July 2018

Return JSON from a Laravel server from a different domain using javascript

Been tinkering for 3 hours how to get the things going. For the javascript side In web.php add the route name('postPricing'); ]]> For the controller make sure you have added ->setCallback($request->input('callback')) at the end of the json response. ![CDATA[ public function postPricing(Request $request){ $pricing = []; $sliderValue = 0; for ($x = 1;...
Share:

Monday, 9 July 2018

Complete Postgres installation step by step

Homebrew is a popular package manager for OS X. To install Postgres with Homebrew, follow the steps below: The first thing to do is install Homebrew if you haven’t done so already. Homebrew site has a simple command that you have to paste in your terminal to do so. Make sure to accept the command line developer tools installation if prompted. Next, run brew install postgres to install Postgres....
Share:

Popular Posts

Recent Posts

Pages

Powered by Blogger.

About Me

My photo
For the past 10 years, I've been playing with codes using PHP, Java, Rails. I do this for a living and love new things to learn and the challenges that comes with it. Besides programming I love spending time with friends and family and can often be found together catching the latest movie or planning a trip to someplace I've never been before.