Completed
Push — master ( fb73c0...e952da )
by Sherif
07:01
created
src/Modules/V1/Notifications/Notification.php 2 patches
Indentation   +43 added lines, -43 removed lines patch added patch discarded remove patch
@@ -5,48 +5,48 @@
 block discarded – undo
5 5
 
6 6
 class Notification extends Model{
7 7
 
8
-    use SoftDeletes;
9
-    protected $table    = 'notifications';
10
-    protected $dates    = ['created_at', 'updated_at', 'deleted_at'];
11
-    protected $hidden   = ['deleted_at', 'item_type', 'data'];
12
-    protected $guarded  = ['id'];
13
-    protected $fillable = ['key', 'data', 'item_name', 'item_type', 'item_id', 'notified'];
14
-    protected $appends  = ['description'];
15
-    public $searchable  = ['key', 'item_name', 'item_type'];
16
-
17
-    public function getCreatedAtAttribute($value)
18
-    {
19
-        return \Carbon\Carbon::parse($value)->addHours(\Session::get('timeZoneDiff'))->toDateTimeString();
20
-    }
21
-
22
-    public function getUpdatedAtAttribute($value)
23
-    {
24
-        return \Carbon\Carbon::parse($value)->addHours(\Session::get('timeZoneDiff'))->toDateTimeString();
25
-    }
26
-
27
-    public function getDeletedAtAttribute($value)
28
-    {
29
-        return \Carbon\Carbon::parse($value)->addHours(\Session::get('timeZoneDiff'))->toDateTimeString();
30
-    }
8
+	use SoftDeletes;
9
+	protected $table    = 'notifications';
10
+	protected $dates    = ['created_at', 'updated_at', 'deleted_at'];
11
+	protected $hidden   = ['deleted_at', 'item_type', 'data'];
12
+	protected $guarded  = ['id'];
13
+	protected $fillable = ['key', 'data', 'item_name', 'item_type', 'item_id', 'notified'];
14
+	protected $appends  = ['description'];
15
+	public $searchable  = ['key', 'item_name', 'item_type'];
16
+
17
+	public function getCreatedAtAttribute($value)
18
+	{
19
+		return \Carbon\Carbon::parse($value)->addHours(\Session::get('timeZoneDiff'))->toDateTimeString();
20
+	}
21
+
22
+	public function getUpdatedAtAttribute($value)
23
+	{
24
+		return \Carbon\Carbon::parse($value)->addHours(\Session::get('timeZoneDiff'))->toDateTimeString();
25
+	}
26
+
27
+	public function getDeletedAtAttribute($value)
28
+	{
29
+		return \Carbon\Carbon::parse($value)->addHours(\Session::get('timeZoneDiff'))->toDateTimeString();
30
+	}
31 31
     
32
-    public function item()
33
-    {
34
-        return $this->morphTo();
35
-    }
36
-
37
-    public function setDataAttribute($value)
38
-    {
39
-        $this->attributes['data'] = serialize($value);
40
-    }
41
-
42
-    public function getDescriptionAttribute()
43
-    {
44
-        return trans('notifications.' . $this->attributes['key'], unserialize($this->attributes['data']));
45
-    }
46
-
47
-    public static function boot()
48
-    {
49
-        parent::boot();
50
-        parent::observe(\App::make('App\Modules\V1\Notifications\ModelObservers\NotificationObserver'));
51
-    }
32
+	public function item()
33
+	{
34
+		return $this->morphTo();
35
+	}
36
+
37
+	public function setDataAttribute($value)
38
+	{
39
+		$this->attributes['data'] = serialize($value);
40
+	}
41
+
42
+	public function getDescriptionAttribute()
43
+	{
44
+		return trans('notifications.' . $this->attributes['key'], unserialize($this->attributes['data']));
45
+	}
46
+
47
+	public static function boot()
48
+	{
49
+		parent::boot();
50
+		parent::observe(\App::make('App\Modules\V1\Notifications\ModelObservers\NotificationObserver'));
51
+	}
52 52
 }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@  discard block
 block discarded – undo
3 3
 use Illuminate\Database\Eloquent\Model;
4 4
 use Illuminate\Database\Eloquent\SoftDeletes;
5 5
 
6
-class Notification extends Model{
6
+class Notification extends Model {
7 7
 
8 8
     use SoftDeletes;
9 9
     protected $table    = 'notifications';
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 
42 42
     public function getDescriptionAttribute()
43 43
     {
44
-        return trans('notifications.' . $this->attributes['key'], unserialize($this->attributes['data']));
44
+        return trans('notifications.'.$this->attributes['key'], unserialize($this->attributes['data']));
45 45
     }
46 46
 
47 47
     public static function boot()
Please login to merge, or discard this patch.
src/Modules/V1/Acl/ModelObservers/AclGroupObserver.php 1 patch
Indentation   +50 added lines, -50 removed lines patch added patch discarded remove patch
@@ -5,62 +5,62 @@
 block discarded – undo
5 5
  */
6 6
 class AclGroupObserver {
7 7
 
8
-    public function saving($model)
9
-    {
10
-        //
11
-    }
8
+	public function saving($model)
9
+	{
10
+		//
11
+	}
12 12
 
13
-    public function saved($model)
14
-    {
15
-        //
16
-    }
13
+	public function saved($model)
14
+	{
15
+		//
16
+	}
17 17
 
18
-    public function creating($model)
19
-    {
20
-        //
21
-    }
18
+	public function creating($model)
19
+	{
20
+		//
21
+	}
22 22
 
23
-    public function created($model)
24
-    {
25
-        //
26
-    }
23
+	public function created($model)
24
+	{
25
+		//
26
+	}
27 27
 
28
-    /**
29
-     * Prevent updating of the admin group.
30
-     * 
31
-     * @param  object $model the model beign updated.
32
-     * @return void
33
-     */
34
-    public function updating($model)
35
-    {
36
-        if ($model->getOriginal('name') == 'Admin') 
37
-        {
38
-            \ErrorHandler::noPermissions();
39
-        }
40
-    }
28
+	/**
29
+	 * Prevent updating of the admin group.
30
+	 * 
31
+	 * @param  object $model the model beign updated.
32
+	 * @return void
33
+	 */
34
+	public function updating($model)
35
+	{
36
+		if ($model->getOriginal('name') == 'Admin') 
37
+		{
38
+			\ErrorHandler::noPermissions();
39
+		}
40
+	}
41 41
 
42
-    public function updated($model)
43
-    {
44
-        //
45
-    }
42
+	public function updated($model)
43
+	{
44
+		//
45
+	}
46 46
 
47
-    /**
48
-     * Prevent deleting the admin group.
49
-     * 
50
-     * @param  object $model the delted model.
51
-     * @return void
52
-     */
53
-    public function deleting($model)
54
-    {
55
-        if ($model->getOriginal('name') == 'Admin') 
56
-        {
57
-            \ErrorHandler::noPermissions();
58
-        }
59
-    }
47
+	/**
48
+	 * Prevent deleting the admin group.
49
+	 * 
50
+	 * @param  object $model the delted model.
51
+	 * @return void
52
+	 */
53
+	public function deleting($model)
54
+	{
55
+		if ($model->getOriginal('name') == 'Admin') 
56
+		{
57
+			\ErrorHandler::noPermissions();
58
+		}
59
+	}
60 60
 
61
-    public function deleted($model)
62
-    {
63
-        //
64
-    }
61
+	public function deleted($model)
62
+	{
63
+		//
64
+	}
65 65
 
66 66
 }
67 67
\ No newline at end of file
Please login to merge, or discard this patch.
src/Modules/V1/Acl/Database/Migrations/2016_01_05_130507_initialize_acl.php 1 patch
Indentation   +203 added lines, -203 removed lines patch added patch discarded remove patch
@@ -13,203 +13,203 @@  discard block
 block discarded – undo
13 13
 	public function up()
14 14
 	{
15 15
 		/**
16
-         * Insert the permissions related to this module.
17
-         */
18
-        DB::table('permissions')->insert(
19
-        	[
20
-        		/**
21
-        		 * Users model permissions.
22
-        		 */
23
-	        	[
24
-	        	'name'       => 'save',
25
-	        	'model'      => 'users',
26
-	        	'created_at' => \DB::raw('NOW()'),
27
-	        	'updated_at' => \DB::raw('NOW()')
28
-	        	],
29
-	        	[
30
-	        	'name'       => 'delete',
31
-	        	'model'      => 'users',
32
-	        	'created_at' => \DB::raw('NOW()'),
33
-	        	'updated_at' => \DB::raw('NOW()')
34
-	        	],
35
-	        	[
36
-	        	'name'       => 'find',
37
-	        	'model'      => 'users',
38
-	        	'created_at' => \DB::raw('NOW()'),
39
-	        	'updated_at' => \DB::raw('NOW()')
40
-	        	],
41
-	        	[
42
-	        	'name'       => 'list',
43
-	        	'model'      => 'users',
44
-	        	'created_at' => \DB::raw('NOW()'),
45
-	        	'updated_at' => \DB::raw('NOW()')
46
-	        	],
47
-	        	[
48
-	        	'name'       => 'search',
49
-	        	'model'      => 'users',
50
-	        	'created_at' => \DB::raw('NOW()'),
51
-	        	'updated_at' => \DB::raw('NOW()')
52
-	        	],
53
-	        	[
54
-	        	'name'       => 'findby',
55
-	        	'model'      => 'users',
56
-	        	'created_at' => \DB::raw('NOW()'),
57
-	        	'updated_at' => \DB::raw('NOW()')
58
-	        	],
59
-	        	[
60
-	        	'name'       => 'first',
61
-	        	'model'      => 'users',
62
-	        	'created_at' => \DB::raw('NOW()'),
63
-	        	'updated_at' => \DB::raw('NOW()')
64
-	        	],
65
-	        	[
66
-	        	'name'       => 'paginate',
67
-	        	'model'      => 'users',
68
-	        	'created_at' => \DB::raw('NOW()'),
69
-	        	'updated_at' => \DB::raw('NOW()')
70
-	        	],
71
-	        	[
72
-	        	'name'       => 'paginateby',
73
-	        	'model'      => 'users',
74
-	        	'created_at' => \DB::raw('NOW()'),
75
-	        	'updated_at' => \DB::raw('NOW()')
76
-	        	],
77
-	        	[
78
-	        	'name'       => 'assigngroups',
79
-	        	'model'      => 'users',
80
-	        	'created_at' => \DB::raw('NOW()'),
81
-	        	'updated_at' => \DB::raw('NOW()')
82
-	        	],
83
-	        	[
84
-	        	'name'       => 'block',
85
-	        	'model'      => 'users',
86
-	        	'created_at' => \DB::raw('NOW()'),
87
-	        	'updated_at' => \DB::raw('NOW()')
88
-	        	],
89
-	        	[
90
-	        	'name'       => 'unblock',
91
-	        	'model'      => 'users',
92
-	        	'created_at' => \DB::raw('NOW()'),
93
-	        	'updated_at' => \DB::raw('NOW()')
94
-	        	],
16
+		 * Insert the permissions related to this module.
17
+		 */
18
+		DB::table('permissions')->insert(
19
+			[
20
+				/**
21
+				 * Users model permissions.
22
+				 */
23
+				[
24
+				'name'       => 'save',
25
+				'model'      => 'users',
26
+				'created_at' => \DB::raw('NOW()'),
27
+				'updated_at' => \DB::raw('NOW()')
28
+				],
29
+				[
30
+				'name'       => 'delete',
31
+				'model'      => 'users',
32
+				'created_at' => \DB::raw('NOW()'),
33
+				'updated_at' => \DB::raw('NOW()')
34
+				],
35
+				[
36
+				'name'       => 'find',
37
+				'model'      => 'users',
38
+				'created_at' => \DB::raw('NOW()'),
39
+				'updated_at' => \DB::raw('NOW()')
40
+				],
41
+				[
42
+				'name'       => 'list',
43
+				'model'      => 'users',
44
+				'created_at' => \DB::raw('NOW()'),
45
+				'updated_at' => \DB::raw('NOW()')
46
+				],
47
+				[
48
+				'name'       => 'search',
49
+				'model'      => 'users',
50
+				'created_at' => \DB::raw('NOW()'),
51
+				'updated_at' => \DB::raw('NOW()')
52
+				],
53
+				[
54
+				'name'       => 'findby',
55
+				'model'      => 'users',
56
+				'created_at' => \DB::raw('NOW()'),
57
+				'updated_at' => \DB::raw('NOW()')
58
+				],
59
+				[
60
+				'name'       => 'first',
61
+				'model'      => 'users',
62
+				'created_at' => \DB::raw('NOW()'),
63
+				'updated_at' => \DB::raw('NOW()')
64
+				],
65
+				[
66
+				'name'       => 'paginate',
67
+				'model'      => 'users',
68
+				'created_at' => \DB::raw('NOW()'),
69
+				'updated_at' => \DB::raw('NOW()')
70
+				],
71
+				[
72
+				'name'       => 'paginateby',
73
+				'model'      => 'users',
74
+				'created_at' => \DB::raw('NOW()'),
75
+				'updated_at' => \DB::raw('NOW()')
76
+				],
77
+				[
78
+				'name'       => 'assigngroups',
79
+				'model'      => 'users',
80
+				'created_at' => \DB::raw('NOW()'),
81
+				'updated_at' => \DB::raw('NOW()')
82
+				],
83
+				[
84
+				'name'       => 'block',
85
+				'model'      => 'users',
86
+				'created_at' => \DB::raw('NOW()'),
87
+				'updated_at' => \DB::raw('NOW()')
88
+				],
89
+				[
90
+				'name'       => 'unblock',
91
+				'model'      => 'users',
92
+				'created_at' => \DB::raw('NOW()'),
93
+				'updated_at' => \DB::raw('NOW()')
94
+				],
95 95
 
96
-	        	/**
97
-        		 * Permissions model permissions.
98
-        		 */
99
-        		[
100
-	        	'name'       => 'find',
101
-	        	'model'      => 'permissions',
102
-	        	'created_at' => \DB::raw('NOW()'),
103
-	        	'updated_at' => \DB::raw('NOW()')
104
-	        	],
105
-	        	[
106
-	        	'name'       => 'search',
107
-	        	'model'      => 'permissions',
108
-	        	'created_at' => \DB::raw('NOW()'),
109
-	        	'updated_at' => \DB::raw('NOW()')
110
-	        	],
111
-	        	[
112
-	        	'name'       => 'list',
113
-	        	'model'      => 'permissions',
114
-	        	'created_at' => \DB::raw('NOW()'),
115
-	        	'updated_at' => \DB::raw('NOW()')
116
-	        	],
117
-	        	[
118
-	        	'name'       => 'findby',
119
-	        	'model'      => 'permissions',
120
-	        	'created_at' => \DB::raw('NOW()'),
121
-	        	'updated_at' => \DB::raw('NOW()')
122
-	        	],
123
-	        	[
124
-	        	'name'       => 'first',
125
-	        	'model'      => 'permissions',
126
-	        	'created_at' => \DB::raw('NOW()'),
127
-	        	'updated_at' => \DB::raw('NOW()')
128
-	        	],
129
-	        	[
130
-	        	'name'       => 'paginate',
131
-	        	'model'      => 'permissions',
132
-	        	'created_at' => \DB::raw('NOW()'),
133
-	        	'updated_at' => \DB::raw('NOW()')
134
-	        	],
135
-	        	[
136
-	        	'name'       => 'paginateby',
137
-	        	'model'      => 'permissions',
138
-	        	'created_at' => \DB::raw('NOW()'),
139
-	        	'updated_at' => \DB::raw('NOW()')
140
-	        	],
96
+				/**
97
+				 * Permissions model permissions.
98
+				 */
99
+				[
100
+				'name'       => 'find',
101
+				'model'      => 'permissions',
102
+				'created_at' => \DB::raw('NOW()'),
103
+				'updated_at' => \DB::raw('NOW()')
104
+				],
105
+				[
106
+				'name'       => 'search',
107
+				'model'      => 'permissions',
108
+				'created_at' => \DB::raw('NOW()'),
109
+				'updated_at' => \DB::raw('NOW()')
110
+				],
111
+				[
112
+				'name'       => 'list',
113
+				'model'      => 'permissions',
114
+				'created_at' => \DB::raw('NOW()'),
115
+				'updated_at' => \DB::raw('NOW()')
116
+				],
117
+				[
118
+				'name'       => 'findby',
119
+				'model'      => 'permissions',
120
+				'created_at' => \DB::raw('NOW()'),
121
+				'updated_at' => \DB::raw('NOW()')
122
+				],
123
+				[
124
+				'name'       => 'first',
125
+				'model'      => 'permissions',
126
+				'created_at' => \DB::raw('NOW()'),
127
+				'updated_at' => \DB::raw('NOW()')
128
+				],
129
+				[
130
+				'name'       => 'paginate',
131
+				'model'      => 'permissions',
132
+				'created_at' => \DB::raw('NOW()'),
133
+				'updated_at' => \DB::raw('NOW()')
134
+				],
135
+				[
136
+				'name'       => 'paginateby',
137
+				'model'      => 'permissions',
138
+				'created_at' => \DB::raw('NOW()'),
139
+				'updated_at' => \DB::raw('NOW()')
140
+				],
141 141
 
142
-	        	/**
143
-        		 * Groups model permissions.
144
-        		 */
145
-	        	[
146
-	        	'name'       => 'save',
147
-	        	'model'      => 'groups',
148
-	        	'created_at' => \DB::raw('NOW()'),
149
-	        	'updated_at' => \DB::raw('NOW()')
150
-	        	],
151
-	        	[
152
-	        	'name'       => 'delete',
153
-	        	'model'      => 'groups',
154
-	        	'created_at' => \DB::raw('NOW()'),
155
-	        	'updated_at' => \DB::raw('NOW()')
156
-	        	],
157
-	        	[
158
-	        	'name'       => 'find',
159
-	        	'model'      => 'groups',
160
-	        	'created_at' => \DB::raw('NOW()'),
161
-	        	'updated_at' => \DB::raw('NOW()')
162
-	        	],
163
-	        	[
164
-	        	'name'       => 'search',
165
-	        	'model'      => 'groups',
166
-	        	'created_at' => \DB::raw('NOW()'),
167
-	        	'updated_at' => \DB::raw('NOW()')
168
-	        	],
169
-	        	[
170
-	        	'name'       => 'list',
171
-	        	'model'      => 'groups',
172
-	        	'created_at' => \DB::raw('NOW()'),
173
-	        	'updated_at' => \DB::raw('NOW()')
174
-	        	],
175
-	        	[
176
-	        	'name'       => 'findby',
177
-	        	'model'      => 'groups',
178
-	        	'created_at' => \DB::raw('NOW()'),
179
-	        	'updated_at' => \DB::raw('NOW()')
180
-	        	],
181
-	        	[
182
-	        	'name'       => 'first',
183
-	        	'model'      => 'groups',
184
-	        	'created_at' => \DB::raw('NOW()'),
185
-	        	'updated_at' => \DB::raw('NOW()')
186
-	        	],
187
-	        	[
188
-	        	'name'       => 'paginate',
189
-	        	'model'      => 'groups',
190
-	        	'created_at' => \DB::raw('NOW()'),
191
-	        	'updated_at' => \DB::raw('NOW()')
192
-	        	],
193
-	        	[
194
-	        	'name'       => 'paginateby',
195
-	        	'model'      => 'groups',
196
-	        	'created_at' => \DB::raw('NOW()'),
197
-	        	'updated_at' => \DB::raw('NOW()')
198
-	        	],
199
-	        	[
200
-	        	'name'       => 'assignpermissions',
201
-	        	'model'      => 'groups',
202
-	        	'created_at' => \DB::raw('NOW()'),
203
-	        	'updated_at' => \DB::raw('NOW()')
204
-	        	],
205
-	        	[
206
-	        	'name'       => 'users',
207
-	        	'model'      => 'groups',
208
-	        	'created_at' => \DB::raw('NOW()'),
209
-	        	'updated_at' => \DB::raw('NOW()')
210
-	        	],
211
-        	]
212
-        );
142
+				/**
143
+				 * Groups model permissions.
144
+				 */
145
+				[
146
+				'name'       => 'save',
147
+				'model'      => 'groups',
148
+				'created_at' => \DB::raw('NOW()'),
149
+				'updated_at' => \DB::raw('NOW()')
150
+				],
151
+				[
152
+				'name'       => 'delete',
153
+				'model'      => 'groups',
154
+				'created_at' => \DB::raw('NOW()'),
155
+				'updated_at' => \DB::raw('NOW()')
156
+				],
157
+				[
158
+				'name'       => 'find',
159
+				'model'      => 'groups',
160
+				'created_at' => \DB::raw('NOW()'),
161
+				'updated_at' => \DB::raw('NOW()')
162
+				],
163
+				[
164
+				'name'       => 'search',
165
+				'model'      => 'groups',
166
+				'created_at' => \DB::raw('NOW()'),
167
+				'updated_at' => \DB::raw('NOW()')
168
+				],
169
+				[
170
+				'name'       => 'list',
171
+				'model'      => 'groups',
172
+				'created_at' => \DB::raw('NOW()'),
173
+				'updated_at' => \DB::raw('NOW()')
174
+				],
175
+				[
176
+				'name'       => 'findby',
177
+				'model'      => 'groups',
178
+				'created_at' => \DB::raw('NOW()'),
179
+				'updated_at' => \DB::raw('NOW()')
180
+				],
181
+				[
182
+				'name'       => 'first',
183
+				'model'      => 'groups',
184
+				'created_at' => \DB::raw('NOW()'),
185
+				'updated_at' => \DB::raw('NOW()')
186
+				],
187
+				[
188
+				'name'       => 'paginate',
189
+				'model'      => 'groups',
190
+				'created_at' => \DB::raw('NOW()'),
191
+				'updated_at' => \DB::raw('NOW()')
192
+				],
193
+				[
194
+				'name'       => 'paginateby',
195
+				'model'      => 'groups',
196
+				'created_at' => \DB::raw('NOW()'),
197
+				'updated_at' => \DB::raw('NOW()')
198
+				],
199
+				[
200
+				'name'       => 'assignpermissions',
201
+				'model'      => 'groups',
202
+				'created_at' => \DB::raw('NOW()'),
203
+				'updated_at' => \DB::raw('NOW()')
204
+				],
205
+				[
206
+				'name'       => 'users',
207
+				'model'      => 'groups',
208
+				'created_at' => \DB::raw('NOW()'),
209
+				'updated_at' => \DB::raw('NOW()')
210
+				],
211
+			]
212
+		);
213 213
 
214 214
 		/**
215 215
 		 * Delete previous data.
@@ -237,29 +237,29 @@  discard block
 block discarded – undo
237 237
 		 * Create Default users.
238 238
 		 */
239 239
 		$adminUserId = DB::table('users')->insertGetId(
240
-            [
240
+			[
241 241
 			'email'      => '[email protected]',
242 242
 			'password'   => bcrypt('123456'),
243 243
 			'created_at' => \DB::raw('NOW()'),
244 244
 			'updated_at' => \DB::raw('NOW()')
245 245
 			]
246
-        );
246
+		);
247 247
 
248 248
 		/**
249 249
 		 * Assign users to groups.
250 250
 		 */
251 251
 		DB::table('users_groups')->insert(
252
-        	[
253
-	            [
252
+			[
253
+				[
254 254
 				'user_id'    => $adminUserId,
255 255
 				'group_id'   => $adminGroupId,
256 256
 				'created_at' => \DB::raw('NOW()'),
257 257
 				'updated_at' => \DB::raw('NOW()')
258
-	            ]
259
-        	]
260
-        );
258
+				]
259
+			]
260
+		);
261 261
 
262
-        /**
262
+		/**
263 263
 		 * Assign the permissions to the admin group.
264 264
 		 */
265 265
 		$permissionIds = DB::table('permissions')->whereIn('model', ['users', 'permissions', 'groups'])->select('id')->lists('id');
Please login to merge, or discard this patch.
src/lang/ar/errors.php 1 patch
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -2,22 +2,22 @@
 block discarded – undo
2 2
 
3 3
 return [
4 4
     
5
-    /**
6
-     * List of error messages used in core module.
7
-     */
8
-    'unAuthorized'           => 'من فضلك قم بتسجيل الدخول',
9
-    'tokenExpired'           => 'انتهت صلاحية الدخول',
10
-    'noPermissions'          => 'لا توجد صلاحية',
11
-    'loginFailed'            => 'خطأ في البريد لاكتروني او كلمة المرور',
12
-    'redisNotRunning'        => 'سيرفير الاشعارات لايعمل',
13
-    'dbQueryError'           => 'خطا في البيانات',
14
-    'cannotCreateSetting'    => 'لا يمكن اضافة اعدادات',
15
-    'cannotUpdateSettingKey' => 'لا يمكن تعديل اعدادات',
16
-    'userIsBlocked'          => 'لقد تم حظرك',
17
-    'invalidResetToken'      => 'رمز تعديل كلمة المرور خطا',
18
-    'invalidResetPassword'   => 'خطا في نعديل كلمة المرور',
19
-    'invalidOldPassword'     => 'كلمة السر القديمه خطا',
20
-    'notFound'               => 'ال :replace المطلوب غير موجود',
21
-    'generalError'           => 'حدث خطا ما',
5
+	/**
6
+	 * List of error messages used in core module.
7
+	 */
8
+	'unAuthorized'           => 'من فضلك قم بتسجيل الدخول',
9
+	'tokenExpired'           => 'انتهت صلاحية الدخول',
10
+	'noPermissions'          => 'لا توجد صلاحية',
11
+	'loginFailed'            => 'خطأ في البريد لاكتروني او كلمة المرور',
12
+	'redisNotRunning'        => 'سيرفير الاشعارات لايعمل',
13
+	'dbQueryError'           => 'خطا في البيانات',
14
+	'cannotCreateSetting'    => 'لا يمكن اضافة اعدادات',
15
+	'cannotUpdateSettingKey' => 'لا يمكن تعديل اعدادات',
16
+	'userIsBlocked'          => 'لقد تم حظرك',
17
+	'invalidResetToken'      => 'رمز تعديل كلمة المرور خطا',
18
+	'invalidResetPassword'   => 'خطا في نعديل كلمة المرور',
19
+	'invalidOldPassword'     => 'كلمة السر القديمه خطا',
20
+	'notFound'               => 'ال :replace المطلوب غير موجود',
21
+	'generalError'           => 'حدث خطا ما',
22 22
 
23 23
 ];
24 24
\ No newline at end of file
Please login to merge, or discard this patch.
src/lang/en/auth.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@  discard block
 block discarded – undo
2 2
 
3 3
 return [
4 4
 
5
-    /*
5
+	/*
6 6
     |--------------------------------------------------------------------------
7 7
     | Authentication Language Lines
8 8
     |--------------------------------------------------------------------------
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
     |
14 14
     */
15 15
 
16
-    'failed' => 'These credentials do not match our records.',
17
-    'throttle' => 'Too many login attempts. Please try again in :seconds seconds.',
16
+	'failed' => 'These credentials do not match our records.',
17
+	'throttle' => 'Too many login attempts. Please try again in :seconds seconds.',
18 18
 
19 19
 ];
Please login to merge, or discard this patch.
src/lang/en/validation.php 1 patch
Indentation   +75 added lines, -75 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@  discard block
 block discarded – undo
2 2
 
3 3
 return [
4 4
 
5
-    /*
5
+	/*
6 6
     |--------------------------------------------------------------------------
7 7
     | Validation Language Lines
8 8
     |--------------------------------------------------------------------------
@@ -13,74 +13,74 @@  discard block
 block discarded – undo
13 13
     |
14 14
     */
15 15
 
16
-    'accepted'             => 'The :attribute must be accepted.',
17
-    'active_url'           => 'The :attribute is not a valid URL.',
18
-    'after'                => 'The :attribute must be a date after :date.',
19
-    'alpha'                => 'The :attribute may only contain letters.',
20
-    'alpha_dash'           => 'The :attribute may only contain letters, numbers, and dashes.',
21
-    'alpha_num'            => 'The :attribute may only contain letters and numbers.',
22
-    'array'                => 'The :attribute must be an array.',
23
-    'before'               => 'The :attribute must be a date before :date.',
24
-    'between'              => [
25
-        'numeric' => 'The :attribute must be between :min and :max.',
26
-        'file'    => 'The :attribute must be between :min and :max kilobytes.',
27
-        'string'  => 'The :attribute must be between :min and :max characters.',
28
-        'array'   => 'The :attribute must have between :min and :max items.',
29
-    ],
30
-    'boolean'              => 'The :attribute field must be true or false.',
31
-    'confirmed'            => 'The :attribute confirmation does not match.',
32
-    'date'                 => 'The :attribute is not a valid date.',
33
-    'date_format'          => 'The :attribute does not match the format :format.',
34
-    'different'            => 'The :attribute and :other must be different.',
35
-    'digits'               => 'The :attribute must be :digits digits.',
36
-    'digits_between'       => 'The :attribute must be between :min and :max digits.',
37
-    'distinct'             => 'The :attribute field has a duplicate value.',
38
-    'email'                => 'The :attribute must be a valid email address.',
39
-    'exists'               => 'The selected :attribute is invalid.',
40
-    'filled'               => 'The :attribute field is required.',
41
-    'image'                => 'The :attribute must be an image.',
42
-    'in'                   => 'The selected :attribute is invalid.',
43
-    'in_array'             => 'The :attribute field does not exist in :other.',
44
-    'integer'              => 'The :attribute must be an integer.',
45
-    'ip'                   => 'The :attribute must be a valid IP address.',
46
-    'json'                 => 'The :attribute must be a valid JSON string.',
47
-    'max'                  => [
48
-        'numeric' => 'The :attribute may not be greater than :max.',
49
-        'file'    => 'The :attribute may not be greater than :max kilobytes.',
50
-        'string'  => 'The :attribute may not be greater than :max characters.',
51
-        'array'   => 'The :attribute may not have more than :max items.',
52
-    ],
53
-    'mimes'                => 'The :attribute must be a file of type: :values.',
54
-    'min'                  => [
55
-        'numeric' => 'The :attribute must be at least :min.',
56
-        'file'    => 'The :attribute must be at least :min kilobytes.',
57
-        'string'  => 'The :attribute must be at least :min characters.',
58
-        'array'   => 'The :attribute must have at least :min items.',
59
-    ],
60
-    'not_in'               => 'The selected :attribute is invalid.',
61
-    'numeric'              => 'The :attribute must be a number.',
62
-    'present'              => 'The :attribute field must be present.',
63
-    'regex'                => 'The :attribute format is invalid.',
64
-    'required'             => 'The :attribute field is required.',
65
-    'required_if'          => 'The :attribute field is required when :other is :value.',
66
-    'required_unless'      => 'The :attribute field is required unless :other is in :values.',
67
-    'required_with'        => 'The :attribute field is required when :values is present.',
68
-    'required_with_all'    => 'The :attribute field is required when :values is present.',
69
-    'required_without'     => 'The :attribute field is required when :values is not present.',
70
-    'required_without_all' => 'The :attribute field is required when none of :values are present.',
71
-    'same'                 => 'The :attribute and :other must match.',
72
-    'size'                 => [
73
-        'numeric' => 'The :attribute must be :size.',
74
-        'file'    => 'The :attribute must be :size kilobytes.',
75
-        'string'  => 'The :attribute must be :size characters.',
76
-        'array'   => 'The :attribute must contain :size items.',
77
-    ],
78
-    'string'               => 'The :attribute must be a string.',
79
-    'timezone'             => 'The :attribute must be a valid zone.',
80
-    'unique'               => 'The :attribute has already been taken.',
81
-    'url'                  => 'The :attribute format is invalid.',
16
+	'accepted'             => 'The :attribute must be accepted.',
17
+	'active_url'           => 'The :attribute is not a valid URL.',
18
+	'after'                => 'The :attribute must be a date after :date.',
19
+	'alpha'                => 'The :attribute may only contain letters.',
20
+	'alpha_dash'           => 'The :attribute may only contain letters, numbers, and dashes.',
21
+	'alpha_num'            => 'The :attribute may only contain letters and numbers.',
22
+	'array'                => 'The :attribute must be an array.',
23
+	'before'               => 'The :attribute must be a date before :date.',
24
+	'between'              => [
25
+		'numeric' => 'The :attribute must be between :min and :max.',
26
+		'file'    => 'The :attribute must be between :min and :max kilobytes.',
27
+		'string'  => 'The :attribute must be between :min and :max characters.',
28
+		'array'   => 'The :attribute must have between :min and :max items.',
29
+	],
30
+	'boolean'              => 'The :attribute field must be true or false.',
31
+	'confirmed'            => 'The :attribute confirmation does not match.',
32
+	'date'                 => 'The :attribute is not a valid date.',
33
+	'date_format'          => 'The :attribute does not match the format :format.',
34
+	'different'            => 'The :attribute and :other must be different.',
35
+	'digits'               => 'The :attribute must be :digits digits.',
36
+	'digits_between'       => 'The :attribute must be between :min and :max digits.',
37
+	'distinct'             => 'The :attribute field has a duplicate value.',
38
+	'email'                => 'The :attribute must be a valid email address.',
39
+	'exists'               => 'The selected :attribute is invalid.',
40
+	'filled'               => 'The :attribute field is required.',
41
+	'image'                => 'The :attribute must be an image.',
42
+	'in'                   => 'The selected :attribute is invalid.',
43
+	'in_array'             => 'The :attribute field does not exist in :other.',
44
+	'integer'              => 'The :attribute must be an integer.',
45
+	'ip'                   => 'The :attribute must be a valid IP address.',
46
+	'json'                 => 'The :attribute must be a valid JSON string.',
47
+	'max'                  => [
48
+		'numeric' => 'The :attribute may not be greater than :max.',
49
+		'file'    => 'The :attribute may not be greater than :max kilobytes.',
50
+		'string'  => 'The :attribute may not be greater than :max characters.',
51
+		'array'   => 'The :attribute may not have more than :max items.',
52
+	],
53
+	'mimes'                => 'The :attribute must be a file of type: :values.',
54
+	'min'                  => [
55
+		'numeric' => 'The :attribute must be at least :min.',
56
+		'file'    => 'The :attribute must be at least :min kilobytes.',
57
+		'string'  => 'The :attribute must be at least :min characters.',
58
+		'array'   => 'The :attribute must have at least :min items.',
59
+	],
60
+	'not_in'               => 'The selected :attribute is invalid.',
61
+	'numeric'              => 'The :attribute must be a number.',
62
+	'present'              => 'The :attribute field must be present.',
63
+	'regex'                => 'The :attribute format is invalid.',
64
+	'required'             => 'The :attribute field is required.',
65
+	'required_if'          => 'The :attribute field is required when :other is :value.',
66
+	'required_unless'      => 'The :attribute field is required unless :other is in :values.',
67
+	'required_with'        => 'The :attribute field is required when :values is present.',
68
+	'required_with_all'    => 'The :attribute field is required when :values is present.',
69
+	'required_without'     => 'The :attribute field is required when :values is not present.',
70
+	'required_without_all' => 'The :attribute field is required when none of :values are present.',
71
+	'same'                 => 'The :attribute and :other must match.',
72
+	'size'                 => [
73
+		'numeric' => 'The :attribute must be :size.',
74
+		'file'    => 'The :attribute must be :size kilobytes.',
75
+		'string'  => 'The :attribute must be :size characters.',
76
+		'array'   => 'The :attribute must contain :size items.',
77
+	],
78
+	'string'               => 'The :attribute must be a string.',
79
+	'timezone'             => 'The :attribute must be a valid zone.',
80
+	'unique'               => 'The :attribute has already been taken.',
81
+	'url'                  => 'The :attribute format is invalid.',
82 82
 
83
-    /*
83
+	/*
84 84
     |--------------------------------------------------------------------------
85 85
     | Custom Validation Language Lines
86 86
     |--------------------------------------------------------------------------
@@ -91,13 +91,13 @@  discard block
 block discarded – undo
91 91
     |
92 92
     */
93 93
 
94
-    'custom' => [
95
-        'attribute-name' => [
96
-            'rule-name' => 'custom-message',
97
-        ],
98
-    ],
94
+	'custom' => [
95
+		'attribute-name' => [
96
+			'rule-name' => 'custom-message',
97
+		],
98
+	],
99 99
 
100
-    /*
100
+	/*
101 101
     |--------------------------------------------------------------------------
102 102
     | Custom Validation Attributes
103 103
     |--------------------------------------------------------------------------
@@ -108,6 +108,6 @@  discard block
 block discarded – undo
108 108
     |
109 109
     */
110 110
 
111
-    'attributes' => [],
111
+	'attributes' => [],
112 112
 
113 113
 ];
Please login to merge, or discard this patch.
src/lang/en/notifications.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -2,8 +2,8 @@
 block discarded – undo
2 2
 
3 3
 return [
4 4
     
5
-    /**
6
-     * Here goes your notification messages.
7
-     */
5
+	/**
6
+	 * Here goes your notification messages.
7
+	 */
8 8
 
9 9
 ];
10 10
\ No newline at end of file
Please login to merge, or discard this patch.
src/lang/en/passwords.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@  discard block
 block discarded – undo
2 2
 
3 3
 return [
4 4
 
5
-    /*
5
+	/*
6 6
     |--------------------------------------------------------------------------
7 7
     | Password Reset Language Lines
8 8
     |--------------------------------------------------------------------------
@@ -13,10 +13,10 @@  discard block
 block discarded – undo
13 13
     |
14 14
     */
15 15
 
16
-    'password' => 'Passwords must be at least six characters and match the confirmation.',
17
-    'reset' => 'Your password has been reset!',
18
-    'sent' => 'We have e-mailed your password reset link!',
19
-    'token' => 'This password reset token is invalid.',
20
-    'user' => "We can't find a user with that e-mail address.",
16
+	'password' => 'Passwords must be at least six characters and match the confirmation.',
17
+	'reset' => 'Your password has been reset!',
18
+	'sent' => 'We have e-mailed your password reset link!',
19
+	'token' => 'This password reset token is invalid.',
20
+	'user' => "We can't find a user with that e-mail address.",
21 21
 
22 22
 ];
Please login to merge, or discard this patch.
src/lang/en/errors.php 1 patch
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -2,22 +2,22 @@
 block discarded – undo
2 2
 
3 3
 return [
4 4
     
5
-    /**
6
-     * List of error messages used in core module.
7
-     */
8
-    'unAuthorized'           => 'Please login before any action',
9
-    'tokenExpired'           => 'Login token expired',
10
-    'noPermissions'          => 'No permissions',
11
-    'loginFailed'            => 'Wrong mail or password',
12
-    'redisNotRunning'        => 'Your redis notification server is\'t running',
13
-    'dbQueryError'           => 'Please check the given inputes',
14
-    'cannotCreateSetting'    => 'Can\'t create setting',
15
-    'cannotUpdateSettingKey' => 'Can\'t update setting key',
16
-    'userIsBlocked'          => 'You have been blocked',
17
-    'invalidResetToken'      => 'Reset password token is invalid',
18
-    'invalidResetPassword'   => 'Reset password is invalid',
19
-    'invalidOldPassword'     => 'Old password is invalid',
20
-    'notFound'               => 'The requested :replace not found',
21
-    'generalError'           => 'Something went wrong',
5
+	/**
6
+	 * List of error messages used in core module.
7
+	 */
8
+	'unAuthorized'           => 'Please login before any action',
9
+	'tokenExpired'           => 'Login token expired',
10
+	'noPermissions'          => 'No permissions',
11
+	'loginFailed'            => 'Wrong mail or password',
12
+	'redisNotRunning'        => 'Your redis notification server is\'t running',
13
+	'dbQueryError'           => 'Please check the given inputes',
14
+	'cannotCreateSetting'    => 'Can\'t create setting',
15
+	'cannotUpdateSettingKey' => 'Can\'t update setting key',
16
+	'userIsBlocked'          => 'You have been blocked',
17
+	'invalidResetToken'      => 'Reset password token is invalid',
18
+	'invalidResetPassword'   => 'Reset password is invalid',
19
+	'invalidOldPassword'     => 'Old password is invalid',
20
+	'notFound'               => 'The requested :replace not found',
21
+	'generalError'           => 'Something went wrong',
22 22
 
23 23
 ];
24 24
\ No newline at end of file
Please login to merge, or discard this patch.