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
module.exports = { | |
methods: { | |
confirm(message, callback) { | |
if (window.confirm(message)) { | |
callback(); | |
} | |
} | |
} | |
}; |
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 | |
use Illuminate\Validation\ValidationException; | |
if ($coupon->cannotBeRedeemed()) { | |
throw ValidationException::withMessages([ | |
'coupon' => [ | |
'The coupon code is invalid.', | |
], | |
]); |
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 Bugsnag\BugsnagLaravel\Facades\Bugsnag; | |
use Illuminate\Support\ServiceProvider; | |
class AppServiceProvider extends ServiceProvider | |
{ | |
public function boot() |
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
vendor/bin/phpunit --printer="PHPUnit\TextUI\ResultPrinter" |
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
// Submit a form via AJAX and return the request object | |
$.fn.ajaxSubmit = function (options) { | |
var settings = $.extend({ | |
submittingText: 'Submitting...' | |
}, options); | |
var form = $(this); | |
var url = form.attr('action'); | |
var data = form.serialize(); | |
var type = form.attr('method'); | |
var submitButton = form.find('[type="submit"]'); |
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
let mix = require('laravel-mix'); | |
mix.sass('resources/assets/sass/app.scss', 'public/css') | |
.js('resources/assets/js/app.js', 'public/js') | |
.js('resources/assets/js/channel-admin.js', 'public/js') | |
.js('resources/assets/js/video.js', 'public/js') | |
.extract(['jquery', 'bootstrap']) | |
.options({ processCssUrls: false }) | |
.sourceMaps(); |
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 | |
abstract class Adapter | |
{ | |
protected $config; | |
protected $connection; | |
public function __construct($config) | |
{ | |
$this->config = $config; | |
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\Validator; | |
use Illuminate\Support\ServiceProvider; | |
use InvalidArgumentException; | |
class ValidationServiceProvider 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
p:last-of-type::after { | |
content: "\0020 \220E" | |
} |
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\Handlers\Jobs; | |
use App\Jobs\LogNameJob; | |
use Illuminate\Support\Facades\Log; | |
class LogNameHandler | |
{ | |
public function __construct() |