- Install passport
composer require laravel/passport
- Run migrations
<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"> |
<!-- 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> |
" Folding, not need for plugin | |
"" fold enable | |
set fen | |
"" no fold enable | |
set nofen | |
"" fold column | |
set fdc=0 |
extends html | |
snippet foreach "@foreach" | |
@foreach ($${1:array} as $${2:item}) | |
{{ $$2->${3} }} | |
@endforeach | |
snippet if "@if" | |
@if (${1:true}) | |
${2:tag} |
<?php | |
namespace Tests; | |
use Illuminate\Foundation\Testing\TestCase as BaseTestCase; | |
abstract class TestCase extends BaseTestCase | |
{ | |
use CreatesApplication; | |
<?php | |
// composer.json | |
// "autoload-dev": { | |
// ... | |
// "files": ["tests/utilities/functions.php"] | |
// ... | |
// } | |
function create($class, $attributes = []) |
module.exports = { | |
title: 'JuanVqz.github.io', | |
themeConfig: { | |
nav: [ | |
{ text: 'Bienvenido', link: '/'} | |
], | |
sidebar: [ | |
'/', |
/*! debug.css | MIT License | zaydek.github.com/debug.css */ | |
*:not(path):not(g) { | |
color: hsla(210, 100%, 100%, 0.9) !important; | |
background: hsla(210, 100%, 50%, 0.5) !important; | |
outline: solid 0.25rem hsla(210, 100%, 100%, 0.5) !important; | |
box-shadow: none !important; | |
} |
# frozen_string_literal: true | |
# Use this setup block to configure all options available in SimpleForm. | |
SimpleForm.setup do |config| | |
# Default class for buttons | |
config.button_class = "button" | |
# Define the default class of the input wrapper of the boolean input. | |
config.boolean_label_class = "checkbox" |