I struggled a but getting this running so I have decided to add my notes here to remind me as well as share with others who might go through the same isses.
$ npm run build
git push <your-remote> <your branch>
<?php namespace App\Traits; | |
use App\ActivityLog; | |
use ReflectionClass; | |
use Illuminate\Support\Facades\Auth; | |
trait ModelActivity | |
{ | |
/** Method automatically called by Eloquent **/ | |
protected static function bootModelActivity() | |
{ | |
foreach (static::getModelEvents() as $event) { |
<?php | |
namespace App\Providers; | |
use Illuminate\Database\Query\Builder; | |
use Illuminate\Support\ServiceProvider; | |
class DumpSqlServiceProvider extends ServiceProvider | |
{ | |
public function boot() |
I struggled a but getting this running so I have decided to add my notes here to remind me as well as share with others who might go through the same isses.
$ npm run build
git push <your-remote> <your branch>
- name: Add PHP7.1 ppa repository
apt_repository: repo='ppa:ondrej/php'
- name: Install packages
apt: pkg={{ item }} state=latest update_cache=yes
with_items:
- mysql-client
- nginx
- php7.1-cli
apt-get install -y --allow-downgrades --allow-remove-essential --allow-change-held-packages \
php7.1-cli php7.1-dev \
php7.1-pgsql php7.1-sqlite3 php7.1-gd \
php7.1-curl php7.1-memcached \
php7.1-imap php7.1-mysql php7.1-mbstring \
php7.1-xml php7.1-zip php7.1-bcmath php7.1-soap \
php7.1-intl php7.1-readline php-xdebug php-pear php7.1-fpm
import requests | |
import time | |
import json | |
token = '' | |
#Delete files older than this: | |
ts_to = int(time.time()) - 30 * 24 * 60 * 60 | |
def list_files(): |
<template> | |
<div class="w-1/4"> | |
<input :value="value" class="form-input" type="text" ref="input" id="datepicker"> | |
</div> | |
</template> | |
<script> | |
import Pickaday from 'pikaday' | |
export default { |
<template> | |
<div class="bg-grey-dark p-6"> | |
<h2 class="my-6">Wrapping External Libraries as Vue Components (Datepicker)</h2> | |
<date-picker v-model="date" format="DD/MM/YYYY" :options="{firstDay: 7}"></date-picker> | |
</div> | |
</template> | |
<script> | |
import DatePicker from "@/components/DatePicker.vue" | |
export default { |
<?php | |
use Illuminate\Console\Command; | |
use Symfony\Component\Console\Input\InputOption; | |
use Symfony\Component\Console\Input\InputArgument; | |
class MoveToS3 extends Command { | |
/** | |
* The console command name. |