Completed
Push — master ( 9ecb5e...97e3cb )
by Sherif
13:30
created
src/Modules/V1/Core/Database/Seeds/ClearDataSeeder.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -6,15 +6,15 @@
 block discarded – undo
6 6
 
7 7
 class ClearDataSeeder extends Seeder
8 8
 {
9
-    /**
10
-     * Run the database seeds.
11
-     *
12
-     * @return void
13
-     */
14
-    public function run()
15
-    {
16
-    	$permissions = \DB::table('permissions')->whereIn('model', ['settings']);
17
-        \DB::table('groups_permissions')->whereIn('permission_id', $permissions->pluck('id'))->delete();
18
-        $permissions->delete();
19
-    }
9
+	/**
10
+	 * Run the database seeds.
11
+	 *
12
+	 * @return void
13
+	 */
14
+	public function run()
15
+	{
16
+		$permissions = \DB::table('permissions')->whereIn('model', ['settings']);
17
+		\DB::table('groups_permissions')->whereIn('permission_id', $permissions->pluck('id'))->delete();
18
+		$permissions->delete();
19
+	}
20 20
 }
Please login to merge, or discard this patch.
src/Modules/V1/Core/Database/Seeds/CoreDatabaseSeeder.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -6,15 +6,15 @@
 block discarded – undo
6 6
 
7 7
 class CoreDatabaseSeeder extends Seeder
8 8
 {
9
-    /**
10
-     * Run the database seeds.
11
-     *
12
-     * @return void
13
-     */
14
-    public function run()
15
-    {
16
-        $this->call(ClearDataSeeder::class);
17
-    	$this->call(SettingsTableSeeder::class);
18
-        $this->call(AssignRelationsSeeder::class);
19
-    }
9
+	/**
10
+	 * Run the database seeds.
11
+	 *
12
+	 * @return void
13
+	 */
14
+	public function run()
15
+	{
16
+		$this->call(ClearDataSeeder::class);
17
+		$this->call(SettingsTableSeeder::class);
18
+		$this->call(AssignRelationsSeeder::class);
19
+	}
20 20
 }
Please login to merge, or discard this patch.
src/Modules/V1/Reporting/Http/Controllers/ReportsController.php 1 patch
Indentation   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -7,33 +7,33 @@
 block discarded – undo
7 7
 
8 8
 class ReportsController extends BaseApiController
9 9
 {
10
-    /**
11
-     * The name of the model that is used by the base api controller 
12
-     * to preform actions like (add, edit ... etc).
13
-     * @var string
14
-     */
15
-    protected $model               = 'reports';
10
+	/**
11
+	 * The name of the model that is used by the base api controller 
12
+	 * to preform actions like (add, edit ... etc).
13
+	 * @var string
14
+	 */
15
+	protected $model               = 'reports';
16 16
 
17
-    /**
18
-     * List of all route actions that the base api controller
19
-     * will skip permissions check for them.
20
-     * @var array
21
-     */
22
-    protected $skipPermissionCheck = ['getReport'];
17
+	/**
18
+	 * List of all route actions that the base api controller
19
+	 * will skip permissions check for them.
20
+	 * @var array
21
+	 */
22
+	protected $skipPermissionCheck = ['getReport'];
23 23
 
24
-    /**
25
-     * Render the given report name with the given conditions.
26
-     *
27
-     * @param  \Illuminate\Http\Request  $request
28
-     * @param  string  $reportName Name of the requested report
29
-     * @param  integer $perPage    Number of rows per page default all data.
30
-     * @return \Illuminate\Http\Response
31
-     */
32
-    public function getReport(Request $request, $reportName, $perPage = 0) 
33
-    {
34
-        if ($this->model) 
35
-        {
36
-            return \Response::json($this->repo->getReport($reportName, $request->all(), $perPage), 200);
37
-        }
38
-    }
24
+	/**
25
+	 * Render the given report name with the given conditions.
26
+	 *
27
+	 * @param  \Illuminate\Http\Request  $request
28
+	 * @param  string  $reportName Name of the requested report
29
+	 * @param  integer $perPage    Number of rows per page default all data.
30
+	 * @return \Illuminate\Http\Response
31
+	 */
32
+	public function getReport(Request $request, $reportName, $perPage = 0) 
33
+	{
34
+		if ($this->model) 
35
+		{
36
+			return \Response::json($this->repo->getReport($reportName, $request->all(), $perPage), 200);
37
+		}
38
+	}
39 39
 }
Please login to merge, or discard this patch.
src/Modules/V1/Notifications/PushNotificationDevice.php 1 patch
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 PushNotificationDevice extends Model{
7 7
 
8
-    use SoftDeletes;
9
-    protected $table    = 'push_notifications_devices';
10
-    protected $dates    = ['created_at', 'updated_at', 'deleted_at'];
11
-    protected $hidden   = ['deleted_at', 'access_token'];
12
-    protected $guarded  = ['id'];
13
-    protected $fillable = ['device_token', 'user_id', 'access_token'];
14
-    public $searchable  = ['device_token'];
15
-
16
-    public function getCreatedAtAttribute($value)
17
-    {
18
-        return \Carbon\Carbon::parse($value)->addHours(\Session::get('timeZoneDiff'))->toDateTimeString();
19
-    }
20
-
21
-    public function getUpdatedAtAttribute($value)
22
-    {
23
-        return \Carbon\Carbon::parse($value)->addHours(\Session::get('timeZoneDiff'))->toDateTimeString();
24
-    }
25
-
26
-    public function getDeletedAtAttribute($value)
27
-    {
28
-        return \Carbon\Carbon::parse($value)->addHours(\Session::get('timeZoneDiff'))->toDateTimeString();
29
-    }
8
+	use SoftDeletes;
9
+	protected $table    = 'push_notifications_devices';
10
+	protected $dates    = ['created_at', 'updated_at', 'deleted_at'];
11
+	protected $hidden   = ['deleted_at', 'access_token'];
12
+	protected $guarded  = ['id'];
13
+	protected $fillable = ['device_token', 'user_id', 'access_token'];
14
+	public $searchable  = ['device_token'];
15
+
16
+	public function getCreatedAtAttribute($value)
17
+	{
18
+		return \Carbon\Carbon::parse($value)->addHours(\Session::get('timeZoneDiff'))->toDateTimeString();
19
+	}
20
+
21
+	public function getUpdatedAtAttribute($value)
22
+	{
23
+		return \Carbon\Carbon::parse($value)->addHours(\Session::get('timeZoneDiff'))->toDateTimeString();
24
+	}
25
+
26
+	public function getDeletedAtAttribute($value)
27
+	{
28
+		return \Carbon\Carbon::parse($value)->addHours(\Session::get('timeZoneDiff'))->toDateTimeString();
29
+	}
30 30
     
31
-    public function user()
32
-    {
33
-        return $this->belongsTo('App\Modules\V1\Acl\AclUser');
34
-    }
35
-
36
-    /**
37
-     * Encrypt the access_token attribute before
38
-     * saving it in the storage.
39
-     * 
40
-     * @param string $value 
41
-     */
42
-    public function setLoginTokenAttribute($value)
43
-    {
44
-        $this->attributes['access_token'] = encrypt($value);
45
-    }
46
-
47
-    public static function boot()
48
-    {
49
-        parent::boot();
50
-        parent::observe(\App::make('App\Modules\V1\Notifications\ModelObservers\PushNotificationDeviceObserver'));
51
-    }
31
+	public function user()
32
+	{
33
+		return $this->belongsTo('App\Modules\V1\Acl\AclUser');
34
+	}
35
+
36
+	/**
37
+	 * Encrypt the access_token attribute before
38
+	 * saving it in the storage.
39
+	 * 
40
+	 * @param string $value 
41
+	 */
42
+	public function setLoginTokenAttribute($value)
43
+	{
44
+		$this->attributes['access_token'] = encrypt($value);
45
+	}
46
+
47
+	public static function boot()
48
+	{
49
+		parent::boot();
50
+		parent::observe(\App::make('App\Modules\V1\Notifications\ModelObservers\PushNotificationDeviceObserver'));
51
+	}
52 52
 }
Please login to merge, or discard this patch.
V1/Notifications/Http/Controllers/PushNotificationsDevicesController.php 1 patch
Indentation   +34 added lines, -34 removed lines patch added patch discarded remove patch
@@ -7,42 +7,42 @@
 block discarded – undo
7 7
 
8 8
 class PushNotificationsDevicesController extends BaseApiController
9 9
 {
10
-    /**
11
-     * The name of the model that is used by the base api controller 
12
-     * to preform actions like (add, edit ... etc).
13
-     * @var string
14
-     */
15
-    protected $model            = 'pushNotificationDevices';
10
+	/**
11
+	 * The name of the model that is used by the base api controller 
12
+	 * to preform actions like (add, edit ... etc).
13
+	 * @var string
14
+	 */
15
+	protected $model            = 'pushNotificationDevices';
16 16
 
17
-    /**
18
-     * List of all route actions that the base api controller
19
-     * will skip permissions check for them.
20
-     * @var array
21
-     */
22
-    protected $skipPermissionCheck = ['registerDevice'];
17
+	/**
18
+	 * List of all route actions that the base api controller
19
+	 * will skip permissions check for them.
20
+	 * @var array
21
+	 */
22
+	protected $skipPermissionCheck = ['registerDevice'];
23 23
 
24
-    /**
25
-     * The validations rules used by the base api controller
26
-     * to check before add.
27
-     * @var array
28
-     */
29
-    protected $validationRules  = [
30
-    'device_token' => 'required|string|max:255',
31
-    'user_id'      => 'required|exists:users,id'
32
-    ];
24
+	/**
25
+	 * The validations rules used by the base api controller
26
+	 * to check before add.
27
+	 * @var array
28
+	 */
29
+	protected $validationRules  = [
30
+	'device_token' => 'required|string|max:255',
31
+	'user_id'      => 'required|exists:users,id'
32
+	];
33 33
 
34
-    /**
35
-     * Register the given device to the logged in user.
36
-     *
37
-     * @param  \Illuminate\Http\Request  $request
38
-     * @return \Illuminate\Http\Response
39
-     */
40
-    public function registerDevice(Request $request)
41
-    {
42
-        $this->validate($request, [
43
-            'device_token' => 'required|string|max:255'
44
-            ]);
34
+	/**
35
+	 * Register the given device to the logged in user.
36
+	 *
37
+	 * @param  \Illuminate\Http\Request  $request
38
+	 * @return \Illuminate\Http\Response
39
+	 */
40
+	public function registerDevice(Request $request)
41
+	{
42
+		$this->validate($request, [
43
+			'device_token' => 'required|string|max:255'
44
+			]);
45 45
 
46
-        return \Response::json($this->repo->registerDevice($request->all()), 200);
47
-    }
46
+		return \Response::json($this->repo->registerDevice($request->all()), 200);
47
+	}
48 48
 }
Please login to merge, or discard this patch.
src/Modules/V1/Notifications/Http/Controllers/NotificationsController.php 1 patch
Indentation   +50 added lines, -50 removed lines patch added patch discarded remove patch
@@ -8,59 +8,59 @@
 block discarded – undo
8 8
 class NotificationsController extends BaseApiController
9 9
 {
10 10
 	/**
11
-     * The name of the model that is used by the base api controller 
12
-     * to preform actions like (add, edit ... etc).
13
-     * @var string
14
-     */
15
-    protected $model            = 'notifications';
11
+	 * The name of the model that is used by the base api controller 
12
+	 * to preform actions like (add, edit ... etc).
13
+	 * @var string
14
+	 */
15
+	protected $model            = 'notifications';
16 16
 
17
-    /**
18
-     * List of all route actions that the base api controller
19
-     * will skip permissions check for them.
20
-     * @var array
21
-     */
22
-    protected $skipPermissionCheck = ['markAsRead', 'markAllAsRead'];
17
+	/**
18
+	 * List of all route actions that the base api controller
19
+	 * will skip permissions check for them.
20
+	 * @var array
21
+	 */
22
+	protected $skipPermissionCheck = ['markAsRead', 'markAllAsRead'];
23 23
 
24
-    /**
25
-     * Retrieve all notifications of the logged in user.
26
-     * 
27
-     * @param  integer $perPage
28
-     * @return \Illuminate\Http\Response
29
-     */
30
-    public function list($perPage = 0)
31
-    {
32
-        return \Response::json($this->repo->list($perPage), 200);
33
-    }
24
+	/**
25
+	 * Retrieve all notifications of the logged in user.
26
+	 * 
27
+	 * @param  integer $perPage
28
+	 * @return \Illuminate\Http\Response
29
+	 */
30
+	public function list($perPage = 0)
31
+	{
32
+		return \Response::json($this->repo->list($perPage), 200);
33
+	}
34 34
 
35
-    /**
36
-     * Retrieve unread notifications of the logged in user.
37
-     * 
38
-     * @param  integer $perPage
39
-     * @return \Illuminate\Http\Response
40
-     */
41
-    public function unread($perPage = 0)
42
-    {
43
-        return \Response::json($this->repo->unread($perPage), 200);
44
-    }
35
+	/**
36
+	 * Retrieve unread notifications of the logged in user.
37
+	 * 
38
+	 * @param  integer $perPage
39
+	 * @return \Illuminate\Http\Response
40
+	 */
41
+	public function unread($perPage = 0)
42
+	{
43
+		return \Response::json($this->repo->unread($perPage), 200);
44
+	}
45 45
 
46
-    /**
47
-     * Mark the notification as read.
48
-     * 
49
-     * @param  integer  $id Id of the notification.
50
-     * @return \Illuminate\Http\Response
51
-     */
52
-    public function markAsRead($id)
53
-    {
54
-        return \Response::json($this->repo->markAsRead($id), 200);
55
-    }
46
+	/**
47
+	 * Mark the notification as read.
48
+	 * 
49
+	 * @param  integer  $id Id of the notification.
50
+	 * @return \Illuminate\Http\Response
51
+	 */
52
+	public function markAsRead($id)
53
+	{
54
+		return \Response::json($this->repo->markAsRead($id), 200);
55
+	}
56 56
 
57
-    /**
58
-     * Mark all notifications as read.
59
-     * 
60
-     * @return \Illuminate\Http\Response
61
-     */
62
-    public function markAllAsRead()
63
-    {
64
-        return \Response::json($this->repo->markAllAsRead(), 200);
65
-    }
57
+	/**
58
+	 * Mark all notifications as read.
59
+	 * 
60
+	 * @return \Illuminate\Http\Response
61
+	 */
62
+	public function markAllAsRead()
63
+	{
64
+		return \Response::json($this->repo->markAllAsRead(), 200);
65
+	}
66 66
 }
Please login to merge, or discard this patch.
src/Modules/V1/Notifications/Repositories/NotificationRepository.php 1 patch
Indentation   +64 added lines, -64 removed lines patch added patch discarded remove patch
@@ -4,73 +4,73 @@
 block discarded – undo
4 4
 
5 5
 class NotificationRepository extends AbstractRepository
6 6
 {
7
-    /**
8
-     * Return the model full namespace.
9
-     * 
10
-     * @return string
11
-     */
12
-    protected function getModel()
13
-    {
14
-        return 'App\Modules\V1\Notifications\Notification';
15
-    }
7
+	/**
8
+	 * Return the model full namespace.
9
+	 * 
10
+	 * @return string
11
+	 */
12
+	protected function getModel()
13
+	{
14
+		return 'App\Modules\V1\Notifications\Notification';
15
+	}
16 16
 
17
-    /**
18
-     * Retrieve all notifications of the logged in user.
19
-     * 
20
-     * @param  integer $perPage
21
-     * @return Collection
22
-     */
23
-    public function list($perPage)
24
-    {
25
-        return \Auth::user()->notifications()->paginate($perPage);
26
-    }
17
+	/**
18
+	 * Retrieve all notifications of the logged in user.
19
+	 * 
20
+	 * @param  integer $perPage
21
+	 * @return Collection
22
+	 */
23
+	public function list($perPage)
24
+	{
25
+		return \Auth::user()->notifications()->paginate($perPage);
26
+	}
27 27
 
28
-    /**
29
-     * Retrieve unread notifications of the logged in user.
30
-     * 
31
-     * @param  integer $perPage
32
-     * @return Collection
33
-     */
34
-    public function unread($perPage)
35
-    {
36
-        return \Auth::user()->unreadNotifications()->paginate($perPage);
37
-    }
28
+	/**
29
+	 * Retrieve unread notifications of the logged in user.
30
+	 * 
31
+	 * @param  integer $perPage
32
+	 * @return Collection
33
+	 */
34
+	public function unread($perPage)
35
+	{
36
+		return \Auth::user()->unreadNotifications()->paginate($perPage);
37
+	}
38 38
 
39
-    /**
40
-     * Mark the notification as read.
41
-     * 
42
-     * @param  integer  $id
43
-     * @return object
44
-     */
45
-    public function markAsRead($id)
46
-    {
47
-        if ($notification = \Auth::user()->unreadNotifications()->where('id', $id)) 
48
-        {
49
-            $notification->first()->markAsRead();
50
-        }
51
-    }
39
+	/**
40
+	 * Mark the notification as read.
41
+	 * 
42
+	 * @param  integer  $id
43
+	 * @return object
44
+	 */
45
+	public function markAsRead($id)
46
+	{
47
+		if ($notification = \Auth::user()->unreadNotifications()->where('id', $id)) 
48
+		{
49
+			$notification->first()->markAsRead();
50
+		}
51
+	}
52 52
 
53
-    /**
54
-     * Mark all notifications as read.
55
-     * 
56
-     * @return void
57
-     */
58
-    public function markAllAsRead()
59
-    {
60
-        \Auth::user()->unreadNotifications()->update(['read_at' => now()]);
61
-    }
53
+	/**
54
+	 * Mark all notifications as read.
55
+	 * 
56
+	 * @return void
57
+	 */
58
+	public function markAllAsRead()
59
+	{
60
+		\Auth::user()->unreadNotifications()->update(['read_at' => now()]);
61
+	}
62 62
 
63
-    /**
64
-     * Notify th given user with the given notification.
65
-     * 
66
-     * @param  collection $users
67
-     * @param  string     $notification
68
-     * @param  object     $notificationData
69
-     * @return void
70
-     */
71
-    public function notify($users, $notification, $notificationData = false)
72
-    {
73
-        $notification = 'App\Modules\V1\Notifications\Notifications\\' . $notification;
74
-        \Notification::send($users, new $notification($notificationData));
75
-    }
63
+	/**
64
+	 * Notify th given user with the given notification.
65
+	 * 
66
+	 * @param  collection $users
67
+	 * @param  string     $notification
68
+	 * @param  object     $notificationData
69
+	 * @return void
70
+	 */
71
+	public function notify($users, $notification, $notificationData = false)
72
+	{
73
+		$notification = 'App\Modules\V1\Notifications\Notifications\\' . $notification;
74
+		\Notification::send($users, new $notification($notificationData));
75
+	}
76 76
 }
Please login to merge, or discard this patch.
Modules/V1/Notifications/Repositories/PushNotificationDeviceRepository.php 1 patch
Indentation   +52 added lines, -52 removed lines patch added patch discarded remove patch
@@ -7,56 +7,56 @@
 block discarded – undo
7 7
 
8 8
 class PushNotificationDeviceRepository extends AbstractRepository
9 9
 {
10
-    /**
11
-    * Return the model full namespace.
12
-    * 
13
-    * @return string
14
-    */
15
-    protected function getModel()
16
-    {
17
-        return 'App\Modules\V1\Notifications\PushNotificationDevice';
18
-    }
19
-
20
-    /**
21
-     * Register the given device to the logged in user.
22
-     *
23
-     * @param  string $data
24
-     * @return void
25
-     */
26
-    public function registerDevice($data)
27
-    {
28
-        $data['access_token'] = \Auth::user()->token();
29
-        $data['user_id']      = \Auth::id();
30
-        if ($device = $this->model->where('device_token', $data['device_token'])->where('user_id', $data['user_id'])->first()) 
31
-        {
32
-            $data['id'] = $device->id;
33
-        }
34
-
35
-        return $this->save($data);
36
-    }
37
-
38
-    /**
39
-     * Generate the given message data.
40
-     *
41
-     * @param  string $title
42
-     * @param  string $message
43
-     * @param  string $data
44
-     * @return void
45
-     */
46
-    public function generateMessageData($title, $message, $data = [])
47
-    {
48
-        $optionBuilder       = new OptionsBuilder();
49
-        $notificationBuilder = new PayloadNotificationBuilder($title);
50
-        $dataBuilder         = new PayloadDataBuilder();
51
-
52
-        $optionBuilder->setTimeToLive(60*20);
53
-        $notificationBuilder->setBody($message);
54
-        $dataBuilder->addData($data);
55
-
56
-        $options             = $optionBuilder->build();
57
-        $notification        = $notificationBuilder->build();
58
-        $data                = $dataBuilder->build();
59
-
60
-        return compact('options', 'notification', 'data');
61
-    }
10
+	/**
11
+	 * Return the model full namespace.
12
+	 * 
13
+	 * @return string
14
+	 */
15
+	protected function getModel()
16
+	{
17
+		return 'App\Modules\V1\Notifications\PushNotificationDevice';
18
+	}
19
+
20
+	/**
21
+	 * Register the given device to the logged in user.
22
+	 *
23
+	 * @param  string $data
24
+	 * @return void
25
+	 */
26
+	public function registerDevice($data)
27
+	{
28
+		$data['access_token'] = \Auth::user()->token();
29
+		$data['user_id']      = \Auth::id();
30
+		if ($device = $this->model->where('device_token', $data['device_token'])->where('user_id', $data['user_id'])->first()) 
31
+		{
32
+			$data['id'] = $device->id;
33
+		}
34
+
35
+		return $this->save($data);
36
+	}
37
+
38
+	/**
39
+	 * Generate the given message data.
40
+	 *
41
+	 * @param  string $title
42
+	 * @param  string $message
43
+	 * @param  string $data
44
+	 * @return void
45
+	 */
46
+	public function generateMessageData($title, $message, $data = [])
47
+	{
48
+		$optionBuilder       = new OptionsBuilder();
49
+		$notificationBuilder = new PayloadNotificationBuilder($title);
50
+		$dataBuilder         = new PayloadDataBuilder();
51
+
52
+		$optionBuilder->setTimeToLive(60*20);
53
+		$notificationBuilder->setBody($message);
54
+		$dataBuilder->addData($data);
55
+
56
+		$options             = $optionBuilder->build();
57
+		$notification        = $notificationBuilder->build();
58
+		$data                = $dataBuilder->build();
59
+
60
+		return compact('options', 'notification', 'data');
61
+	}
62 62
 }
Please login to merge, or discard this patch.
src/Modules/V1/Notifications/Notification.php 1 patch
Indentation   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -5,32 +5,32 @@
 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', 'read_at'];
11
-    protected $hidden   = ['deleted_at', 'notifiable_type', 'notifiable_id', 'data'];
12
-    protected $guarded  = ['id'];
13
-    protected $fillable = ['data', 'type', 'notifiable_type', 'notifiable_id', 'read_at'];
14
-    public $searchable  = [];
8
+	use SoftDeletes;
9
+	protected $table    = 'notifications';
10
+	protected $dates    = ['created_at', 'updated_at', 'deleted_at', 'read_at'];
11
+	protected $hidden   = ['deleted_at', 'notifiable_type', 'notifiable_id', 'data'];
12
+	protected $guarded  = ['id'];
13
+	protected $fillable = ['data', 'type', 'notifiable_type', 'notifiable_id', 'read_at'];
14
+	public $searchable  = [];
15 15
 
16
-    public function getCreatedAtAttribute($value)
17
-    {
18
-        return \Carbon\Carbon::parse($value)->addHours(\Session::get('timeZoneDiff'))->toDateTimeString();
19
-    }
16
+	public function getCreatedAtAttribute($value)
17
+	{
18
+		return \Carbon\Carbon::parse($value)->addHours(\Session::get('timeZoneDiff'))->toDateTimeString();
19
+	}
20 20
 
21
-    public function getUpdatedAtAttribute($value)
22
-    {
23
-        return \Carbon\Carbon::parse($value)->addHours(\Session::get('timeZoneDiff'))->toDateTimeString();
24
-    }
21
+	public function getUpdatedAtAttribute($value)
22
+	{
23
+		return \Carbon\Carbon::parse($value)->addHours(\Session::get('timeZoneDiff'))->toDateTimeString();
24
+	}
25 25
 
26
-    public function getDeletedAtAttribute($value)
27
-    {
28
-        return \Carbon\Carbon::parse($value)->addHours(\Session::get('timeZoneDiff'))->toDateTimeString();
29
-    }
26
+	public function getDeletedAtAttribute($value)
27
+	{
28
+		return \Carbon\Carbon::parse($value)->addHours(\Session::get('timeZoneDiff'))->toDateTimeString();
29
+	}
30 30
 
31
-    public static function boot()
32
-    {
33
-        parent::boot();
34
-        parent::observe(\App::make('App\Modules\V1\Notifications\ModelObservers\NotificationObserver'));
35
-    }
31
+	public static function boot()
32
+	{
33
+		parent::boot();
34
+		parent::observe(\App::make('App\Modules\V1\Notifications\ModelObservers\NotificationObserver'));
35
+	}
36 36
 }
Please login to merge, or discard this patch.