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
var registration = { | |
create: function() { | |
var status = null; | |
var data = { | |
id: '', | |
status: '' | |
}; | |
this.setStatus = function(value) { |
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
@servers(['web' => '111.111.111.111']) | |
@task('deploy') | |
cd /var/www | |
git pull origin master | |
composer install | |
php artisan migrate | |
@endtask |
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
/** | |
* Interceptor | |
* Implements functionality to catch various requests and fire events when they happen. This is generally to ensure | |
* that responses from the server are handled in a uniform fashion across the application. Also, by firing events | |
* it allows to have any number of handlers attach to the response. | |
* | |
* @author Kirk Bushell | |
* @date 28th March 2013 | |
*/ | |
var module = angular.module('core.interceptor', []); |
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
// Load all the required plugins. | |
var gulp = require('gulp'), | |
notify = require('gulp-notify'), | |
exec = require('gulp-exec'), | |
uglify = require('gulp-uglify'), | |
concat = require('gulp-concat'), | |
jshint = require('gulp-jshint'), | |
rename = require('gulp-rename'); | |
var input = 'assets/', |
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
class ValidationServiceProvider extends ServiceProvider | |
{ | |
/** | |
* Indicates if loading of the provider is deferred. | |
* | |
* @var bool | |
*/ | |
protected $defer = true; | |
public function register() |
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
class UsersServiceProvider extends ServiceProvider | |
{ | |
/** | |
* Defer until needed. | |
*/ | |
public $defer = true; | |
/** | |
* Repositories defined by the users module. | |
* |
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
use Illuminate\Foundation\Http\Kernel as HttpKernel; | |
use Illuminate\Pipeline\Pipeline; | |
class Kernel extends HttpKernel | |
{ | |
/** | |
* The application's global HTTP middleware stack. | |
* | |
* @var 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 Modules\User\Http\Requests; | |
use Illuminate\Foundation\Http\FormRequest; | |
class UpdateUserRequest extends FormRequest | |
{ | |
public function rules() | |
{ | |
return [ | |
'email' => "required|email|unique:users,email,{$this->user->id}", |
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 AwardForce\Library\Exceptions; | |
use AwardForce\Library\Http\FormInputOutdatedException; | |
use AwardForce\Library\Http\Messaging; | |
use AwardForce\Library\Traits\Respondable; | |
use AwardForce\Modules\Accounts\AccountNotFoundException; | |
use Exception; | |
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler; | |
use Illuminate\Http\Response; |
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
#models | |
class Link < ActiveRecord::Base | |
has_many :link_urls | |
accepts_nested_attributes_for :link_urls, :allow_destroy => true #, :reject_if => lambda { |a| a[:url].blank? } | |
end | |
class LinkUrl < ActiveRecord::Base | |
belongs_to :link | |
end |
OlderNewer