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';
| packages: | |
| yum: | |
| libjpeg-turbo-devel: [] | |
| libpng-devel: [] | |
| libcurl-devel: [] | |
| commands: | |
| 01_install_rhel_pg: | |
| command: "(yum repolist |grep -q pgdg96) || sudo yum install https://download.postgresql.org/pub/repos/yum/9.6/redhat/rhel-6-x86_64/pgdg-ami201503-96-9.6-2.noarch.rpm -y" | |
| 02_install_pg_devel: |
| --- | |
| # file: playbooks/plbk_test_vault.yml | |
| - hosts: localhost | |
| user: include | |
| vars_files: | |
| - ../files/vault/ec2/prd/svc_master_key.yml | |
| tasks: |
| (defun LaTeX-transpose-table (start end) | |
| (interactive "r") | |
| (goto-char start) | |
| (let ((last start) | |
| (rows (list ())) | |
| (nrows 0) | |
| (ncols 0) | |
| (maxcols 0)) | |
| (while (re-search-forward "&\\|\\\\\\\\" end t) | |
| (setf (car rows) |
| RED="\[\033[0;31m\]" | |
| YELLOW="\[\033[0;33m\]" | |
| GREEN="\[\033[0;32m\]" | |
| BLUE="\[\033[0;34m\]" | |
| LIGHT_RED="\[\033[1;31m\]" | |
| LIGHT_GREEN="\[\033[1;32m\]" | |
| WHITE="\[\033[1;37m\]" | |
| LIGHT_GRAY="\[\033[0;37m\]" | |
| COLOR_NONE="\[\e[0m\]" |