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
{ | |
"workbench.colorTheme": "Slime", | |
"terminal.external.windowsExec": "C:\\Program Files\\Git\\git-bash.exe", | |
"terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe", | |
"editor.fontLigatures": true, | |
"editor.fontFamily": "\"Fira Code\"", | |
"terminal.integrated.fontFamily": "\"Fira Code\"", | |
"editor.suggestSelection": "first", | |
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue", | |
"python.jediEnabled": 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 | |
Route::name(your.name) | |
->prefix('your/prefix') | |
->middleware(Path\To\YourMiddleware::class) | |
->group(base_path('routes/your-route.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 | |
namespace App\Providers; | |
use Illuminate\Support\ServiceProvider; | |
use Validator; | |
class Base64ServiceProvider 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 | |
/** | |
* Strip the namespace from the class to get the actual class name | |
* | |
* @param string $obj Class name with full namespace | |
* | |
* @return string | |
* @access public | |
*/ |
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\Exceptions; | |
use Exception; | |
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler; | |
use Illuminate\Auth\AuthenticationException; | |
use GuzzleHttp\Client; | |
use GuzzleHttp\Psr7\Request; | |
use Illuminate\Database\Eloquent\ModelNotFoundException; |
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 | |
/** | |
* Created by PhpStorm. | |
* User: rannie | |
* Date: 2/21/19 | |
* Time: 11:33 AM | |
*/ | |
namespace App\Modules\Photos\Traits; |
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
body { | |
/* font-size: calc(14px + (26 - 14) * ((100vw - 300px) / (1600 - 300))); */ | |
font-size: calc([minimum size]px + ([maximum size] - [minimum size]) * ((100vw - [minimum viewport width]px) / ([maximum viewport width] - [minimum viewport width]))); | |
} |
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
/** | |
* Gets the value at `path` of `object`. | |
* @param {Object} object | |
* @param {string|Array} path | |
* @returns {*} value if exists else undefined | |
*/ | |
const _.get = (object, path) => { | |
if (typeof path === "string") path = path.split(".").filter(key => key.length); | |
return path.reduce((dive, key) => dive && dive[key], 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\Http\Controllers; | |
use App\Model\Notification; | |
use App\Abstracts\Controllers\ApiController; | |
use Doctrine\DBAL\Driver\PDOConnection; | |
use Illuminate\Http\Request; |
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\Rise\Traits; | |
trait CanIndexQueries | |
{ | |
/** | |
* Example | |
* $properties = Property::indexRaw('USE INDEX (brand)') |
OlderNewer