parent
4f762cf361
commit
de04af8e9b
|
@ -66,7 +66,7 @@ class EloquentUserProvider implements UserProvider
|
|||
$model = $model->where($model->getAuthIdentifierName(), $identifier)->first();
|
||||
|
||||
if (! $model) {
|
||||
return null;
|
||||
return;
|
||||
}
|
||||
|
||||
$rememberToken = $model->getRememberToken();
|
||||
|
|
|
@ -105,7 +105,7 @@ class Collection extends BaseCollection implements QueueableCollection
|
|||
* @param array $path
|
||||
* @return void
|
||||
*/
|
||||
protected function loadMissingRelation(Collection $models, array $path)
|
||||
protected function loadMissingRelation(self $models, array $path)
|
||||
{
|
||||
$relation = array_splice($path, 0, 1);
|
||||
|
||||
|
|
|
@ -160,7 +160,7 @@ trait ConditionallyLoadsAttributes
|
|||
}
|
||||
|
||||
if ($this->resource->{$relationship} === null) {
|
||||
return null;
|
||||
return;
|
||||
}
|
||||
|
||||
return value($value);
|
||||
|
|
|
@ -194,8 +194,6 @@ class DatabaseQueue extends Queue implements QueueContract
|
|||
if ($job = $this->getNextAvailableJob($queue)) {
|
||||
return $this->marshalJob($queue, $job);
|
||||
}
|
||||
|
||||
return null;
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -84,7 +84,7 @@ class Comment extends Model
|
|||
|
||||
public function parent()
|
||||
{
|
||||
return $this->belongsTo(Comment::class);
|
||||
return $this->belongsTo(self::class);
|
||||
}
|
||||
|
||||
public function revisions()
|
||||
|
|
|
@ -53,7 +53,7 @@ class Comment extends Model
|
|||
|
||||
public function parent()
|
||||
{
|
||||
return $this->belongsTo(Comment::class);
|
||||
return $this->belongsTo(self::class);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -13,6 +13,5 @@ class NullableManager extends Manager
|
|||
*/
|
||||
public function getDefaultDriver()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
<?php echo $__env->yieldContent('content'); ?>
|
||||
<?php echo $__env->yieldContent('content');
|
||||
|
|
Loading…
Reference in New Issue