AddForeignkeysToUsersTable
public function up()
{
Schema::table('users', function($table) {
$table->foreign('department_id')->references('id')->on('departments');
$table->foreign('role_id')->references('id')->on('roles');
});
}
| <!DOCTYPE html> | |
| <meta charset="utf-8"> | |
| <link rel="stylesheet" href="http://cmx.io/v/0.1/cmx.css"/> | |
| <script src="http://cmx.io/v/0.1/cmx.js"></script> | |
| <style>.cmx-user-scene4 .cmx-text-border .cmx-path {stroke: orange}</style> | |
| <body> | |
| <div style="max-width:900px; -webkit-transform:rotate(0deg);"> | |
| <scene id="scene1"> | |
| <label t="translate(0,346)"> |
| <!DOCTYPE html> | |
| <meta charset="utf-8"> | |
| <link rel="stylesheet" href="http://cmx.io/v/0.1/cmx.css"/> | |
| <script src="http://cmx.io/v/0.1/cmx.js"></script> | |
| <body> | |
| <scene id="scene1"> | |
| <label t="translate(0,346)"> | |
| <tspan x="0" y="0em">Comix Sample</tspan> | |
| </label> | |
| <actor t="translate(131,49)" pose="-11,9|-5,117|-11,99|-11,89|-11,79|-11,59|-16,34|-21,9|-6,34|-1,9|-18,79|-18,59|-6,79|-1,59"> |
AddForeignkeysToUsersTable
public function up()
{
Schema::table('users', function($table) {
$table->foreign('department_id')->references('id')->on('departments');
$table->foreign('role_id')->references('id')->on('roles');
});
}
These gists are no longer updated because gists cannot handle directories.
I hereby claim:
To claim this, I am signing this object:
The following has been superseded by https://github.com/thunderrabbit/new-DH-user-account
From their panel -> Domains -> Manage Domains -> Add Hosting to a Domain / Sub-domain
fill in the blanks, including create a new user
Make sure the new user is a shell user at https://panel.dreamhost.com/index.cgi?tree=users.users
| Verifying that "14A96SQ2a9iFr7yvPQLBhn6h6LCLC9wpMg.id" is my Blockstack ID. https://onename.com/14A96SQ2a9iFr7yvPQLBhn6h6LCLC9wpMg |
| (defvar journal-site-location "~/journal/" | |
| "The location of the journal files.") | |
| (defun journal-new-post (title tags yyyy mm dd) | |
| "Create a new journal post for today with TITLE and TAG." | |
| (interactive (list | |
| (read-string "Title: ") | |
| (read-string "Tag: ") | |
| (read-string (format "Year (%s): " (format-time-string "%Y")) nil nil (format-time-string "%Y")) | |
| (read-string (format "Month (%s): " (format-time-string "%m")) nil nil (format-time-string "%m")) |
| (defvar journal-site-location "~/journal/" | |
| "The location of the journal files.") | |
| (defun journal-new-post (title tags yyyy mm dd) | |
| "Create a new journal post for today with TITLE and TAG." | |
| (interactive (list | |
| (read-string "Title: ") | |
| (journal-read-tags) | |
| (read-string (format "Year (%s): " (format-time-string "%Y")) nil nil (format-time-string "%Y")) | |
| (read-string (format "Month (%s): " (format-time-string "%m")) nil nil (format-time-string "%m")) |