diff options
author | marvin-borner@live.com | 2018-04-14 21:01:44 +0200 |
---|---|---|
committer | marvin-borner@live.com | 2018-04-14 21:01:44 +0200 |
commit | 937100e9bb2a2f5ab035e283e01e6d96e569ee51 (patch) | |
tree | 48256c7d39bcc00030027ddbe4b0b69c059b1e0e /login/app/system/Database/Model | |
parent | 7ac4371989ac19ebbb753402319882c9c49d32dd (diff) |
Added login things
Diffstat (limited to 'login/app/system/Database/Model')
-rwxr-xr-x | login/app/system/Database/Model/Migrations.php | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/login/app/system/Database/Model/Migrations.php b/login/app/system/Database/Model/Migrations.php new file mode 100755 index 0000000..6a0942e --- /dev/null +++ b/login/app/system/Database/Model/Migrations.php @@ -0,0 +1,55 @@ +<?php +/** + * UserFrosting (http://www.userfrosting.com) + * + * @link https://github.com/userfrosting/UserFrosting + * @license https://github.com/userfrosting/UserFrosting/blob/master/licenses/UserFrosting.md (MIT License) + */ +namespace UserFrosting\System\Database\Model; + +use Illuminate\Database\Capsule\Manager as Capsule; +use Illuminate\Database\Eloquent\Model; + +/** + * Migration Model + * + * Represents the model for the `migrations` table + * + * @author Alex Weissman (https://alexanderweissman.com) + * @property string sprinkle + * @property string version + */ +class Migrations extends Model +{ + /** + * @var string The name of the table for the current model. + */ + protected $table = "migrations"; + + /** + * @var bool Enable timestamps for this class. + */ + public $timestamps = true; + + /** + * @var array List of fields that can be edited by this model + */ + protected $fillable = [ + "sprinkle", + "migration", + "batch" + ]; + + /** + * scopeForSprinkle function. + * + * @access protected + * @param mixed $query + * @param string $sprinkleName + * @return void + */ + protected function scopeForSprinkle($query, $sprinkleName) + { + return $query->where('sprinkle', $sprinkleName); + } +} |