mentors

mentors Commit Details


Date:2014-07-06 15:11:35 (10 years 5 months ago)
Author:Right Or Wrong
Branch:develop
Commit:bffed9801daf3bc61f1b9c32aec0e83039b50db7
Parents: 3aeac66099ac2083a52ce1daf1ba8d392a288b26
Message:added deleted_at column for soft deleting users and restoration

Changes:

File differences

app/database/migrations/2014_07_06_040450_alter_users_table_add_deleted_at_column.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AlterUsersTableAddDeletedAtColumn extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('users', function(Blueprint $table)
{
$table->softDeletes();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//do nothing here
}
}
app/models/User.php
1111
1212
1313
14
15
16
1417
1518
19
20
1621
1722
1823
*
* @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');
vendor/autoload.php
44
55
66
7
7
require_once __DIR__ . '/composer' . '/autoload_real.php';
return ComposerAutoloaderInitbe43bf07309bb7897b8d2ad788d8b295::getLoader();
return ComposerAutoloaderInit46430c7e8d8bf02de07ef4ca967be6d2::getLoader();
vendor/composer/autoload_classmap.php
1010
1111
1212
13
1314
1415
1516
......
931932
932933
933934
935
936
934937
935938
936939
'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',
'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',
vendor/composer/autoload_real.php
22
33
44
5
5
66
77
88
......
1919
2020
2121
22
22
2323
24
24
2525
2626
2727
......
4646
4747
4848
49
49
5050
5151
5252
5353
5454
5555
56
56
5757
5858
5959
// autoload_real.php @generated by Composer
class ComposerAutoloaderInitbe43bf07309bb7897b8d2ad788d8b295
class ComposerAutoloaderInit46430c7e8d8bf02de07ef4ca967be6d2
{
private static $loader;
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());
$includeFiles = require __DIR__ . '/autoload_files.php';
foreach ($includeFiles as $file) {
composerRequirebe43bf07309bb7897b8d2ad788d8b295($file);
composerRequire46430c7e8d8bf02de07ef4ca967be6d2($file);
}
return $loader;
}
}
function composerRequirebe43bf07309bb7897b8d2ad788d8b295($file)
function composerRequire46430c7e8d8bf02de07ef4ca967be6d2($file)
{
require $file;
}

Archive Download the corresponding diff file

Branches

Number of commits:
Page rendered in 0.06756s using 13 queries.