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...
Tuesday, 17 July 2018
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;...
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....