This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible " be iMproved, required | |
filetype off " required | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
Plugin 'VundleVim/Vundle.vim' | |
Plugin 'bling/vim-airline' | |
Plugin 'airblade/vim-gitgutter' | |
Plugin 'ctrlpvim/ctrlp.vim' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
trait ViewAssertionsUtils | |
{ | |
/** | |
* Tests to see whether the view template provided is the one | |
* used in the rendered view. | |
* | |
* @param string | |
* @return \Illuminate\Foundation\Testing\TestCase |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
trait MakeHttpRequests | |
{ | |
/** | |
* Visit the given route with a GET request. | |
* | |
* @param string $uri | |
* @param array $headers | |
* @return $this |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
trait InteractsWithPages | |
{ | |
/** | |
* Assert that the current route matches the given one. | |
* | |
* @param string $route_name | |
* @return $this | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(function () { | |
var larails = { | |
// Define the name of the hidden input field for method submission | |
methodInputName: '_method', | |
// Define the name of the hidden input field for token submission | |
tokenInputName: '_token', | |
// Define the name of the meta tag from where we can get the csrf-token | |
metaNameToken: 'csrf-token', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Traits; | |
use Illuminate\Support\Facades\Hash; | |
use Illuminate\Support\Facades\Validator; | |
trait HasSecurePassword | |
{ | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App; | |
use App\Traits\HasSecurePassword; | |
use Illuminate\Database\Eloquent\Model; | |
class User extends Model | |
{ | |
use HasSecurePassword; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use App\User; | |
use Illuminate\Http\Request; | |
/* | |
|-------------------------------------------------------------------------- | |
| Web Routes | |
|-------------------------------------------------------------------------- | |
| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Login View --> | |
<form action="/login" method="POST"> | |
{{ csrf_field() }} | |
<input type="email" name="email" placeholder="email"><br> | |
<input type="password" name="password" placeholder="password"><br> | |
<input type="submit"> | |
</form> | |
<!-- End Login View --> | |
<!-- Register View --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Illuminate\Support\Facades\Schema; | |
use Illuminate\Database\Schema\Blueprint; | |
use Illuminate\Database\Migrations\Migration; | |
class CreateUsersTable extends Migration | |
{ | |
/** | |
* Run the migrations. |
OlderNewer