This file contains hidden or 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\Database\Capsule\Manager as Capsule; | |
| use \User; | |
| use BehatEditor\Models\Team; | |
| use BehatEditor\Models\Project; | |
| use BehatEditor\Models\Site; | |
| use Faker\Factory as Faker; |
This file contains hidden or 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
| Capsule::schema()->create('project_url', function($table) | |
| { | |
| $table->increments('id'); | |
| $table->string('project_id', 36)->index(); | |
| $table->foreign('project_id')->references('id')->on('projects')->onDelete('cascade'); | |
| $table->string('url_id', 36)->index(); | |
| $table->foreign('url_id')->references('id')->on('urls')->onDelete('cascade'); | |
| }); |
This file contains hidden or 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
| if(Config::get('database.default') != 'sqlite') { | |
| DB::statement('SET FOREIGN_KEY_CHECKS=0;'); | |
| } |
This file contains hidden or 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 alertServices = angular.module('alertServices', []); | |
| alertServices. | |
| factory('addAlert', ['$rootScope', | |
| function($rootScope){ | |
| return function(type, message, $scope) { | |
| $scope.alerts.push({ type: type, msg: message}); | |
| } | |
| }]). | |
| factory('closeAlert', ['$rootScope', |
This file contains hidden or 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
| { | |
| "name": "alnutile/behat_editor", | |
| "description": "yml file and FeatureContext.php needed for other modules to extend it", | |
| "license": "GPL2.0+", | |
| "type": "library", | |
| "authors": [ | |
| { | |
| "name": "Alfred Nutile", | |
| "email": "[email protected]" | |
| } |
This file contains hidden or 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
| app.config(['$routeProvider', | |
| function ($routeProvider) { | |
| $routeProvider. | |
| when('/', { | |
| templateUrl: 'assets/js/templates/dash/dashboard.html', | |
| controller: 'DashboardCtrl', | |
| resolve: { | |
| current_user: function(getCurrentUser) { | |
| return getCurrentUser; | |
| } |
This file contains hidden or 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
| { | |
| "require": { | |
| "php": ">=5.4.0", | |
| "davedevelopment/phpmig": "1.1.*@dev", | |
| "silex/silex": "2.0.*@dev", | |
| "vlucas/phpdotenv": "1.0.6", | |
| "symfony/event-dispatcher": ">=2.3", | |
| "illuminate/database": "*", | |
| "illuminate/container": "*" | |
| }, |
This file contains hidden or 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
| { | |
| "name": "alnutile/REPO_NAME", | |
| "type": "library", | |
| "description": "", | |
| "keywords": [], | |
| "homepage": "https://github.com/alnutile/REPO_NAME", | |
| "license": "MIT", | |
| "authors": [ | |
| { | |
| "name": "Alfred Nutile", |
This file contains hidden or 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
| $table->increments('id'); | |
| $table->boolean('published')->default(0); | |
| $table->dateTime('published_at')->nullable(); | |
| $table->integer('published_by')->nullable(); | |
| $table->integer('status_state_id')->nullable(); | |
| $table->integer('off_market_reason_id')->nullable(); | |
| $table->decimal('sale_price', 10, 2)->nullable(); | |
| $table->string('cap_rate')->nullable(); | |
| $table->string('commission_split')->nullable(); | |
| $table->integer('occupancy')->default(0); |