$ composer global require "laravel/homestead=~2.0"
$ homestead init
$ homestead edit
$ homestead up
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 AdvisorsExcel\ImportBundle\Entity; | |
/** | |
* Class EntityPlus | |
* | |
* Parent class for generic Doctrine entities that provides a convenience method for populating the entity | |
* from an associative array. | |
*/ |
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\Http\Controllers\Api\V1; | |
use App\Http\Controllers\Controller; | |
use App\Http\Requests; | |
use Illuminate\Http\Request; | |
use Tymon\JWTAuth\Facades\JWTAuth; | |
use Tymon\JWTAuth\Exceptions\JWTException; | |
class AuthenticateController extends Controller | |
{ |
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 | |
/** | |
* @package Dashboard | |
* @version 1.0.0 | |
* @author Ian Olson <[email protected]> | |
* @license MIT | |
* @copyright 2015, Odot Media LLC | |
* @link https://odotmedia.com | |
*/ |
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
@extends($viewNamespace . '::layouts.master') | |
@section('title', 'Dashboard') | |
@section('page-title', 'Dashboard') | |
@section('page-subtitle', '') | |
@section('content') | |
<div class="box"> | |
<div class="box-body" id="form"> | |
{!! BootForm::open()->post()->action(route('users.index')) !!} | |
{!! BootForm::text('First Name', 'first_name') !!} | |
<div v-repeat="items" class="form-group"> |
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
# Quicker navigation | |
alias ..="cd .." | |
alias ...="cd ../.." | |
alias ....="cd ../../.." | |
alias .....="cd ../../../.." | |
alias ......="cd ../../../../.." | |
alias .......="cd ../../../../../.." | |
# Aliases | |
alias ll='ls -l' |
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
/* | |
* Place this with the rest of your rules. | |
* Doesn't need to be in an array as there are no pipes. | |
*/ | |
$rules = array( | |
'password' => 'required|min:6|regex:/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d).+$/' | |
); | |
/* | |
* Use this one if you also require at least one symbol. |
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
alias newpackage='git clone [email protected]:laraflock/skeleton.git newpackage && rm -rf newpackage/.git' |
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\Http\Controllers\Dashboard; | |
use App\Repositories\Setting\SettingRepositoryInterface as Setting; | |
use Illuminate\Database\QueryException; | |
use Illuminate\Http\Request; | |
use Illuminate\Http\Response; | |
use Illuminate\View\View; | |
use Laracasts\Flash\Flash; |
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
# Before Script | |
before_script: | |
- composer install --prefer-dist > /dev/null | |
- cp .env.example .env | |
- php artisan key:generate | |
# Variables | |
variables: | |
MYSQL_ROOT_PASSWORD: root | |
MYSQL_DATABASE: homestead |
OlderNewer