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
build: | |
- 'composer install --no-dev --classmap-authoritative' | |
- 'php artisan event:cache' | |
- 'sh ../../../utils/vapor_build_purge.sh' |
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
<script> | |
// Insert the sum of a column into the columns footer, for the visible | |
// data on each draw | |
// var table = $('#crudTable').DataTable(); | |
// $("#wave_total").html( $('#crudTable').column( 3 ).data().sum()); | |
jQuery(document).ready(function($) { | |
jQuery.fn.dataTable.Api.register( 'sum()', function ( ) { | |
return this.flatten().reduce( function ( a, b ) { | |
if ( typeof a === 'string' ) { | |
a = a.replace(/[^\d.-]/g, '') * 1; |
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\Rules; | |
use Illuminate\Http\Request; | |
use Illuminate\Cache\RateLimiter; | |
use Illuminate\Contracts\Validation\Rule; | |
class Throttle implements Rule | |
{ |
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\Abilities; | |
use Illuminate\Support\Str; | |
use ReflectionClass; | |
/** | |
* Note: This is a preview of an upcoming package from Tighten. | |
**/ |
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
#!/bin/bash | |
# Log in into the box | |
vagrant ssh | |
# VirtualBox syncs host time with guest, so we need to shut off VBox Guest Additions first | |
sudo service vboxadd-service stop | |
# Now you can set any date and time | |
sudo date -s "2020-10-01 10:25:00" |
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
# delete local tag '12345' | |
git tag -d 12345 | |
# delete remote tag '12345' (eg, GitHub version too) | |
git push origin :refs/tags/12345 | |
# alternative approach | |
git push --delete origin tagName | |
git tag -d tagName |
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 | |
/** | |
* A helper file for Laravel 5, to provide autocomplete information to your IDE | |
* Generated for Laravel 5.5.13 on 2017-09-28. | |
* | |
* @author Barry vd. Heuvel <[email protected]> | |
* @see https://github.com/barryvdh/laravel-ide-helper | |
*/ | |
namespace { | |
exit("This file should not be included, only analyzed by your IDE"); |