Defining Eloquent model (will assume that DB table named is set as plural of class name and primary key named "id"):
class Shop extends Eloquent {}
Using custom table name
protected $table = 'my_shops';
const debounce = (fn = () => {}, wait = 1000) => (...args) => { | |
const delayed = () => fn.apply(this, args) | |
return setTimeout(delayed, wait) | |
} |
<?php | |
/* | |
* Mysql database class - only one connection alowed | |
*/ | |
class Database { | |
private $_connection; | |
private static $_instance; //The single instance | |
private $_host = "HOSTt"; | |
private $_username = "USERNAME"; | |
private $_password = "PASSWORd"; |
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Laravel PHP Framework</title> | |
<style> | |
</style> | |
<script src="https://cdn.socket.io/socket.io-1.2.1.js"></script> |
################################## | |
# WORDPRESS NGINX CONFIGURATIONS | |
################################## | |
# /etc/nginx/wordpress.conf | |
# | |
# Contains a common configuration for use by nginx on a WordPress | |
# installation. This file should be included in any WordPress site | |
# nginx virtual host config located in sites-available with the following line: | |
# | |
# include /etc/nginx/wordpress.config; |
Note: This is mainly useful for instances you are essentially locked out of in the case where you don't want to create a new instance.
vol-6a844e25
and the Root Device which will look something like /dev/sda1
.sudo fdisk -l
/dev/xvdf1
as an example). That will be yo