Skip to content

Instantly share code, notes, and snippets.

View ChadTaljaardt's full-sized avatar
🏠
Living the dream

Chad Taljaardt ChadTaljaardt

🏠
Living the dream
View GitHub Profile
$plateNew = new Plate();
$plateNew->plate = $plate;
$plateNew->save();
$plateNew->fresh();
dd($plateNew);
Plate {#194 ▼
$plateNew = new Plate();
$plateNew->plate = $plate;
$plateNew->save();
$plateNew->fresh();
dd($plateNew);
Plate {#211 ▼
#table: "plates"
#fillable: array:1 [▼
0 => "plate"
]
#dates: array:2 [▼
0 => "created_at"
1 => "updated_at"
]
#connection: null
$plateRecord = new Plate();
$plateRecord->plate = $plate;
$plateRecord->save();
dd($plateRecord);
Users
ID
Name
Email
Password
Remember_token
created_at
Updated_at
Offences
<template>
<form action="/subscriptions" method="POST">
<input type="hidden" name="stripeToken" v-model="stripeToken">
<input type="hidden" name="stripeEmail" v-model="stripeEmail">
<button id="customButton" @click.prevent="subscribe">Purchase</button>
</form>
</template>
<script>
export default {
/**
* First we will load all of this project's JavaScript dependencies which
* include Vue and Vue Resource. This gives a great starting point for
* building robust, powerful web applications using Vue and Laravel.
*/
require('./bootstrap');
/**
[{"id":1,"iso":"AF","name":"AFGHANISTAN","nicename":"Afghanistan","iso3":"AFG","numcode":"4","phonecode":"93","created_at":null,"updated_at":null},{"id":2,"iso":"AL","name":"ALBANIA","nicename":"Albania","iso3":"ALB","numcode":"8","phonecode":"355","created_at":null,"updated_at":null},{"id":3,"iso":"DZ","name":"ALGERIA","nicename":"Algeria","iso3":"DZA","numcode":"12","phonecode":"213","created_at":null,"updated_at":null},{"id":4,"iso":"AS","name":"AMERICAN SAMOA","nicename":"American Samoa","iso3":"ASM","numcode":"16","phonecode":"1684","created_at":null,"updated_at":null},{"id":5,"iso":"AD","name":"ANDORRA","nicename":"Andorra","iso3":"AND","numcode":"20","phonecode":"376","created_at":null,"updated_at":null},{"id":6,"iso":"AO","name":"ANGOLA","nicename":"Angola","iso3":"AGO","numcode":"24","phonecode":"244","created_at":null,"updated_at":null},{"id":7,"iso":"AI","name":"ANGUILLA","nicename":"Anguilla","iso3":"AIA","numcode":"660","phonecode":"1264","created_at":null,"updated_at":null},{"id":8,"iso":"AQ","n
<option v-for="option in country" v-bind:value="option.nicename">
{{ option.nicename }}
</option>
<script>
export default {
/*
* The component's data.
*/
data() {
<style>
</style>
<template>
<item class="item" :model="treeData"> </item>
</template>
<script>
import item from './Item.vue';