backup-manager is an excelent package, but lack of auto naming feature, here is a workaround using Laravel's Artisan command line tool.
This is the command what we are going to accomplish:
backup-manager is an excelent package, but lack of auto naming feature, here is a workaround using Laravel's Artisan command line tool.
This is the command what we are going to accomplish:
<?php | |
/* * ** | |
* | |
* This script converts an existing MySQL database to migrations in Laravel 4. | |
* | |
* 1. Place this file inside app/controllers/ | |
* | |
* 2. In this file, edit the index() method to customize this script to your needs. | |
* - inside $migrate->ignore(), you pass in an array of table |
/* | |
* | |
* Instead of a single backend, let's set up a more complex multi-server director. | |
* This director will randomly assign each request to one of three application servers. | |
* | |
*/ | |
director backend random { | |
.retries = 5; | |
{ | |
.backend = { |
// shorter vars for brevity | |
var a = image.naturalWidth, | |
b = image.naturalHeight, | |
c = maxImageWidth, | |
d = maxImageHeight, | |
r1 = a / b, // image aspect ratio | |
r2 = c / d; // container aspect ratio | |
// determine which dimension is the limiting factor | |
// according to the aspect ratio comparison and |
try { | |
new CustomEvent("IE has CustomEvent, but doesn't support constructor"); | |
} catch (e) { | |
window.CustomEvent = function(event, params) { | |
var evt; | |
params = params || { | |
bubbles: false, | |
cancelable: false, | |
detail: undefined |
<?php | |
/* * ** | |
* | |
* This script converts an existing MySQL database to migrations in Laravel 4. | |
* | |
* 1. Place this file inside app/controllers/ | |
* | |
* 2. In this file, edit the index() method to customize this script to your needs. | |
* - inside $migrate->ignore(), you pass in an array of table |
postcss: function() { | |
return [ | |
postcssImport({ | |
onImport: function (files) { | |
files.forEach(this.addDependency) | |
}.bind(this) | |
}), | |
customProperties(), | |
autoprefixer | |
] |
// takes a {} object and returns a FormData object | |
var objectToFormData = function(obj, form, namespace) { | |
var fd = form || new FormData(); | |
var formKey; | |
for(var property in obj) { | |
if(obj.hasOwnProperty(property)) { | |
if(namespace) { |
/* Safari and Edge polyfill for createImageBitmap | |
* https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/createImageBitmap | |
*/ | |
if (!('createImageBitmap' in window)) { | |
window.createImageBitmap = async function(blob) { | |
return new Promise((resolve,reject) => { | |
let img = document.createElement('img'); | |
img.addEventListener('load', function() { | |
resolve(this); | |
}); |
Install.
composer require phpoffice/phpexcel