Completed
Push — master ( 21ebc1...3cae80 )
by Sherif
05:55
created
src/Modules/V1/Core/Database/Migrations/2016_01_24_123630_settings.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -12,10 +12,10 @@
 block discarded – undo
12 12
 	 */
13 13
 	public function up()
14 14
 	{
15
-		Schema::create('settings', function (Blueprint $table) {
15
+		Schema::create('settings', function(Blueprint $table) {
16 16
             $table->increments('id');
17
-            $table->string('name',100);
18
-            $table->string('key',100)->unique();
17
+            $table->string('name', 100);
18
+            $table->string('key', 100)->unique();
19 19
             $table->text('value')->nullable();
20 20
             $table->softDeletes();
21 21
             $table->timestamps();
Please login to merge, or discard this patch.
src/Modules/V1/Core/Http/Controllers/SettingsController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,14 +13,14 @@
 block discarded – undo
13 13
      * to preform actions like (add, edit ... etc).
14 14
      * @var string
15 15
      */
16
-    protected $model               = 'settings';
16
+    protected $model = 'settings';
17 17
 
18 18
     /**
19 19
      * The validations rules used by the base api controller
20 20
      * to check before add.
21 21
      * @var array
22 22
      */
23
-    protected $validationRules  = [
23
+    protected $validationRules = [
24 24
     'name'  => 'required|string|max:100',
25 25
     'value' => 'required|string'
26 26
     ];
Please login to merge, or discard this patch.