ForeignKey
final class ForeignKey implements Stringable (View source)
Database ForeignKey Object.
Methods
__construct(string $name, string $table, string $column, string $referenced_table, string $referenced_column)
ForeignKey constructor.
array
toArray()
Get column information array.
static ForeignKey
make(string $name, string $table, string $column, string $referenced_table, string $referenced_column)
Create a instance.
string
belongsTo()
Get the belongsTo relation from this model to another.
string
hasMany()
Get the hasMany relation from another model to this.
string
__toString()
Class magic method to get the instance information for a Exception
Details
__construct(string $name, string $table, string $column, string $referenced_table, string $referenced_column)
ForeignKey constructor.
array
toArray()
Get column information array.
static ForeignKey
make(string $name, string $table, string $column, string $referenced_table, string $referenced_column)
Create a instance.
string
belongsTo()
Get the belongsTo relation from this model to another.
string
hasMany()
Get the hasMany relation from another model to this.
string
__toString()
Class magic method to get the instance information for a Exception