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
import confirm from './confirm'; | |
export default { | |
mixins: [ | |
confirm | |
], | |
methods: { | |
onDelete() { | |
this.confirm('Are you sure you wish to delete this item?').then(() => { | |
// Delete item |
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 App\Repositories\SettingsRepository; | |
use Illuminate\Support\ServiceProvider; | |
class AppServiceProvider extends ServiceProvider | |
{ | |
public function register() |
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
### Keybase proof | |
I hereby claim: | |
* I am martinbean on github. | |
* I am martinbean (https://keybase.io/martinbean) on keybase. | |
* I have a public key ASB2_ZA3DkCT9MjQuO8huSLkj8dOOxr8Cyy_bMrG3HAVJQo | |
To claim this, I am signing this object: |
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() |
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\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
<?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
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
// 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
vendor/bin/phpunit --printer="PHPUnit\TextUI\ResultPrinter" |