Skip to content

Instantly share code, notes, and snippets.

methods: {
/**
* Fetch all invoices for the user
*/
fetchInvoices() {
this.$http({url: '/invoices/fetch', method: 'GET'}).then(function (response) {
console.log('trigged');
@FWSimon
FWSimon / myFile.js
Created March 23, 2016 09:10
my file
const VueGoogleMap = require('vue-google-maps');
module.exports = {
components: {
'google-map': VueGoogleMap.Map
},
data: function () {
return {
const VueGoogleMap = require('vue-google-maps');
module.exports = {
components: {
'google-map': VueGoogleMap.Map
},
data: function () {
return {
test
const VueGoogleMap = require('vue-google-maps');
module.exports = {
components: {
'google-map': VueGoogleMap.Map,
},
data: function () {
return {
const VueGoogleMap = require('vue-google-maps');
module.exports = {
components: {
'google-map': VueGoogleMap.Map,
},
data: function () {
return {
const VueGoogleMap = require('vue-google-maps');
module.exports = {
components: {
'google-map': VueGoogleMap.Map,
},
data: function () {
return {
<?php
public function index()
{
$invoices = invoice::find(1);
return view('invoices.index', compact('invoices'));
}
public function Preview(Request $request)
{
$inputs = $request->all();
$invoiceItems = array_map(function ($quantity, $description, $price) {
return [
'quantity' => $quantity,
'description' => $description,
'price' => $price
];
public function Preview(Request $request)
{
$inputs = $request->all();
$invoiceItems = array_map(function ($quantity, $description, $price) {
return [
'quantity' => $quantity,
'description' => $description,
'price' => $price
];