Casts
1 month ago
Concerns
1 month ago
Factories
1 month ago
Relations
1 month ago
BroadcastableModelEventOccurred.php
1 month ago
BroadcastsEvents.php
6 months ago
Builder.php
1 month ago
Collection.php
1 month ago
HigherOrderBuilderProxy.php
2 years ago
InvalidCastException.php
2 years ago
JsonEncodingException.php
2 years ago
MassAssignmentException.php
2 years ago
MassPrunable.php
6 months ago
MissingAttributeException.php
1 month ago
Model.php
1 month ago
ModelNotFoundException.php
1 month ago
PendingHasThroughRelationship.php
1 month ago
Prunable.php
2 years ago
QueueEntityResolver.php
2 years ago
RelationNotFoundException.php
2 years ago
Scope.php
2 years ago
SoftDeletes.php
1 month ago
SoftDeletingScope.php
1 month ago
MissingAttributeException.php
21 lines
| 1 | <?php |
| 2 | |
| 3 | namespace IAWPSCOPED\Illuminate\Database\Eloquent; |
| 4 | |
| 5 | use OutOfBoundsException; |
| 6 | /** @internal */ |
| 7 | class MissingAttributeException extends OutOfBoundsException |
| 8 | { |
| 9 | /** |
| 10 | * Create a new missing attribute exception instance. |
| 11 | * |
| 12 | * @param \Illuminate\Database\Eloquent\Model $model |
| 13 | * @param string $key |
| 14 | * @return void |
| 15 | */ |
| 16 | public function __construct($model, $key) |
| 17 | { |
| 18 | parent::__construct(\sprintf('The attribute [%s] either does not exist or was not retrieved for model [%s].', $key, \get_class($model))); |
| 19 | } |
| 20 | } |
| 21 |