aboutsummaryrefslogtreecommitdiffhomepage
path: root/login/app/system/Database/Model
diff options
context:
space:
mode:
authormarvin-borner@live.com2018-04-14 21:01:44 +0200
committermarvin-borner@live.com2018-04-14 21:01:44 +0200
commit937100e9bb2a2f5ab035e283e01e6d96e569ee51 (patch)
tree48256c7d39bcc00030027ddbe4b0b69c059b1e0e /login/app/system/Database/Model
parent7ac4371989ac19ebbb753402319882c9c49d32dd (diff)
Added login things
Diffstat (limited to 'login/app/system/Database/Model')
-rwxr-xr-xlogin/app/system/Database/Model/Migrations.php55
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);
+ }
+}