http://jsfiddle.net/5vk7ebtv/9/
https://stackoverflow.com/questions/45044483/highcharts-markers-to-appear-only-on-x-axis-ticks
| <?php | |
| namespace App\Support; | |
| use Illuminate\Database\Eloquent\Relations\HasOne; | |
| trait Sortable | |
| { | |
| public function scopeSortable($query, $defaultSort = null, $direction = 'asc') | |
| { |
| ## I just ran into this after initializing a Visual Studio project _before_ adding a .gitignore file (like an idiot). | |
| ## I felt real dumb commiting a bunch of files I didn't need to, so the commands below should do the trick. The first two commands | |
| ## came from the second answer on this post: http://stackoverflow.com/questions/7527982/applying-gitignore-to-committed-files | |
| # See the unwanted files: | |
| git ls-files -ci --exclude-standard | |
| # Remove the unwanted files: | |
| git ls-files -ci --exclude-standard -z | xargs -0 git rm --cached |
| composer-link() { | |
| composer config repositories.local '{"type": "path", "url": "'$1'"}' --file composer.json | |
| } |
| class Errors { | |
| constructor() { | |
| this.errors = {}; | |
| } | |
| get(field) { | |
| if (this.errors[field]) { | |
| return this.errors[field][0]; | |
| } | |
| } |
| <?php | |
| namespace App; | |
| use App\Support\Traits\GenerateUniqueCode; | |
| use App\Support\Contracts\GeneratesCodes; | |
| use Illuminate\Database\Eloquent\Model; | |
| class Lead extends Model implements GeneratesCodes | |
| { |
| ./ngrok http -host-header=rewrite {url}:{port} | |
| # Example | |
| ./ngrok http -host-header=rewrite project.test:80 |
| <?php | |
| class GlobalSearch | |
| { | |
| protected $searchGroups = [ | |
| 'Users' => UserSearchGroup::class, | |
| ]; | |
| protected function searchGroups() | |
| { |
| #!/bin/bash | |
| composer install | |
| cp .env.example .env | |
| php artisan key:generate | |
| php artisan migrate --seed | |
| npm install | |
| npm run dev |