@@ -4,8 +4,7 @@ discard block |
||
4 | 4 | |
5 | 5 | use Illuminate\Database\Eloquent\Model; |
6 | 6 | |
7 | -class City extends Model |
|
8 | -{ |
|
7 | +class City extends Model { |
|
9 | 8 | /** |
10 | 9 | * @var string |
11 | 10 | */ |
@@ -32,7 +31,8 @@ discard block |
||
32 | 31 | /** |
33 | 32 | * @return \Illuminate\Database\Eloquent\Relations\HasMany |
34 | 33 | */ |
35 | - public function hospital(){ |
|
34 | + public function hospital() |
|
35 | + { |
|
36 | 36 | return $this->hasMany('App\Hospital'); |
37 | 37 | } |
38 | 38 | } |
@@ -4,8 +4,7 @@ discard block |
||
4 | 4 | |
5 | 5 | use Illuminate\Database\Eloquent\Model; |
6 | 6 | |
7 | -class Hospital extends Model |
|
8 | -{ |
|
7 | +class Hospital extends Model { |
|
9 | 8 | /** |
10 | 9 | * @var string |
11 | 10 | */ |
@@ -32,7 +31,8 @@ discard block |
||
32 | 31 | /** |
33 | 32 | * @return \Illuminate\Database\Eloquent\Relations\BelongsTo |
34 | 33 | */ |
35 | - public function city() { |
|
34 | + public function city() |
|
35 | + { |
|
36 | 36 | return $this->belongsTo('App\City','city_id'); |
37 | 37 | } |
38 | 38 | |
@@ -40,7 +40,8 @@ discard block |
||
40 | 40 | * @param $str |
41 | 41 | * @return string |
42 | 42 | */ |
43 | - public function trimStr($str) { |
|
43 | + public function trimStr($str) |
|
44 | + { |
|
44 | 45 | if(strlen($str) > 10) { |
45 | 46 | return substr($str, 0, 10)."..."; |
46 | 47 | } |
@@ -7,8 +7,7 @@ |
||
7 | 7 | use Illuminate\Contracts\Auth\MustVerifyEmail; |
8 | 8 | use Illuminate\Foundation\Auth\User as Authenticatable; |
9 | 9 | |
10 | -class Admin extends Authenticatable |
|
11 | -{ |
|
10 | +class Admin extends Authenticatable { |
|
12 | 11 | use Notifiable; |
13 | 12 | |
14 | 13 | protected $guard = 'admin'; |
@@ -5,8 +5,7 @@ |
||
5 | 5 | use Illuminate\Console\Scheduling\Schedule; |
6 | 6 | use Illuminate\Foundation\Console\Kernel as ConsoleKernel; |
7 | 7 | |
8 | -class Kernel extends ConsoleKernel |
|
9 | -{ |
|
8 | +class Kernel extends ConsoleKernel { |
|
10 | 9 | /** |
11 | 10 | * The Artisan commands provided by your application. |
12 | 11 | * |
@@ -4,8 +4,7 @@ discard block |
||
4 | 4 | |
5 | 5 | use Illuminate\Database\Eloquent\Model; |
6 | 6 | |
7 | -class DoctorDetail extends Model |
|
8 | -{ |
|
7 | +class DoctorDetail extends Model { |
|
9 | 8 | /** |
10 | 9 | * @var string |
11 | 10 | */ |
@@ -27,14 +26,16 @@ discard block |
||
27 | 26 | /** |
28 | 27 | * @return \Illuminate\Database\Eloquent\Relations\HasMany |
29 | 28 | */ |
30 | - public function doctor() { |
|
29 | + public function doctor() |
|
30 | + { |
|
31 | 31 | return $this->hasMany('App\Doctor', ''); |
32 | 32 | } |
33 | 33 | |
34 | 34 | /** |
35 | 35 | * @return \Illuminate\Database\Eloquent\Relations\HasMany |
36 | 36 | */ |
37 | - public function hospital() { |
|
37 | + public function hospital() |
|
38 | + { |
|
38 | 39 | return $this->hasMany('App\Hospital', 'specialization_id'); |
39 | 40 | } |
40 | 41 |
@@ -4,8 +4,7 @@ |
||
4 | 4 | |
5 | 5 | use Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode as Middleware; |
6 | 6 | |
7 | -class CheckForMaintenanceMode extends Middleware |
|
8 | -{ |
|
7 | +class CheckForMaintenanceMode extends Middleware { |
|
9 | 8 | /** |
10 | 9 | * The URIs that should be reachable while maintenance mode is enabled. |
11 | 10 | * |
@@ -5,8 +5,7 @@ |
||
5 | 5 | use Illuminate\Http\Request; |
6 | 6 | use Fideloper\Proxy\TrustProxies as Middleware; |
7 | 7 | |
8 | -class TrustProxies extends Middleware |
|
9 | -{ |
|
8 | +class TrustProxies extends Middleware { |
|
10 | 9 | /** |
11 | 10 | * The trusted proxies for this application. |
12 | 11 | * |
@@ -4,8 +4,7 @@ |
||
4 | 4 | |
5 | 5 | use Illuminate\Cookie\Middleware\EncryptCookies as Middleware; |
6 | 6 | |
7 | -class EncryptCookies extends Middleware |
|
8 | -{ |
|
7 | +class EncryptCookies extends Middleware { |
|
9 | 8 | /** |
10 | 9 | * The names of the cookies that should not be encrypted. |
11 | 10 | * |
@@ -4,8 +4,7 @@ |
||
4 | 4 | |
5 | 5 | use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken as Middleware; |
6 | 6 | |
7 | -class VerifyCsrfToken extends Middleware |
|
8 | -{ |
|
7 | +class VerifyCsrfToken extends Middleware { |
|
9 | 8 | /** |
10 | 9 | * Indicates whether the XSRF-TOKEN cookie should be set on the response. |
11 | 10 | * |