This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# > It happened to me and it turned out that I removed erroneously the postgres user from "ssl-cert" group, set it back with | |
gpasswd -a postgres ssl-cert | |
# Fixed ownership and mode | |
sudo chown root:ssl-cert /etc/ssl/private/ssl-cert-snakeoil.key | |
sudo chmod 740 /etc/ssl/private/ssl-cert-snakeoil.key | |
# now postgresql starts! (and install command doesn't fail anymore) | |
sudo /etc/init.d/postgresql start |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DEPLOYING LARAVEL AND NUXT ON LINUX | |
SERVER – Start to FInish | |
Buy a server on Digital Ocean | |
1. Go to Digital Ocean https://m.do.co/c/5b428a74fc09 to sign up. Use this link to get | |
$100 in free credit. | |
2. Create a new Project | |
3. Create a new Droplet and OS | |
a. Click on “Get started with a Droplet”. | |
b. Choose Ubuntu LTS | |
c. Select plan ($5/mo is ok) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
curl -X POST --header "Authorization: key=<KeyValue>" \ | |
--Header "Content-Type: application/json" \ | |
https://fcm.googleapis.com/fcm/send \ | |
-d "{\"condition\":\"!('anytopicyoudontwanttouse' in topics)\",\"notification\":{\"title\":\"Hello\",\"body\":\"Yellow\"}}" | |
*/ | |
$notification = [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<!-- CSRF Token --> | |
<meta name="csrf-token" content="{{ csrf_token() }}"> | |
<title>{{ config('app.name', 'Laravel') }}</title> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Providers; | |
use Illuminate\Support\Facades\Auth; | |
use Illuminate\Support\Facades\View; | |
use Illuminate\Support\ServiceProvider; | |
use App\Http\View\Composers\ProfileComposer; | |
class ViewServiceProvider extends ServiceProvider |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Observers; | |
use App\Post; | |
use App\User; | |
use App\Jobs\NewPostJob; | |
use Illuminate\Support\Facades\Notification; | |
use App\Notifications\PushNotification; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Listeners; | |
use Illuminate\Contracts\Queue\ShouldQueue; | |
use Illuminate\Notifications\Events\NotificationSent; | |
use Illuminate\Queue\InteractsWithQueue; | |
use FCMAPP; | |
class LogNotification implements ShouldQueue | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Notifications; | |
use App\Post; | |
use Illuminate\Bus\Queueable; | |
use Illuminate\Notifications\Notification; | |
use Illuminate\Contracts\Queue\ShouldQueue; | |
use Illuminate\Notifications\Messages\MailMessage; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//code 3karatcom wordpress |