Property | Type | Description | |
---|---|---|---|
$app | Illuminate\Contracts\Foundation\Application | ||
$model |
Method | Description | |
---|---|---|
__construct ( Illuminate\Contracts\Foundation\Application $app, |
||
all ( ) : static | Returns all from the current model. | |
findById ( integer $id ) : |
||
findByName ( string $name ) : |
||
getList ( string | integer $value, string $key = 'id' ) : Illuminate\Database\Eloquent\Collection | ||
make ( array $with = [] ) : |
Set Relationships. | |
newInstance ( array $attributes = [] ) : static | Return a new instance of the current model. | |
paginate ( integer $perPage = 10 ) : static | Return paginated results. |
public __construct ( Illuminate\Contracts\Foundation\Application $app, |
||
$app | Illuminate\Contracts\Foundation\Application | |
$model |
public findByName ( string $name ) : |
||
$name | string | |
return |
public newInstance ( array $attributes = [] ) : static | ||
$attributes | array | |
return | static |
protected Application,Illuminate\Contracts\Foundation $app | ||
return | Illuminate\Contracts\Foundation\Application |