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\Http\Requests; | |
class Request extends FormRequest | |
{ | |
/** | |
* @return bool | |
*/ | |
public function filterFields() |
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 | |
if (!function_exists('mysql_aes_key')) { | |
/** | |
* Produce a version of the AES key in the same manor as MySQL | |
* | |
* @param string $key | |
* @return string | |
* @see https://www.smashingmagazine.com/2012/05/replicating-mysql-aes-encryption-methods-with-php/ | |
*/ |
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 | |
if (!function_exists('debug_query')) { | |
/** | |
* @param bool $trace | |
* @param bool $full | |
* @param bool $cache | |
* @return @void | |
*/ | |
function debug_query($trace = true, $full = false) |
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\ServiceProvider; | |
use App\Overrides\Illuminate\Validation\Factory as FactoryOverride; | |
/** | |
* Class AppServiceProvider | |
* @package App\Providers |
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\Jobs; | |
use Carbon\Carbon; | |
use Illuminate\Bus\Queueable; | |
use App\Models\PayrollRequest; | |
use Illuminate\Support\Collection; | |
use Illuminate\Queue\SerializesModels; | |
use Illuminate\Queue\InteractsWithQueue; |
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 | |
/** | |
* @param array[] $matrix | |
* @param string[] $fields | |
* @return array[] | |
*/ | |
public function tilt(array $matrix, array $fields = array()) | |
{ | |
$topKeys = array_keys($matrix); | |
$nestedKeys = $fields ?: array_keys((array)current($matrix)); |
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\Helpers; | |
use Exception; | |
use ReflectionMethod; | |
use ReflectionFunction; | |
use ReflectionException; | |
/** |
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\Helpers; | |
use PDO; | |
use DateTime; | |
use Exception; | |
use Illuminate\Support\Facades\DB; | |
use Illuminate\Database\QueryException; | |
use Illuminate\Support\{Str, Arr, Carbon}; |
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\Database\Eloquent\Model; | |
use Illuminate\Database\Eloquent\Relations; | |
use Illuminate\Database\Eloquent\Collection as EloquentCollection; | |
if (!function_exists('relate_models')) { | |
/** | |
* @param Model $model | |
* @param Model $relatedModel |
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 | |
if (!function_exists('load')) { | |
/** | |
* Register all of the commands in the given directory. | |
* | |
* @param array|string $paths | |
* @param string $parentClassName | |
* @param callable|null $register | |
* @see Illuminate\Foundation\Console\Kernel::load() |
OlderNewer