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
composer selfupdate && composer global update && npm -g i npm npm-check-updates && ncu -g |
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
/** | |
* In your config/insights.php | |
*/ | |
// ... | |
'exclude' => [ | |
'app/Actions/Fortify', | |
'app/Actions/Jetstream', | |
'app/Console/Kernel.php', |
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 Builder $result */ | |
// try to prevent duplicate joins that will cause an error on execute | |
$result->getQuery()->joins = collect($result->getQuery()->joins)->unique('table')->toArray(); |
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\Traits; | |
use App\Model\BaseModel; | |
use Illuminate\Database\Eloquent\Builder; | |
use Illuminate\Database\Eloquent\Relations\Relation; | |
use Illuminate\Support\Collection; | |
use Illuminate\Support\Str; |
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\Rules; | |
use Illuminate\Contracts\Validation\Rule; | |
/** | |
* Class RealBoolean | |
* | |
* To check on several values that can be interpreted as 'boolean' |
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\Helper; | |
use Illuminate\Pagination\LengthAwarePaginator; | |
use Illuminate\Pagination\Paginator; | |
use Illuminate\Support\Collection; | |
class PaginationHelper | |
{ | |
/** |
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
$.tablesorter.addParser({ | |
id: 'germanDate', | |
is: function(s) { | |
return false; | |
}, | |
format: function(s) { | |
var dateMatches = s.match(/([0-9]{1,2})\.([0-9]{1,2})\.([0-9]{2,4}) ([0-9]{1,2}):([0-9]{1,2})/i); | |
return dateMatches[3]+dateMatches[2]+dateMatches[1]+dateMatches[4]+dateMatches[5]; | |
}, | |
// set type, either numeric or text |
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
@echo off | |
"D:\php-7.0.13-Win32-VC14-x64\php.exe" "D:\www\phpcs.phar" %1 %2 %3 %4 %5 %6 %7 %8 %9 |
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
PHPUnit 4.0.17 by Sebastian Bergmann. | |
Configuration read from /media/sascha/Acer/zend/Apache2/htdocs/pimf/phpunit.xml | |
The Xdebug extension is not loaded. No code coverage will be generated. | |
.........................................EEEEEE................ 63 / 437 ( 14%) | |
.................EEEEE.EFEEEE.............E.................... 126 / 437 ( 28%) | |
...........S.S.S.S..........................E...FEEEF.EEEEEEEEE 189 / 437 ( 43%) | |
E..........................................EEEEEE.............. 252 / 437 ( 57%) |