Skip to content

Instantly share code, notes, and snippets.

View damir-bubanovic's full-sized avatar

Damir Bubanović damir-bubanovic

View GitHub Profile
@damir-bubanovic
damir-bubanovic / gist:d67d54b2c19aa233f51f63b3d9f0f4be
Last active August 6, 2018 16:44
Laravel 5 - create fake data with $faker & populate database
<?php
/**
* SEEDING DATABASE
*
* Faker Fileds:
* https://github.com/fzaninotto/Faker
*
* 1) Create database, model, migration
* 2) artisan make:seeder
@damir-bubanovic
damir-bubanovic / gist:31ef488aecbc703d52adc2d5280aa87c
Last active March 6, 2017 19:15
Vue.js 2.0 - using $emit to pass data
/**
* ULTRA Dynamic $emit [pass data from sister to parent to brother - to populate list]
*
LINKS:
1) Advanced technique - have not tried
https://vuejs.org/v2/guide/migration.html#dispatch-and-broadcast-replaced
2) Similar
http://stackoverflow.com/questions/40835293/vue-laravel-access-and-use-eventhub
*
* EXTRA ARRAY (pass multiple input values)