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
p:last-of-type::after { | |
content: "\0020 \220E" | |
} |
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
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 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
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 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
vendor/bin/phpunit --printer="PHPUnit\TextUI\ResultPrinter" |
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\Controllers; | |
use App\Article; | |
use App\Http\Views\ArticleIndex; | |
class ArticleController extends Controller | |
{ | |
public function index() |
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\Providers; | |
use Bugsnag\BugsnagLaravel\Facades\Bugsnag; | |
use Illuminate\Support\ServiceProvider; | |
class AppServiceProvider extends ServiceProvider | |
{ | |
public function boot() |
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 | |
use Illuminate\Validation\ValidationException; | |
if ($coupon->cannotBeRedeemed()) { | |
throw ValidationException::withMessages([ | |
'coupon' => [ | |
'The coupon code is invalid.', | |
], | |
]); |
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
module.exports = { | |
methods: { | |
confirm(message, callback) { | |
if (window.confirm(message)) { | |
callback(); | |
} | |
} | |
} | |
}; |
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\Feature; | |
use Illuminate\Foundation\Testing\TestResponse; | |
use Tests\TestCase; | |
class ExampleTest extends TestCase | |
{ | |
public function testExample() |
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
#!/bin/sh | |
cd ~/ | |
curl -OL http://ftpmirror.gnu.org/autoconf/autoconf-latest.tar.gz | |
tar xzf autoconf-latest.tar.gz | |
cd autoconf-latest | |
./configure --prefix=/usr/local | |
make | |
sudo make install |