- Install passport
composer require laravel/passport
- Run migrations
| <?php | |
| // composer.json | |
| // "autoload-dev": { | |
| // ... | |
| // "files": ["tests/utilities/functions.php"] | |
| // ... | |
| // } | |
| function create($class, $attributes = []) |
| <?php | |
| namespace Tests; | |
| use Illuminate\Foundation\Testing\TestCase as BaseTestCase; | |
| abstract class TestCase extends BaseTestCase | |
| { | |
| use CreatesApplication; | |
| extends html | |
| snippet foreach "@foreach" | |
| @foreach ($${1:array} as $${2:item}) | |
| {{ $$2->${3} }} | |
| @endforeach | |
| snippet if "@if" | |
| @if (${1:true}) | |
| ${2:tag} |
| " Folding, not need for plugin | |
| "" fold enable | |
| set fen | |
| "" no fold enable | |
| set nofen | |
| "" fold column | |
| set fdc=0 |
| <!-- Call from template --> | |
| <spinner :loading="loading"></spinner> | |
| <!-- Component --> | |
| <template> | |
| <div id="spinner"> | |
| <div class="form-group text-center" v-if="loading"> | |
| <i class="fa fa-2x fa-cog fa-spin"></i> | |
| </div> | |
| </div> |
| <pagination :pag="pagination" | |
| @prev="getUsers(...arguments)" | |
| @next="getUsers(...arguments)"> | |
| </pagination> | |
| <template> | |
| <div id="pagination" class="row justify-content-md-center"> | |
| <nav aria-label="Page navigation"> | |
| <ul class="pagination pagination" v-if="this.pag.count > 0"> | |
| <li class="page-item" v-if="this.pag.current_page > 1"> |