Skip to content

Instantly share code, notes, and snippets.

@FWSimon
FWSimon / test.php
Last active March 6, 2016 16:47
return invoiceItems
public function Preview(Request $request)
{
$inputs = $request->all();
$quantity = $inputs['quantity'];
$description = $inputs['description'];
$price = $inputs['price'];
dd($inputs);
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
];
<?php
public function index()
{
$invoices = invoice::find(1);
return view('invoices.index', compact('invoices'));
}
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 {
test
const VueGoogleMap = require('vue-google-maps');
module.exports = {
components: {
'google-map': VueGoogleMap.Map
},
data: function () {
return {
@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 {