Skip to content

Instantly share code, notes, and snippets.

View wilmanbarrios's full-sized avatar

Wilman Barrios wilmanbarrios

View GitHub Profile
@wilmanbarrios
wilmanbarrios / DateInput.vue
Created August 27, 2019 17:42 — forked from reinink/DateInput.vue
Pikaday Vue Component
<template>
<div>
<label v-if="label" class="form-label" :for="`date-input-${_uid}`">{{ label }}:</label>
<input v-bind="$attrs" class="form-input" :id="`date-input-${_uid}`" :class="{ error: error }" type="text" ref="input" :value="value" @change="change" @keyup="change">
<div v-if="error" class="form-error">{{ error }}</div>
</div>
</template>
<script>
import pikaday from 'pikaday'
@wilmanbarrios
wilmanbarrios / Yii2ValetDriver.php
Created October 29, 2019 13:50 — forked from HavenShen/Yii2ValetDriver.php
Yii2 valet driver . `cp Yii2ValetDriver.php ~/.valet/Drivers/`
<?php
class Yii2ValetDriver extends ValetDriver
{
/**
* Determine if the driver serves the request.
*
* @param string $sitePath
* @param string $siteName
* @param string $uri