diff --git a/app/database/migrations/2014_07_06_040450_alter_users_table_add_deleted_at_column.php b/app/database/migrations/2014_07_06_040450_alter_users_table_add_deleted_at_column.php new file mode 100644 index 0000000..1ba4bed --- /dev/null +++ b/app/database/migrations/2014_07_06_040450_alter_users_table_add_deleted_at_column.php @@ -0,0 +1,31 @@ +softDeletes(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + //do nothing here + } + +} diff --git a/app/models/User.php b/app/models/User.php index f5c99d3..8992b22 100755 --- a/app/models/User.php +++ b/app/models/User.php @@ -11,8 +11,13 @@ class User extends Eloquent implements UserInterface, RemindableInterface { * * @var string */ + + use SoftDeletingTrait; + protected $table = 'users'; + protected $dates = ['deleted_at']; + protected $fillable = array( 'first', 'last', 'email', 'password', 'location', 'skills', 'photo', 'bio', 'remember_token', 'level'); diff --git a/vendor/autoload.php b/vendor/autoload.php index d4dd2f4..a451a27 100755 --- a/vendor/autoload.php +++ b/vendor/autoload.php @@ -4,4 +4,4 @@ require_once __DIR__ . '/composer' . '/autoload_real.php'; -return ComposerAutoloaderInitbe43bf07309bb7897b8d2ad788d8b295::getLoader(); +return ComposerAutoloaderInit46430c7e8d8bf02de07ef4ca967be6d2::getLoader(); diff --git a/vendor/composer/autoload_classmap.php b/vendor/composer/autoload_classmap.php index 4f006c9..43e0de3 100755 --- a/vendor/composer/autoload_classmap.php +++ b/vendor/composer/autoload_classmap.php @@ -10,6 +10,7 @@ return array( 'AlterUserTableAddAdminColumn' => $baseDir . '/app/database/migrations/2014_06_29_233811_alter_user_table_add_admin_column.php', 'AlterUserTableAddColumns' => $baseDir . '/app/database/migrations/2014_06_28_024032_alter_user_table_add_columns.php', 'AlterUserTableReplaceColumn' => $baseDir . '/app/database/migrations/2014_06_29_015251_alter_user_table_replace_column.php', + 'AlterUsersTableAddDeletedAtColumn' => $baseDir . '/app/database/migrations/2014_07_06_040450_alter_users_table_add_deleted_at_column.php', 'BaseController' => $baseDir . '/app/controllers/BaseController.php', 'Boris\\Boris' => $vendorDir . '/d11wtq/boris/lib/Boris/Boris.php', 'Boris\\CLIOptionsHandler' => $vendorDir . '/d11wtq/boris/lib/Boris/CLIOptionsHandler.php', @@ -931,6 +932,8 @@ return array( 'Predis\\Session\\SessionHandler' => $vendorDir . '/predis/predis/lib/Predis/Session/SessionHandler.php', 'Predis\\Transaction\\AbortedMultiExecException' => $vendorDir . '/predis/predis/lib/Predis/Transaction/AbortedMultiExecException.php', 'Predis\\Transaction\\MultiExecContext' => $vendorDir . '/predis/predis/lib/Predis/Transaction/MultiExecContext.php', + 'Project' => $baseDir . '/app/models/Project.php', + 'ProjectsController' => $baseDir . '/app/controllers/ProjectsController.php', 'Psr\\Log\\AbstractLogger' => $vendorDir . '/psr/log/Psr/Log/AbstractLogger.php', 'Psr\\Log\\InvalidArgumentException' => $vendorDir . '/psr/log/Psr/Log/InvalidArgumentException.php', 'Psr\\Log\\LogLevel' => $vendorDir . '/psr/log/Psr/Log/LogLevel.php', diff --git a/vendor/composer/autoload_real.php b/vendor/composer/autoload_real.php index aceb6f8..82292a7 100755 --- a/vendor/composer/autoload_real.php +++ b/vendor/composer/autoload_real.php @@ -2,7 +2,7 @@ // autoload_real.php @generated by Composer -class ComposerAutoloaderInitbe43bf07309bb7897b8d2ad788d8b295 +class ComposerAutoloaderInit46430c7e8d8bf02de07ef4ca967be6d2 { private static $loader; @@ -19,9 +19,9 @@ class ComposerAutoloaderInitbe43bf07309bb7897b8d2ad788d8b295 return self::$loader; } - spl_autoload_register(array('ComposerAutoloaderInitbe43bf07309bb7897b8d2ad788d8b295', 'loadClassLoader'), true, true); + spl_autoload_register(array('ComposerAutoloaderInit46430c7e8d8bf02de07ef4ca967be6d2', 'loadClassLoader'), true, true); self::$loader = $loader = new \Composer\Autoload\ClassLoader(); - spl_autoload_unregister(array('ComposerAutoloaderInitbe43bf07309bb7897b8d2ad788d8b295', 'loadClassLoader')); + spl_autoload_unregister(array('ComposerAutoloaderInit46430c7e8d8bf02de07ef4ca967be6d2', 'loadClassLoader')); $includePaths = require __DIR__ . '/include_paths.php'; array_push($includePaths, get_include_path()); @@ -46,14 +46,14 @@ class ComposerAutoloaderInitbe43bf07309bb7897b8d2ad788d8b295 $includeFiles = require __DIR__ . '/autoload_files.php'; foreach ($includeFiles as $file) { - composerRequirebe43bf07309bb7897b8d2ad788d8b295($file); + composerRequire46430c7e8d8bf02de07ef4ca967be6d2($file); } return $loader; } } -function composerRequirebe43bf07309bb7897b8d2ad788d8b295($file) +function composerRequire46430c7e8d8bf02de07ef4ca967be6d2($file) { require $file; }