mirror of
https://gitlab.com/TheGamecraft/c-cms.git
synced 2026-04-23 11:29:10 -04:00
ALPHA 3.0.2
This commit is contained in:
@@ -35,7 +35,7 @@ class Response
|
||||
/**
|
||||
* Get the string representation of the message.
|
||||
*
|
||||
* @return string
|
||||
* @return string|null
|
||||
*/
|
||||
public function __toString()
|
||||
{
|
||||
|
||||
0
vendor/laravel/framework/src/Illuminate/Auth/AuthManager.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Auth/AuthManager.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Auth/AuthServiceProvider.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Auth/AuthServiceProvider.php
vendored
Normal file → Executable file
9
vendor/laravel/framework/src/Illuminate/Auth/DatabaseUserProvider.php
vendored
Normal file → Executable file
9
vendor/laravel/framework/src/Illuminate/Auth/DatabaseUserProvider.php
vendored
Normal file → Executable file
@@ -4,6 +4,7 @@ namespace Illuminate\Auth;
|
||||
|
||||
use Illuminate\Support\Str;
|
||||
use Illuminate\Contracts\Auth\UserProvider;
|
||||
use Illuminate\Contracts\Support\Arrayable;
|
||||
use Illuminate\Database\ConnectionInterface;
|
||||
use Illuminate\Contracts\Hashing\Hasher as HasherContract;
|
||||
use Illuminate\Contracts\Auth\Authenticatable as UserContract;
|
||||
@@ -110,7 +111,13 @@ class DatabaseUserProvider implements UserProvider
|
||||
$query = $this->conn->table($this->table);
|
||||
|
||||
foreach ($credentials as $key => $value) {
|
||||
if (! Str::contains($key, 'password')) {
|
||||
if (Str::contains($key, 'password')) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (is_array($value) || $value instanceof Arrayable) {
|
||||
$query->whereIn($key, $value);
|
||||
} else {
|
||||
$query->where($key, $value);
|
||||
}
|
||||
}
|
||||
|
||||
9
vendor/laravel/framework/src/Illuminate/Auth/EloquentUserProvider.php
vendored
Normal file → Executable file
9
vendor/laravel/framework/src/Illuminate/Auth/EloquentUserProvider.php
vendored
Normal file → Executable file
@@ -4,6 +4,7 @@ namespace Illuminate\Auth;
|
||||
|
||||
use Illuminate\Support\Str;
|
||||
use Illuminate\Contracts\Auth\UserProvider;
|
||||
use Illuminate\Contracts\Support\Arrayable;
|
||||
use Illuminate\Contracts\Hashing\Hasher as HasherContract;
|
||||
use Illuminate\Contracts\Auth\Authenticatable as UserContract;
|
||||
|
||||
@@ -113,7 +114,13 @@ class EloquentUserProvider implements UserProvider
|
||||
$query = $this->createModel()->newQuery();
|
||||
|
||||
foreach ($credentials as $key => $value) {
|
||||
if (! Str::contains($key, 'password')) {
|
||||
if (Str::contains($key, 'password')) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (is_array($value) || $value instanceof Arrayable) {
|
||||
$query->whereIn($key, $value);
|
||||
} else {
|
||||
$query->where($key, $value);
|
||||
}
|
||||
}
|
||||
|
||||
0
vendor/laravel/framework/src/Illuminate/Auth/GenericUser.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Auth/GenericUser.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Auth/Passwords/DatabaseTokenRepository.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Auth/Passwords/DatabaseTokenRepository.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Auth/Passwords/PasswordBroker.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Auth/Passwords/PasswordBroker.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Auth/Passwords/PasswordResetServiceProvider.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Auth/Passwords/PasswordResetServiceProvider.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Auth/Passwords/TokenRepositoryInterface.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Auth/Passwords/TokenRepositoryInterface.php
vendored
Normal file → Executable file
@@ -84,7 +84,7 @@ class PusherBroadcaster extends Broadcaster
|
||||
*/
|
||||
protected function decodePusherResponse($request, $response)
|
||||
{
|
||||
if (! $request->callback) {
|
||||
if (! $request->input('callback', false)) {
|
||||
return json_decode($response, true);
|
||||
}
|
||||
|
||||
|
||||
0
vendor/laravel/framework/src/Illuminate/Cache/ApcStore.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Cache/ApcStore.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Cache/ApcWrapper.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Cache/ApcWrapper.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Cache/CacheServiceProvider.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Cache/CacheServiceProvider.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Cache/Console/ClearCommand.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Cache/Console/ClearCommand.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Cache/Console/ForgetCommand.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Cache/Console/ForgetCommand.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Cache/DatabaseStore.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Cache/DatabaseStore.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Cache/FileStore.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Cache/FileStore.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Cache/MemcachedConnector.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Cache/MemcachedConnector.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Cache/MemcachedStore.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Cache/MemcachedStore.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Cache/NullStore.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Cache/NullStore.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Cache/RedisStore.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Cache/RedisStore.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Cache/Repository.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Cache/Repository.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Cache/composer.json
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Cache/composer.json
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Config/composer.json
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Config/composer.json
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Console/Application.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Console/Application.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Console/Command.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Console/Command.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Console/composer.json
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Console/composer.json
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Container/Container.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Container/Container.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Container/composer.json
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Container/composer.json
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Contracts/Support/Arrayable.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Contracts/Support/Arrayable.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Contracts/Support/Jsonable.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Contracts/Support/Jsonable.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Contracts/Support/MessageProvider.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Contracts/Support/MessageProvider.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Contracts/Support/Renderable.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Contracts/Support/Renderable.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Contracts/Translation/Loader.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Contracts/Translation/Loader.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Contracts/View/Engine.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Contracts/View/Engine.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Cookie/CookieJar.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Cookie/CookieJar.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Cookie/CookieServiceProvider.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Cookie/CookieServiceProvider.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Cookie/composer.json
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Cookie/composer.json
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Capsule/Manager.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Capsule/Manager.php
vendored
Normal file → Executable file
2
vendor/laravel/framework/src/Illuminate/Database/Connection.php
vendored
Normal file → Executable file
2
vendor/laravel/framework/src/Illuminate/Database/Connection.php
vendored
Normal file → Executable file
@@ -929,7 +929,7 @@ class Connection implements ConnectionInterface
|
||||
return $this->getPdo();
|
||||
}
|
||||
|
||||
if ($this->getConfig('sticky') && $this->recordsModified) {
|
||||
if ($this->recordsModified && $this->getConfig('sticky')) {
|
||||
return $this->getPdo();
|
||||
}
|
||||
|
||||
|
||||
0
vendor/laravel/framework/src/Illuminate/Database/ConnectionInterface.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/ConnectionInterface.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/ConnectionResolver.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/ConnectionResolver.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/ConnectionResolverInterface.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/ConnectionResolverInterface.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectorInterface.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectorInterface.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Connectors/PostgresConnector.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Connectors/PostgresConnector.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Connectors/SQLiteConnector.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Connectors/SQLiteConnector.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Connectors/SqlServerConnector.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Connectors/SqlServerConnector.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Console/Migrations/BaseCommand.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Console/Migrations/BaseCommand.php
vendored
Normal file → Executable file
@@ -35,9 +35,15 @@ class FreshCommand extends Command
|
||||
return;
|
||||
}
|
||||
|
||||
$this->dropAllTables(
|
||||
$database = $this->input->getOption('database')
|
||||
);
|
||||
$database = $this->input->getOption('database');
|
||||
|
||||
if ($this->option('drop-views')) {
|
||||
$this->dropAllViews($database);
|
||||
|
||||
$this->info('Dropped all views successfully.');
|
||||
}
|
||||
|
||||
$this->dropAllTables($database);
|
||||
|
||||
$this->info('Dropped all tables successfully.');
|
||||
|
||||
@@ -65,6 +71,19 @@ class FreshCommand extends Command
|
||||
->dropAllTables();
|
||||
}
|
||||
|
||||
/**
|
||||
* Drop all of the database views.
|
||||
*
|
||||
* @param string $database
|
||||
* @return void
|
||||
*/
|
||||
protected function dropAllViews($database)
|
||||
{
|
||||
$this->laravel['db']->connection($database)
|
||||
->getSchemaBuilder()
|
||||
->dropAllViews();
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine if the developer has requested database seeding.
|
||||
*
|
||||
@@ -100,6 +119,8 @@ class FreshCommand extends Command
|
||||
return [
|
||||
['database', null, InputOption::VALUE_OPTIONAL, 'The database connection to use.'],
|
||||
|
||||
['drop-views', null, InputOption::VALUE_NONE, 'Drop all tables and views.'],
|
||||
|
||||
['force', null, InputOption::VALUE_NONE, 'Force the operation to run when in production.'],
|
||||
|
||||
['path', null, InputOption::VALUE_OPTIONAL, 'The path to the migrations files to be executed.'],
|
||||
|
||||
0
vendor/laravel/framework/src/Illuminate/Database/Console/Migrations/InstallCommand.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Console/Migrations/InstallCommand.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Console/Migrations/MigrateCommand.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Console/Migrations/MigrateCommand.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Console/Migrations/RefreshCommand.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Console/Migrations/RefreshCommand.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Console/Migrations/ResetCommand.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Console/Migrations/ResetCommand.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Console/Migrations/RollbackCommand.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Console/Migrations/RollbackCommand.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/DatabaseServiceProvider.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/DatabaseServiceProvider.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Eloquent/Collection.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Eloquent/Collection.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Eloquent/MassAssignmentException.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Eloquent/MassAssignmentException.php
vendored
Normal file → Executable file
@@ -124,6 +124,13 @@ abstract class Model implements ArrayAccess, Arrayable, Jsonable, JsonSerializab
|
||||
*/
|
||||
protected static $globalScopes = [];
|
||||
|
||||
/**
|
||||
* The list of models classes that should not be affected with touch.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected static $ignoreOnTouch = [];
|
||||
|
||||
/**
|
||||
* The name of the "created at" column.
|
||||
*
|
||||
@@ -215,6 +222,54 @@ abstract class Model implements ArrayAccess, Arrayable, Jsonable, JsonSerializab
|
||||
static::$globalScopes = [];
|
||||
}
|
||||
|
||||
/**
|
||||
* Disables relationship model touching for the current class during given callback scope.
|
||||
*
|
||||
* @param callable $callback
|
||||
* @return void
|
||||
*/
|
||||
public static function withoutTouching(callable $callback)
|
||||
{
|
||||
static::withoutTouchingOn([static::class], $callback);
|
||||
}
|
||||
|
||||
/**
|
||||
* Disables relationship model touching for the given model classes during given callback scope.
|
||||
*
|
||||
* @param array $models
|
||||
* @param callable $callback
|
||||
* @return void
|
||||
*/
|
||||
public static function withoutTouchingOn(array $models, callable $callback)
|
||||
{
|
||||
static::$ignoreOnTouch = array_values(array_merge(static::$ignoreOnTouch, $models));
|
||||
|
||||
try {
|
||||
call_user_func($callback);
|
||||
} finally {
|
||||
static::$ignoreOnTouch = array_values(array_diff(static::$ignoreOnTouch, $models));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine if the given model is ignoring touches.
|
||||
*
|
||||
* @param string|null $class
|
||||
* @return bool
|
||||
*/
|
||||
public static function isIgnoringTouch($class = null)
|
||||
{
|
||||
$class = $class ?: static::class;
|
||||
|
||||
foreach (static::$ignoreOnTouch as $ignoredClass) {
|
||||
if ($class === $ignoredClass || is_subclass_of($class, $ignoredClass)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Fill the model with an array of attributes.
|
||||
*
|
||||
|
||||
0
vendor/laravel/framework/src/Illuminate/Database/Eloquent/ModelNotFoundException.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Eloquent/ModelNotFoundException.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Eloquent/RelationNotFoundException.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Eloquent/RelationNotFoundException.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/BelongsTo.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/BelongsTo.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/BelongsToMany.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/BelongsToMany.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/HasMany.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/HasMany.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/HasOne.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/HasOne.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/HasOneOrMany.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/HasOneOrMany.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/MorphMany.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/MorphMany.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/MorphOne.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/MorphOne.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/MorphOneOrMany.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/MorphOneOrMany.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/Pivot.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/Pivot.php
vendored
Normal file → Executable file
8
vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/Relation.php
vendored
Normal file → Executable file
8
vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/Relation.php
vendored
Normal file → Executable file
@@ -161,9 +161,13 @@ abstract class Relation
|
||||
*/
|
||||
public function touch()
|
||||
{
|
||||
$column = $this->getRelated()->getUpdatedAtColumn();
|
||||
$model = $this->getRelated();
|
||||
|
||||
$this->rawUpdate([$column => $this->getRelated()->freshTimestampString()]);
|
||||
if (! $model::isIgnoringTouch()) {
|
||||
$this->rawUpdate([
|
||||
$model->getUpdatedAtColumn() => $model->freshTimestampString(),
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
0
vendor/laravel/framework/src/Illuminate/Database/Grammar.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Grammar.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/MigrationServiceProvider.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/MigrationServiceProvider.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Migrations/DatabaseMigrationRepository.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Migrations/DatabaseMigrationRepository.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Migrations/Migration.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Migrations/Migration.php
vendored
Normal file → Executable file
7
vendor/laravel/framework/src/Illuminate/Database/Migrations/MigrationCreator.php
vendored
Normal file → Executable file
7
vendor/laravel/framework/src/Illuminate/Database/Migrations/MigrationCreator.php
vendored
Normal file → Executable file
@@ -61,7 +61,7 @@ class MigrationCreator
|
||||
// Next, we will fire any hooks that are supposed to fire after a migration is
|
||||
// created. Once that is done we'll be ready to return the full path to the
|
||||
// migration file so it can be used however it's needed by the developer.
|
||||
$this->firePostCreateHooks();
|
||||
$this->firePostCreateHooks($table);
|
||||
|
||||
return $path;
|
||||
}
|
||||
@@ -150,12 +150,13 @@ class MigrationCreator
|
||||
/**
|
||||
* Fire the registered post create hooks.
|
||||
*
|
||||
* @param string $table
|
||||
* @return void
|
||||
*/
|
||||
protected function firePostCreateHooks()
|
||||
protected function firePostCreateHooks($table)
|
||||
{
|
||||
foreach ($this->postCreate as $callback) {
|
||||
call_user_func($callback);
|
||||
call_user_func($callback, $table);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
0
vendor/laravel/framework/src/Illuminate/Database/Migrations/MigrationRepositoryInterface.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Migrations/MigrationRepositoryInterface.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Migrations/stubs/blank.stub
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Migrations/stubs/blank.stub
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Migrations/stubs/create.stub
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Migrations/stubs/create.stub
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Migrations/stubs/update.stub
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Migrations/stubs/update.stub
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/PostgresConnection.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/PostgresConnection.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Query/Expression.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Query/Expression.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Query/Grammars/Grammar.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Query/Grammars/Grammar.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Query/Grammars/MySqlGrammar.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Query/Grammars/MySqlGrammar.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Query/Grammars/PostgresGrammar.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Query/Grammars/PostgresGrammar.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Query/Grammars/SQLiteGrammar.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Query/Grammars/SQLiteGrammar.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Query/Grammars/SqlServerGrammar.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Query/Grammars/SqlServerGrammar.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Query/JoinClause.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Query/JoinClause.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Query/Processors/PostgresProcessor.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Query/Processors/PostgresProcessor.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Query/Processors/Processor.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Query/Processors/Processor.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Query/Processors/SqlServerProcessor.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Database/Query/Processors/SqlServerProcessor.php
vendored
Normal file → Executable file
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user