This file contains hidden or 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 | |
{ |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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\Http; | |
use SebastiaanLuca\Flow\Http\RequestHandler as BaseRequestHandler; | |
use SebastiaanLuca\Flow\Http\ShowsViews; | |
class RequestHandler extends BaseRequestHandler | |
{ | |
use ShowsViews; |
This file contains hidden or 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\Helpers\RemembersLocale; | |
use Illuminate\Bus\Queueable; | |
use Illuminate\Contracts\Queue\ShouldQueue; | |
use Illuminate\Notifications\Messages\MailMessage; | |
use Illuminate\Notifications\Notification; | |
use Notifications\Channels\FirebaseChannel; |
This file contains hidden or 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 | |
declare(strict_types=1); | |
namespace App\Managers; | |
use Illuminate\Http\Request; | |
class Localizer | |
{ |
OlderNewer