Let's generate User model and controller.
mix ecto.create
mix phoenix.gen.json Accounts User users email:string password_hash:string
var scripts = ['app.a700a9a3e91a84de5dc0.js']; // script for all users | |
var newBrowser = ( | |
'fetch' in window && | |
'Promise' in window && | |
'assign' in Object && | |
'keys' in Object | |
); | |
if (!newBrowser) { |
Accept */* | |
Content-Length 145 | |
Content-Type application/x-www-form-urlencoded; charset=UTF-8 | |
User-Agent Nexmo/MessagingHUB/v1.0 | |
X-Forwarded-For 174.36.197.202 | |
X-Forwarded-Proto https |
<?php | |
namespace App\Http\Controllers\Auth; | |
use Illuminate\Http\Request; | |
use App\Http\Requests; | |
use App\Http\Controllers\Controller; | |
use GuzzleHttp\Client; |
Emacs packages, features, files, layers, extensions, auto-loading, require
,
provide
, use-package
… All these terms getting you confused? Let’s clear up
a few things.
Emacs files contains code that can be evaluated. When evaluated, the functions, macros and modes defined in that file become available to the current Emacs session. Henceforth, this will be termed as loading a file.
One major problem is to ensure that all the correct files are loaded, and in the
/** | |
* Destroy the user's session (logout). | |
* | |
* @return Response | |
*/ | |
public function destroy() | |
{ | |
Auth::logout(); | |
flash()->info('You are now logged out.'); |
<div id="demo"> | |
<h1>{{bob.fields.firstName}} {{bob.fields.lastName}}</h1> | |
</div> | |
<ul id="humans-list"> | |
<li v-repeat="humans"> | |
{{fields.firstName}} {{fields.lastName}} | |
</li> | |
</ul> |
<?php | |
namespace Money; | |
class Bitcoin { | |
#const BITCOIN_NODE = '173.224.125.222'; // w001.mo.us temporary | |
const BITCOIN_NODE = '50.97.137.37'; | |
static private $pending = array(); | |
public static function update() { |
" Note: To add this to your .vimrc, you'll have to delete any character that is written with a caret (e.g. "^M") and enter the real value; to enter ^M, enter insert mode and type CTRL-V CTRL-M. | |
" Easily create class. | |
function! Class() | |
let name = input('Class Name? ') | |
let namespace = input('Any Namespace? ') | |
if strlen(namespace) | |
exec 'normal i<?php namespace ' . namespace . ';^M^M^[' | |
else |