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 VeeValidate, { Validator } from 'vee-validate'; | |
* Validator.extend('rut', require('./VeeRutValidator')); | |
* Vue.use(VeeValidate); | |
*/ | |
module.exports = { | |
getMessage: (field, params, data) => `El campo ${field} no es un rut válido`, | |
validate: rut => { | |
if (typeof(rut) !== 'string') { |
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 | |
use Illuminate\Database\Schema\Blueprint; | |
use Illuminate\Database\Seeder; | |
use Illuminate\Support\Facades\Schema; | |
class RegionCommuneSeeder extends Seeder | |
{ | |
/** | |
* Run the database seeds. |
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 | |
class VueValetDriver extends ValetDriver | |
{ | |
static $publicPath = 'public'; | |
static $startFile = 'public/index.html'; | |
/** | |
* Determine if the driver serves the request. | |
* |
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
// Eduardo Aguad [email protected] | |
// Use: | |
// yarn add vee-validate | |
// import VeeValidate, {Validator} from 'vee-validate'; | |
// Validator.extend('rut', require('./VeeRutValidator')); | |
// <input type="text" name="rut" v-validate="rut"> | |
module.exports = { |
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\Http\Controllers; | |
use Illuminate\Http\Request; | |
use Route; | |
class LaraHelperController extends Controller | |
{ | |
public function getRoutes() { |
NewerOlder