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 Tests; | |
use PHPUnit\Framework\TestCase; | |
class MyTest extends TestCase | |
{ | |
public function test_it_does_something() | |
{ |
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\Mail; | |
use Illuminate\Container\Container; | |
use Illuminate\Mail\Mailable as BaseMailable; | |
use PHPUnit\Framework\Assert; | |
class Mailable extends BaseMailable | |
{ |
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
# Redirect non-secure http requests to secure https domain | |
# Redirect non-www requests to www.site.com | |
server { | |
listen 0.0.0.0:80; | |
listen [::]:80; | |
listen 0.0.0.0:443 ssl http2; | |
listen [::]:443 ssl http2; | |
server_name domain.com *.domain.com; |
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\Events; | |
use Illuminate\Contracts\Broadcasting\ShouldBroadcast; | |
use Illuminate\Queue\SerializesModels; | |
class NewMessage extends Event implements ShouldBroadcast | |
{ | |
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
var Moment = require('moment'); | |
var Schedule = require('node-schedule'); | |
var subCounter; | |
// | |
// Schedule the jobs | |
console.log('Setting up jobs'); |
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
var Moment = require('moment'); | |
var Schedule = require('node-schedule'); | |
var alarmJob; | |
var fixedSnoozeJob; | |
var subCounter; | |
// |
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\Repositories; | |
use App; | |
use Illuminate\Database\Eloquent\ModelNotFoundException; | |
use Illuminate\Support\Collection; | |
use Illuminate\Support\Contracts\ArrayableInterface; | |
abstract class AbstractRepository | |
{ |
NewerOlder