mirror of
https://github.com/flarum/framework.git
synced 2025-05-07 03:52:26 +08:00
29 lines
759 B
Plaintext
29 lines
759 B
Plaintext
<?php
|
|
|
|
namespace Illuminate\Database\Eloquent;
|
|
|
|
/**
|
|
* @implements \ArrayAccess<string, mixed>
|
|
*/
|
|
abstract class Model implements \JsonSerializable, \ArrayAccess
|
|
{
|
|
/**
|
|
* Update the model in the database.
|
|
*
|
|
* @param array<model-property<static>, mixed> $attributes
|
|
* @param array<int|string, mixed> $options
|
|
* @return bool
|
|
*/
|
|
public function update(array $attributes = [], array $options = []);
|
|
|
|
/**
|
|
* Begin querying a model with eager loading.
|
|
*
|
|
* @param non-empty-string|array<int|string, (\Closure)|string> $relations
|
|
* @return \Illuminate\Database\Eloquent\Builder<static>
|
|
*/
|
|
public static function with($relations);
|
|
}
|
|
|
|
class ModelNotFoundException extends \RuntimeException {}
|