This file contains 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 Vue from 'vue' | |
import App from './App' | |
import router from 'router' | |
import vuetify from './plugins/vuetify' | |
Vue.config.productionTip = false | |
new Vue({ | |
router, | |
vuetify, |
This file contains 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 Vue from 'vue' | |
import VueRouter from 'vue-router' | |
Vue.use(VueRouter) | |
const routes = [ | |
] | |
const router = new VueRouter( { |
This file contains 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
Route::get('/{any}', 'SpaController@index')->where('any', '.*'); |
This file contains 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
<template> | |
<div class="tag-input"> | |
<div v-for='(tag, index) in tags' :key='tag' class='tag-input__tag'> | |
<span @click="removeTag(index)">x</span> | |
{{ tag }} | |
</div> | |
<input | |
type="text" | |
placeholder="Enter a tag" | |
class="tag-input__text" |
This file contains 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
<template> | |
<div class="drag-and-drop"> | |
<div class="drop-zone" | |
@drop='onDrop($event, 1)' | |
@dragover.prevent | |
@dragenter.prevent> | |
<div | |
class='drag-el' | |
v-for='item in listOne' | |
:key='item.title' |
This file contains 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
<div class="users-div"> | |
<div class="table-responsive" style="width: 100.8%"> | |
<table class="users-table cell-border"> | |
<thead> | |
<th>User ID</th> | |
<th>Name</th> | |
<th>Actions</th> | |
</thead> | |
</table> | |
</div> |
This file contains 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 App\Services\SomeApiService; | |
use Yajra\Datatables\Datatables; | |
class DatatablesController extends Controller | |
{ | |
private $api; |
This file contains 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\Services; | |
use Illuminate\Support\Facades\Log; | |
use Http\Factory\Discovery\HttpClient; | |
use WillChambers\Api\SomeApi; | |
use WillChambers\Configuration; | |
class DatastoreService |
This file contains 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
ip: "192.168.10.10" | |
memory: 2048 | |
cpus: 1 | |
provider: virtualbox | |
ssl: true | |
authorize: ~/.ssh/id_rsa.pub | |
keys: | |
- ~/.ssh/id_rsa |
This file contains 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 | |
public function crupdate($id = null, Request $request) | |
{ | |
$fields = $request->only(['field_1', 'field_2']); | |
$model = Model::updateOrCreate( | |
[ | |
'id' => $id | |
], |