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 | |
| $finder = PhpCsFixer\Finder::create() | |
| ->exclude([ | |
| 'bootstrap/cache', | |
| 'storage', | |
| 'vendor', | |
| 'public', | |
| ]) | |
| ->in(__DIR__) |
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 Vue from 'vue' | |
| export default http => { | |
| // https://github.com/mzabriskie/axios#interceptors | |
| http.interceptors.response.use( | |
| response => response, | |
| /** | |
| * This is a central point to handle all | |
| * error messages generated by HTTP | |
| * requests |
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\Models\Traits; | |
| trait GeoDistance | |
| { | |
| /** | |
| * Filter results by nearest latitude and longitude. | |
| * | |
| * @param \Illuminate\Database\Eloquent\Builder $query |
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
| <template> | |
| <div :class="wrapperClass"> | |
| <div slot="minus" :class="[buttonClass, 'minus']" @click.prevent="decreaseNumber">-</div> | |
| <input type="text" | |
| :value="numericValue" | |
| @keypress="validateInput" | |
| @change="updateValue($event.target.value)" | |
| :class="inputClass" | |
| :min="min" | |
| :max="max" |
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
| alias phpunit="vendor/bin/phpunit" |
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 | |
| $finder = PhpCsFixer\Finder::create() | |
| ->exclude('bootstrap/cache') | |
| ->exclude('storage') | |
| ->exclude('vendor') | |
| ->in(__DIR__) | |
| ->name('*.php') | |
| ->notName('*.blade.php') | |
| ->ignoreDotFiles(true) |
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\Jobs; | |
| use App\Contracts\PushNotification as Pusher; | |
| use Illuminate\Contracts\Queue\ShouldQueue; | |
| use Illuminate\Queue\InteractsWithQueue; | |
| use Illuminate\Queue\SerializesModels; | |
| use Sly\NotificationPusher\Collection\DeviceCollection; | |
| use Sly\NotificationPusher\Model\Device; |
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
| .btn-file { | |
| position: relative; | |
| overflow: hidden; | |
| } | |
| .btn-file input[type=file] { | |
| position: absolute; | |
| top: 0; | |
| right: 0; | |
| min-width: 100%; |