Pārlūkot izejas kodu

Old Site

master
Bruce Lywood 5 gadus atpakaļ
vecāks
revīzija
edb20dd286
100 mainītis faili ar 17806 papildinājumiem un 1 dzēšanām
  1. Binārs
      .DS_Store
  2. 15
    0
      .editorconfig
  3. 39
    0
      .env.example
  4. 5
    0
      .gitattributes
  5. 15
    0
      .gitignore
  6. 21
    0
      .htaccess
  7. 68
    1
      README.md
  8. 16
    0
      Timeshare.php
  9. 16
    0
      app/Agency.php
  10. 16
    0
      app/Commercial.php
  11. 42
    0
      app/Console/Kernel.php
  12. 16
    0
      app/Contact.php
  13. 16
    0
      app/ContactResort.php
  14. 51
    0
      app/Exceptions/Handler.php
  15. 17
    0
      app/Exports/TimeshareExport.php
  16. 32
    0
      app/Http/Controllers/Auth/ForgotPasswordController.php
  17. 39
    0
      app/Http/Controllers/Auth/LoginController.php
  18. 78
    0
      app/Http/Controllers/Auth/RegisterController.php
  19. 39
    0
      app/Http/Controllers/Auth/ResetPasswordController.php
  20. 41
    0
      app/Http/Controllers/Auth/VerificationController.php
  21. 13
    0
      app/Http/Controllers/Controller.php
  22. 6081
    0
      app/Http/Controllers/PagesController.php
  23. 80
    0
      app/Http/Kernel.php
  24. 21
    0
      app/Http/Middleware/Authenticate.php
  25. 17
    0
      app/Http/Middleware/CheckForMaintenanceMode.php
  26. 17
    0
      app/Http/Middleware/EncryptCookies.php
  27. 26
    0
      app/Http/Middleware/RedirectIfAuthenticated.php
  28. 18
    0
      app/Http/Middleware/TrimStrings.php
  29. 23
    0
      app/Http/Middleware/TrustProxies.php
  30. 24
    0
      app/Http/Middleware/VerifyCsrfToken.php
  31. 3267
    0
      app/Http/PagesController.php
  32. 190
    0
      app/Imports/TimesharesImport.php
  33. 16
    0
      app/Interest.php
  34. 28
    0
      app/Providers/AppServiceProvider.php
  35. 30
    0
      app/Providers/AuthServiceProvider.php
  36. 21
    0
      app/Providers/BroadcastServiceProvider.php
  37. 34
    0
      app/Providers/EventServiceProvider.php
  38. 73
    0
      app/Providers/RouteServiceProvider.php
  39. 16
    0
      app/Residential.php
  40. 8
    0
      app/Resort.php
  41. 16
    0
      app/Seller.php
  42. 16
    0
      app/Timeshare.php
  43. 16
    0
      app/TimeshareBulk.php
  44. 16
    0
      app/TimeshareLog.php
  45. 16
    0
      app/Transfer.php
  46. 30
    0
      app/User.php
  47. 53
    0
      artisan
  48. 55
    0
      bootstrap/app.php
  49. 2
    0
      bootstrap/cache/.gitignore
  50. 61
    0
      composer.json
  51. 5274
    0
      composer.lock
  52. 229
    0
      config/app.php
  53. 102
    0
      config/auth.php
  54. 59
    0
      config/broadcasting.php
  55. 93
    0
      config/cache.php
  56. 131
    0
      config/database.php
  57. 69
    0
      config/filesystems.php
  58. 52
    0
      config/hashing.php
  59. 92
    0
      config/logging.php
  60. 123
    0
      config/mail.php
  61. 86
    0
      config/queue.php
  62. 43
    0
      config/services.php
  63. 199
    0
      config/session.php
  64. 33
    0
      config/view.php
  65. 6
    0
      css/app.css
  66. 7
    0
      css/bootstrap.min.css
  67. 233
    0
      css/style.css
  68. 1
    0
      database/.gitignore
  69. 24
    0
      database/factories/UserFactory.php
  70. 36
    0
      database/migrations/2014_10_12_000000_create_users_table.php
  71. 32
    0
      database/migrations/2014_10_12_100000_create_password_resets_table.php
  72. 16
    0
      database/seeds/DatabaseSeeder.php
  73. 0
    0
      favicon.ico
  74. Binārs
      images/UniVate_properties_png_logo.png
  75. Binārs
      images/about-banner.jpg
  76. Binārs
      images/awards/2011 Silver Crown Logo.png
  77. Binārs
      images/awards/2011-Gold-Crown-Logo.png
  78. Binārs
      images/awards/2018_COE_Logos_white-bkg_translations_en-US-UK.JPG
  79. Binārs
      images/awards/RCI_hospitality.jpg
  80. Binārs
      images/bulk-upload-template.xlsx
  81. Binārs
      images/commercial.jpg
  82. Binārs
      images/commercial/20170626_154153.jpg
  83. Binārs
      images/commercial/20180606_120820.jpg
  84. Binārs
      images/commercial/20180711_151602.jpg
  85. Binārs
      images/commercial/20180711_154434.jpg
  86. Binārs
      images/commercial/20181003_101151.jpg
  87. Binārs
      images/commercial/Ad image 1.jpg
  88. Binārs
      images/commercial/Ad image 2.JPG
  89. Binārs
      images/commercial/Ad image 3.JPG
  90. Binārs
      images/commercial/CR001 PIC 1.jpg
  91. Binārs
      images/commercial/CR001 PIC 2.jpg
  92. Binārs
      images/commercial/CR007 PIC 4.jpg
  93. Binārs
      images/commercial/CS001 PIC 2.JPG
  94. Binārs
      images/commercial/CS001 PIC 3.JPG
  95. Binārs
      images/commercial/CS001 PIC1 .JPG
  96. Binārs
      images/commercial/DSCN4936.JPG
  97. Binārs
      images/commercial/GF CR 004.jpg
  98. Binārs
      images/commercial/IMG_1680.JPG
  99. Binārs
      images/commercial/IMG_3656.jpg
  100. 0
    0
      images/commercial/IMG_3659.jpg

Binārs
.DS_Store Parādīt failu


+ 15
- 0
.editorconfig Parādīt failu

@@ -0,0 +1,15 @@
1
+root = true
2
+
3
+[*]
4
+charset = utf-8
5
+end_of_line = lf
6
+insert_final_newline = true
7
+indent_style = space
8
+indent_size = 4
9
+trim_trailing_whitespace = true
10
+
11
+[*.md]
12
+trim_trailing_whitespace = false
13
+
14
+[*.yml]
15
+indent_size = 2

+ 39
- 0
.env.example Parādīt failu

@@ -0,0 +1,39 @@
1
+APP_NAME=Laravel
2
+APP_ENV=local
3
+APP_KEY=
4
+APP_DEBUG=true
5
+APP_URL=http://localhost
6
+
7
+LOG_CHANNEL=stack
8
+
9
+DB_CONNECTION=mysql
10
+DB_HOST=127.0.0.1
11
+DB_PORT=3306
12
+DB_DATABASE=homestead
13
+DB_USERNAME=homestead
14
+DB_PASSWORD=secret
15
+
16
+BROADCAST_DRIVER=log
17
+CACHE_DRIVER=file
18
+QUEUE_CONNECTION=sync
19
+SESSION_DRIVER=file
20
+SESSION_LIFETIME=120
21
+
22
+REDIS_HOST=127.0.0.1
23
+REDIS_PASSWORD=null
24
+REDIS_PORT=6379
25
+
26
+MAIL_DRIVER=smtp
27
+MAIL_HOST=smtp.mailtrap.io
28
+MAIL_PORT=2525
29
+MAIL_USERNAME=null
30
+MAIL_PASSWORD=null
31
+MAIL_ENCRYPTION=null
32
+
33
+PUSHER_APP_ID=
34
+PUSHER_APP_KEY=
35
+PUSHER_APP_SECRET=
36
+PUSHER_APP_CLUSTER=mt1
37
+
38
+MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
39
+MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"

+ 5
- 0
.gitattributes Parādīt failu

@@ -0,0 +1,5 @@
1
+* text=auto
2
+*.css linguist-vendored
3
+*.scss linguist-vendored
4
+*.js linguist-vendored
5
+CHANGELOG.md export-ignore

+ 15
- 0
.gitignore Parādīt failu

@@ -0,0 +1,15 @@
1
+/node_modules
2
+/public/hot
3
+/public/storage
4
+/storage/*.key
5
+/vendor
6
+/.idea
7
+/.vscode
8
+/nbproject
9
+/.vagrant
10
+Homestead.json
11
+Homestead.yaml
12
+npm-debug.log
13
+yarn-error.log
14
+.env
15
+.phpunit.result.cache

+ 21
- 0
.htaccess Parādīt failu

@@ -0,0 +1,21 @@
1
+<IfModule mod_rewrite.c>
2
+    <IfModule mod_negotiation.c>
3
+        Options -MultiViews -Indexes
4
+    </IfModule>
5
+
6
+    RewriteEngine On
7
+
8
+    # Handle Authorization Header
9
+    RewriteCond %{HTTP:Authorization} .
10
+    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
11
+
12
+    # Redirect Trailing Slashes If Not A Folder...
13
+    RewriteCond %{REQUEST_FILENAME} !-d
14
+    RewriteCond %{REQUEST_URI} (.+)/$
15
+    RewriteRule ^ %1 [L,R=301]
16
+
17
+    # Handle Front Controller...
18
+    RewriteCond %{REQUEST_FILENAME} !-d
19
+    RewriteCond %{REQUEST_FILENAME} !-f
20
+    RewriteRule ^ index.php [L]
21
+</IfModule>

+ 68
- 1
README.md Parādīt failu

@@ -1 +1,68 @@
1
-OldUniVateWebsite
1
+<p align="center"><img src="https://laravel.com/assets/img/components/logo-laravel.svg"></p>
2
+
3
+<p align="center">
4
+<a href="https://travis-ci.org/laravel/framework"><img src="https://travis-ci.org/laravel/framework.svg" alt="Build Status"></a>
5
+<a href="https://packagist.org/packages/laravel/framework"><img src="https://poser.pugx.org/laravel/framework/d/total.svg" alt="Total Downloads"></a>
6
+<a href="https://packagist.org/packages/laravel/framework"><img src="https://poser.pugx.org/laravel/framework/v/stable.svg" alt="Latest Stable Version"></a>
7
+<a href="https://packagist.org/packages/laravel/framework"><img src="https://poser.pugx.org/laravel/framework/license.svg" alt="License"></a>
8
+</p>
9
+
10
+## About Laravel
11
+
12
+Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel attempts to take the pain out of development by easing common tasks used in the majority of web projects, such as:
13
+
14
+- [Simple, fast routing engine](https://laravel.com/docs/routing).
15
+- [Powerful dependency injection container](https://laravel.com/docs/container).
16
+- Multiple back-ends for [session](https://laravel.com/docs/session) and [cache](https://laravel.com/docs/cache) storage.
17
+- Expressive, intuitive [database ORM](https://laravel.com/docs/eloquent).
18
+- Database agnostic [schema migrations](https://laravel.com/docs/migrations).
19
+- [Robust background job processing](https://laravel.com/docs/queues).
20
+- [Real-time event broadcasting](https://laravel.com/docs/broadcasting).
21
+
22
+Laravel is accessible, yet powerful, providing tools needed for large, robust applications.
23
+
24
+## Learning Laravel
25
+
26
+Laravel has the most extensive and thorough [documentation](https://laravel.com/docs) and video tutorial library of any modern web application framework, making it a breeze to get started learning the framework.
27
+
28
+If you're not in the mood to read, [Laracasts](https://laracasts.com) contains over 1100 video tutorials on a range of topics including Laravel, modern PHP, unit testing, JavaScript, and more. Boost the skill level of yourself and your entire team by digging into our comprehensive video library.
29
+
30
+## Laravel Sponsors
31
+
32
+We would like to extend our thanks to the following sponsors for helping fund on-going Laravel development. If you are interested in becoming a sponsor, please visit the Laravel [Patreon page](https://patreon.com/taylorotwell):
33
+
34
+- **[Vehikl](https://vehikl.com/)**
35
+- **[Tighten Co.](https://tighten.co)**
36
+- **[Kirschbaum Development Group](https://kirschbaumdevelopment.com)**
37
+- **[64 Robots](https://64robots.com)**
38
+- **[Cubet Techno Labs](https://cubettech.com)**
39
+- **[British Software Development](https://www.britishsoftware.co)**
40
+- **[Webdock, Fast VPS Hosting](https://www.webdock.io/en)**
41
+- [UserInsights](https://userinsights.com)
42
+- [Fragrantica](https://www.fragrantica.com)
43
+- [SOFTonSOFA](https://softonsofa.com/)
44
+- [User10](https://user10.com)
45
+- [Soumettre.fr](https://soumettre.fr/)
46
+- [CodeBrisk](https://codebrisk.com)
47
+- [1Forge](https://1forge.com)
48
+- [TECPRESSO](https://tecpresso.co.jp/)
49
+- [Runtime Converter](http://runtimeconverter.com/)
50
+- [WebL'Agence](https://weblagence.com/)
51
+- [Invoice Ninja](https://www.invoiceninja.com)
52
+- [iMi digital](https://www.imi-digital.de/)
53
+- [Earthlink](https://www.earthlink.ro/)
54
+- [Steadfast Collective](https://steadfastcollective.com/)
55
+- [We Are The Robots Inc.](https://watr.mx/)
56
+- [Understand.io](https://www.understand.io/)
57
+
58
+## Contributing
59
+
60
+Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the [Laravel documentation](https://laravel.com/docs/contributions).
61
+
62
+## Security Vulnerabilities
63
+
64
+If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via [taylor@laravel.com](mailto:taylor@laravel.com). All security vulnerabilities will be promptly addressed.
65
+
66
+## License
67
+
68
+The Laravel framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).

+ 16
- 0
Timeshare.php Parādīt failu

@@ -0,0 +1,16 @@
1
+<?php
2
+
3
+namespace App;
4
+
5
+use Illuminate\Database\Eloquent\Model;
6
+
7
+class Timeshare extends Model {
8
+
9
+    protected $table = "timeshares";
10
+
11
+    protected $fillable = [
12
+        'resort','module', 'week','bedrooms','season','region','price','sleeps','unit','fromDate','toDate','levy','setPrice','offerPending','sold','published','owner','spacebankOwner','other','agency','statusDate','listingFee','status','names','phone','mobile','email','paid','spacebankedyear','propertType','agent','pre_selected'
13
+    ];
14
+
15
+
16
+}

+ 16
- 0
app/Agency.php Parādīt failu

@@ -0,0 +1,16 @@
1
+<?php
2
+
3
+namespace App;
4
+
5
+use Illuminate\Database\Eloquent\Model;
6
+
7
+class Agency extends Model {
8
+
9
+    protected $table = "agencies";
10
+
11
+    protected $fillable = [
12
+        'name','email', 'phone','mobile','username','agency','EAAB_FFC_Number','registrationNum','password','agencyAdmin'
13
+    ];
14
+
15
+
16
+}

+ 16
- 0
app/Commercial.php Parādīt failu

@@ -0,0 +1,16 @@
1
+<?php
2
+
3
+namespace App;
4
+
5
+use Illuminate\Database\Eloquent\Model;
6
+
7
+class Commercial extends Model {
8
+
9
+    protected $table = "commercials";
10
+
11
+    protected $fillable = [
12
+        'name','ref','location','size','description','intro','price','contact_person','contact_email','contact_mobile','image1','image2','image3','image4','propertType','region','for','parking','town','surburb','unit','published','opCost','address','status2','facilities','directions','virtualtour','meta_Description','meta_Keywords'
13
+    ];
14
+
15
+
16
+}

+ 42
- 0
app/Console/Kernel.php Parādīt failu

@@ -0,0 +1,42 @@
1
+<?php
2
+
3
+namespace App\Console;
4
+
5
+use Illuminate\Console\Scheduling\Schedule;
6
+use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
7
+
8
+class Kernel extends ConsoleKernel
9
+{
10
+    /**
11
+     * The Artisan commands provided by your application.
12
+     *
13
+     * @var array
14
+     */
15
+    protected $commands = [
16
+        //
17
+    ];
18
+
19
+    /**
20
+     * Define the application's command schedule.
21
+     *
22
+     * @param  \Illuminate\Console\Scheduling\Schedule  $schedule
23
+     * @return void
24
+     */
25
+    protected function schedule(Schedule $schedule)
26
+    {
27
+        // $schedule->command('inspire')
28
+        //          ->hourly();
29
+    }
30
+
31
+    /**
32
+     * Register the commands for the application.
33
+     *
34
+     * @return void
35
+     */
36
+    protected function commands()
37
+    {
38
+        $this->load(__DIR__.'/Commands');
39
+
40
+        require base_path('routes/console.php');
41
+    }
42
+}

+ 16
- 0
app/Contact.php Parādīt failu

@@ -0,0 +1,16 @@
1
+<?php
2
+
3
+namespace App;
4
+
5
+use Illuminate\Database\Eloquent\Model;
6
+
7
+class Contact extends Model {
8
+
9
+    protected $table = "contacts";
10
+
11
+    protected $fillable = [
12
+        'name','surname', 'cell','email','message'
13
+    ];
14
+
15
+
16
+}

+ 16
- 0
app/ContactResort.php Parādīt failu

@@ -0,0 +1,16 @@
1
+<?php
2
+
3
+namespace App;
4
+
5
+use Illuminate\Database\Eloquent\Model;
6
+
7
+class ContactResort extends Model {
8
+
9
+    protected $table = "resorts_contacts";
10
+
11
+    protected $fillable = [
12
+        'name','surname', 'cell','email','message'
13
+    ];
14
+
15
+
16
+}

+ 51
- 0
app/Exceptions/Handler.php Parādīt failu

@@ -0,0 +1,51 @@
1
+<?php
2
+
3
+namespace App\Exceptions;
4
+
5
+use Exception;
6
+use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
7
+
8
+class Handler extends ExceptionHandler
9
+{
10
+    /**
11
+     * A list of the exception types that are not reported.
12
+     *
13
+     * @var array
14
+     */
15
+    protected $dontReport = [
16
+        //
17
+    ];
18
+
19
+    /**
20
+     * A list of the inputs that are never flashed for validation exceptions.
21
+     *
22
+     * @var array
23
+     */
24
+    protected $dontFlash = [
25
+        'password',
26
+        'password_confirmation',
27
+    ];
28
+
29
+    /**
30
+     * Report or log an exception.
31
+     *
32
+     * @param  \Exception  $exception
33
+     * @return void
34
+     */
35
+    public function report(Exception $exception)
36
+    {
37
+        parent::report($exception);
38
+    }
39
+
40
+    /**
41
+     * Render an exception into an HTTP response.
42
+     *
43
+     * @param  \Illuminate\Http\Request  $request
44
+     * @param  \Exception  $exception
45
+     * @return \Illuminate\Http\Response
46
+     */
47
+    public function render($request, Exception $exception)
48
+    {
49
+        return parent::render($request, $exception);
50
+    }
51
+}

+ 17
- 0
app/Exports/TimeshareExport.php Parādīt failu

@@ -0,0 +1,17 @@
1
+<?php
2
+
3
+namespace App\Exports;
4
+
5
+use App\Timeshare;
6
+use Maatwebsite\Excel\Concerns\FromCollection;
7
+
8
+class TimeshareExport implements FromCollection
9
+{
10
+    /**
11
+    * @return \Illuminate\Support\Collection
12
+    */
13
+    public function collection()
14
+    {
15
+        return Timeshare::all();
16
+    }
17
+}

+ 32
- 0
app/Http/Controllers/Auth/ForgotPasswordController.php Parādīt failu

@@ -0,0 +1,32 @@
1
+<?php
2
+
3
+namespace App\Http\Controllers\Auth;
4
+
5
+use App\Http\Controllers\Controller;
6
+use Illuminate\Foundation\Auth\SendsPasswordResetEmails;
7
+
8
+class ForgotPasswordController extends Controller
9
+{
10
+    /*
11
+    |--------------------------------------------------------------------------
12
+    | Password Reset Controller
13
+    |--------------------------------------------------------------------------
14
+    |
15
+    | This controller is responsible for handling password reset emails and
16
+    | includes a trait which assists in sending these notifications from
17
+    | your application to your users. Feel free to explore this trait.
18
+    |
19
+    */
20
+
21
+    use SendsPasswordResetEmails;
22
+
23
+    /**
24
+     * Create a new controller instance.
25
+     *
26
+     * @return void
27
+     */
28
+    public function __construct()
29
+    {
30
+        $this->middleware('guest');
31
+    }
32
+}

+ 39
- 0
app/Http/Controllers/Auth/LoginController.php Parādīt failu

@@ -0,0 +1,39 @@
1
+<?php
2
+
3
+namespace App\Http\Controllers\Auth;
4
+
5
+use App\Http\Controllers\Controller;
6
+use Illuminate\Foundation\Auth\AuthenticatesUsers;
7
+
8
+class LoginController extends Controller
9
+{
10
+    /*
11
+    |--------------------------------------------------------------------------
12
+    | Login Controller
13
+    |--------------------------------------------------------------------------
14
+    |
15
+    | This controller handles authenticating users for the application and
16
+    | redirecting them to your home screen. The controller uses a trait
17
+    | to conveniently provide its functionality to your applications.
18
+    |
19
+    */
20
+
21
+    use AuthenticatesUsers;
22
+
23
+    /**
24
+     * Where to redirect users after login.
25
+     *
26
+     * @var string
27
+     */
28
+    protected $redirectTo = '/';
29
+
30
+    /**
31
+     * Create a new controller instance.
32
+     *
33
+     * @return void
34
+     */
35
+    public function __construct()
36
+    {
37
+        $this->middleware('guest')->except('logout');
38
+    }
39
+}

+ 78
- 0
app/Http/Controllers/Auth/RegisterController.php Parādīt failu

@@ -0,0 +1,78 @@
1
+<?php
2
+namespace App\Repositories;
3
+namespace App\Http\Controllers\Auth;
4
+
5
+use App\User;
6
+use App\Http\Controllers\Controller;
7
+use Illuminate\Support\Facades\Hash;
8
+use Illuminate\Support\Facades\Validator;
9
+use Illuminate\Foundation\Auth\RegistersUsers;
10
+
11
+class RegisterController extends Controller
12
+{
13
+    /*
14
+    |--------------------------------------------------------------------------
15
+    | Register Controller
16
+    |--------------------------------------------------------------------------
17
+    |
18
+    | This controller handles the registration of new users as well as their
19
+    | validation and creation. By default this controller uses a trait to
20
+    | provide this functionality without requiring any additional code.
21
+    |
22
+    */
23
+
24
+    use RegistersUsers;
25
+
26
+    /**
27
+     * Where to redirect users after registration.
28
+     *
29
+     * @var string
30
+     */
31
+    protected $redirectTo = '/';
32
+
33
+    /**
34
+     * Create a new controller instance.
35
+     *
36
+     * @return void
37
+     */
38
+    public function __construct()
39
+    {
40
+        $this->middleware('guest');
41
+    }
42
+
43
+    /**
44
+     * Get a validator for an incoming registration request.
45
+     *
46
+     * @param  array  $data
47
+     * @return \Illuminate\Contracts\Validation\Validator
48
+     */
49
+    protected function validator(array $data)
50
+    {
51
+        return Validator::make($data, [
52
+            'name' => ['required', 'string', 'max:255'],
53
+            'surname' => ['required', 'string', 'max:255'],
54
+            'username' => ['required', 'string', 'max:255'],
55
+            'mobile' => ['required', 'string', 'max:255'],
56
+            'email' => ['required', 'string', 'email', 'max:255', 'unique:users'],
57
+            'password' => ['required', 'string', 'min:6', 'confirmed'],
58
+        ]);
59
+    }
60
+
61
+    /**
62
+     * Create a new user instance after a valid registration.
63
+     *
64
+     * @param  array  $data
65
+     * @return \App\User
66
+     */
67
+    protected function create(array $data)
68
+    {
69
+        return User::create([
70
+            'name' => $data['name'],
71
+            'surname' => $data['surname'], 
72
+            'username' => $data['username'],
73
+            'mobile' => $data['mobile'],  
74
+            'email' => $data['email'],
75
+            'password' => Hash::make($data['password']),
76
+        ]);
77
+    }
78
+}

+ 39
- 0
app/Http/Controllers/Auth/ResetPasswordController.php Parādīt failu

@@ -0,0 +1,39 @@
1
+<?php
2
+
3
+namespace App\Http\Controllers\Auth;
4
+
5
+use App\Http\Controllers\Controller;
6
+use Illuminate\Foundation\Auth\ResetsPasswords;
7
+
8
+class ResetPasswordController extends Controller
9
+{
10
+    /*
11
+    |--------------------------------------------------------------------------
12
+    | Password Reset Controller
13
+    |--------------------------------------------------------------------------
14
+    |
15
+    | This controller is responsible for handling password reset requests
16
+    | and uses a simple trait to include this behavior. You're free to
17
+    | explore this trait and override any methods you wish to tweak.
18
+    |
19
+    */
20
+
21
+    use ResetsPasswords;
22
+
23
+    /**
24
+     * Where to redirect users after resetting their password.
25
+     *
26
+     * @var string
27
+     */
28
+    protected $redirectTo = '/';
29
+
30
+    /**
31
+     * Create a new controller instance.
32
+     *
33
+     * @return void
34
+     */
35
+    public function __construct()
36
+    {
37
+        $this->middleware('guest');
38
+    }
39
+}

+ 41
- 0
app/Http/Controllers/Auth/VerificationController.php Parādīt failu

@@ -0,0 +1,41 @@
1
+<?php
2
+
3
+namespace App\Http\Controllers\Auth;
4
+
5
+use App\Http\Controllers\Controller;
6
+use Illuminate\Foundation\Auth\VerifiesEmails;
7
+
8
+class VerificationController extends Controller
9
+{
10
+    /*
11
+    |--------------------------------------------------------------------------
12
+    | Email Verification Controller
13
+    |--------------------------------------------------------------------------
14
+    |
15
+    | This controller is responsible for handling email verification for any
16
+    | user that recently registered with the application. Emails may also
17
+    | be re-sent if the user didn't receive the original email message.
18
+    |
19
+    */
20
+
21
+    use VerifiesEmails;
22
+
23
+    /**
24
+     * Where to redirect users after verification.
25
+     *
26
+     * @var string
27
+     */
28
+    protected $redirectTo = '/home';
29
+
30
+    /**
31
+     * Create a new controller instance.
32
+     *
33
+     * @return void
34
+     */
35
+    public function __construct()
36
+    {
37
+        $this->middleware('auth');
38
+        $this->middleware('signed')->only('verify');
39
+        $this->middleware('throttle:6,1')->only('verify', 'resend');
40
+    }
41
+}

+ 13
- 0
app/Http/Controllers/Controller.php Parādīt failu

@@ -0,0 +1,13 @@
1
+<?php
2
+
3
+namespace App\Http\Controllers;
4
+
5
+use Illuminate\Foundation\Bus\DispatchesJobs;
6
+use Illuminate\Routing\Controller as BaseController;
7
+use Illuminate\Foundation\Validation\ValidatesRequests;
8
+use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
9
+
10
+class Controller extends BaseController
11
+{
12
+    use AuthorizesRequests, DispatchesJobs, ValidatesRequests;
13
+}

+ 6081
- 0
app/Http/Controllers/PagesController.php
Failā izmaiņas netiks attēlotas, jo tās ir par lielu
Parādīt failu


+ 80
- 0
app/Http/Kernel.php Parādīt failu

@@ -0,0 +1,80 @@
1
+<?php
2
+
3
+namespace App\Http;
4
+
5
+use Illuminate\Foundation\Http\Kernel as HttpKernel;
6
+
7
+class Kernel extends HttpKernel
8
+{
9
+    /**
10
+     * The application's global HTTP middleware stack.
11
+     *
12
+     * These middleware are run during every request to your application.
13
+     *
14
+     * @var array
15
+     */
16
+    protected $middleware = [
17
+        \App\Http\Middleware\CheckForMaintenanceMode::class,
18
+        \Illuminate\Foundation\Http\Middleware\ValidatePostSize::class,
19
+        \App\Http\Middleware\TrimStrings::class,
20
+        \Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class,
21
+        \App\Http\Middleware\TrustProxies::class,
22
+    ];
23
+
24
+    /**
25
+     * The application's route middleware groups.
26
+     *
27
+     * @var array
28
+     */
29
+    protected $middlewareGroups = [
30
+        'web' => [
31
+            \App\Http\Middleware\EncryptCookies::class,
32
+            \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
33
+            \Illuminate\Session\Middleware\StartSession::class,
34
+            // \Illuminate\Session\Middleware\AuthenticateSession::class,
35
+            \Illuminate\View\Middleware\ShareErrorsFromSession::class,
36
+            \App\Http\Middleware\VerifyCsrfToken::class,
37
+            \Illuminate\Routing\Middleware\SubstituteBindings::class,
38
+        ],
39
+
40
+        'api' => [
41
+            'throttle:60,1',
42
+            'bindings',
43
+        ],
44
+    ];
45
+
46
+    /**
47
+     * The application's route middleware.
48
+     *
49
+     * These middleware may be assigned to groups or used individually.
50
+     *
51
+     * @var array
52
+     */
53
+    protected $routeMiddleware = [
54
+        'auth' => \App\Http\Middleware\Authenticate::class,
55
+        'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
56
+        'bindings' => \Illuminate\Routing\Middleware\SubstituteBindings::class,
57
+        'cache.headers' => \Illuminate\Http\Middleware\SetCacheHeaders::class,
58
+        'can' => \Illuminate\Auth\Middleware\Authorize::class,
59
+        'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class,
60
+        'signed' => \Illuminate\Routing\Middleware\ValidateSignature::class,
61
+        'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,
62
+        'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class,
63
+    ];
64
+
65
+    /**
66
+     * The priority-sorted list of middleware.
67
+     *
68
+     * This forces the listed middleware to always be in the given order.
69
+     *
70
+     * @var array
71
+     */
72
+    protected $middlewarePriority = [
73
+        \Illuminate\Session\Middleware\StartSession::class,
74
+        \Illuminate\View\Middleware\ShareErrorsFromSession::class,
75
+        \App\Http\Middleware\Authenticate::class,
76
+        \Illuminate\Session\Middleware\AuthenticateSession::class,
77
+        \Illuminate\Routing\Middleware\SubstituteBindings::class,
78
+        \Illuminate\Auth\Middleware\Authorize::class,
79
+    ];
80
+}

+ 21
- 0
app/Http/Middleware/Authenticate.php Parādīt failu

@@ -0,0 +1,21 @@
1
+<?php
2
+
3
+namespace App\Http\Middleware;
4
+
5
+use Illuminate\Auth\Middleware\Authenticate as Middleware;
6
+
7
+class Authenticate extends Middleware
8
+{
9
+    /**
10
+     * Get the path the user should be redirected to when they are not authenticated.
11
+     *
12
+     * @param  \Illuminate\Http\Request  $request
13
+     * @return string
14
+     */
15
+    protected function redirectTo($request)
16
+    {
17
+        if (! $request->expectsJson()) {
18
+            return route('login');
19
+        }
20
+    }
21
+}

+ 17
- 0
app/Http/Middleware/CheckForMaintenanceMode.php Parādīt failu

@@ -0,0 +1,17 @@
1
+<?php
2
+
3
+namespace App\Http\Middleware;
4
+
5
+use Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode as Middleware;
6
+
7
+class CheckForMaintenanceMode extends Middleware
8
+{
9
+    /**
10
+     * The URIs that should be reachable while maintenance mode is enabled.
11
+     *
12
+     * @var array
13
+     */
14
+    protected $except = [
15
+        //
16
+    ];
17
+}

+ 17
- 0
app/Http/Middleware/EncryptCookies.php Parādīt failu

@@ -0,0 +1,17 @@
1
+<?php
2
+
3
+namespace App\Http\Middleware;
4
+
5
+use Illuminate\Cookie\Middleware\EncryptCookies as Middleware;
6
+
7
+class EncryptCookies extends Middleware
8
+{
9
+    /**
10
+     * The names of the cookies that should not be encrypted.
11
+     *
12
+     * @var array
13
+     */
14
+    protected $except = [
15
+        //
16
+    ];
17
+}

+ 26
- 0
app/Http/Middleware/RedirectIfAuthenticated.php Parādīt failu

@@ -0,0 +1,26 @@
1
+<?php
2
+
3
+namespace App\Http\Middleware;
4
+
5
+use Closure;
6
+use Illuminate\Support\Facades\Auth;
7
+
8
+class RedirectIfAuthenticated
9
+{
10
+    /**
11
+     * Handle an incoming request.
12
+     *
13
+     * @param  \Illuminate\Http\Request  $request
14
+     * @param  \Closure  $next
15
+     * @param  string|null  $guard
16
+     * @return mixed
17
+     */
18
+    public function handle($request, Closure $next, $guard = null)
19
+    {
20
+        if (Auth::guard($guard)->check()) {
21
+            return redirect('/home');
22
+        }
23
+
24
+        return $next($request);
25
+    }
26
+}

+ 18
- 0
app/Http/Middleware/TrimStrings.php Parādīt failu

@@ -0,0 +1,18 @@
1
+<?php
2
+
3
+namespace App\Http\Middleware;
4
+
5
+use Illuminate\Foundation\Http\Middleware\TrimStrings as Middleware;
6
+
7
+class TrimStrings extends Middleware
8
+{
9
+    /**
10
+     * The names of the attributes that should not be trimmed.
11
+     *
12
+     * @var array
13
+     */
14
+    protected $except = [
15
+        'password',
16
+        'password_confirmation',
17
+    ];
18
+}

+ 23
- 0
app/Http/Middleware/TrustProxies.php Parādīt failu

@@ -0,0 +1,23 @@
1
+<?php
2
+
3
+namespace App\Http\Middleware;
4
+
5
+use Illuminate\Http\Request;
6
+use Fideloper\Proxy\TrustProxies as Middleware;
7
+
8
+class TrustProxies extends Middleware
9
+{
10
+    /**
11
+     * The trusted proxies for this application.
12
+     *
13
+     * @var array
14
+     */
15
+    protected $proxies;
16
+
17
+    /**
18
+     * The headers that should be used to detect proxies.
19
+     *
20
+     * @var int
21
+     */
22
+    protected $headers = Request::HEADER_X_FORWARDED_ALL;
23
+}

+ 24
- 0
app/Http/Middleware/VerifyCsrfToken.php Parādīt failu

@@ -0,0 +1,24 @@
1
+<?php
2
+
3
+namespace App\Http\Middleware;
4
+
5
+use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken as Middleware;
6
+
7
+class VerifyCsrfToken extends Middleware
8
+{
9
+    /**
10
+     * Indicates whether the XSRF-TOKEN cookie should be set on the response.
11
+     *
12
+     * @var bool
13
+     */
14
+    protected $addHttpCookie = true;
15
+
16
+    /**
17
+     * The URIs that should be excluded from CSRF verification.
18
+     *
19
+     * @var array
20
+     */
21
+    protected $except = [
22
+        //
23
+    ];
24
+}

+ 3267
- 0
app/Http/PagesController.php
Failā izmaiņas netiks attēlotas, jo tās ir par lielu
Parādīt failu


+ 190
- 0
app/Imports/TimesharesImport.php Parādīt failu

@@ -0,0 +1,190 @@
1
+<?php
2
+
3
+namespace App\Imports;
4
+
5
+use App\Timeshare;
6
+use Auth;
7
+use Maatwebsite\Excel\Concerns\ToModel;
8
+use Maatwebsite\Excel\Concerns\WithHeadingRow;
9
+use Illuminate\Support\Facades\DB;
10
+
11
+class TimesharesImport implements ToModel, WithHeadingRow
12
+{
13
+    /**
14
+     * @param array $row
15
+     *
16
+     * @return Timeshare|null
17
+     */
18
+    public $count = 0;
19
+
20
+    public function model(array $row)
21
+    {
22
+        if(Auth::user()->role=='user' && Auth::user()->agency==NULL)//private seller/buyer
23
+        {
24
+            $user = DB::table('users')
25
+                ->where('id','=',Auth::user()->id)
26
+                ->first();
27
+
28
+                ++$this->count;
29
+
30
+            return new Timeshare([
31
+                'resort'     => $row['Resort'],
32
+                'module' => $row['Module'],
33
+                'week' => $row['Week'],
34
+                'bedrooms' => $row['Bedrooms'],
35
+                'season' => $row['Season'],
36
+                'region' => $row['Region'],
37
+                'price' => $row['Price'],
38
+                'sleeps' => $row['Sleeps'],
39
+                'unit' => $row['Unit'],
40
+                'fromDate' => \PhpOffice\PhpSpreadsheet\Shared\Date::excelToDateTimeObject($row['Arrival']),
41
+                'toDate' => \PhpOffice\PhpSpreadsheet\Shared\Date::excelToDateTimeObject($row['Departure']),
42
+                'levy' => $row['Levy'],
43
+                'setPrice' => 0,
44
+                'offerPending' => 0,
45
+                'sold' => 0,
46
+                'published' => 0,
47
+                'owner' => $row['Owner'],
48
+                'spacebankOwner' => NULL,
49
+                'other' => NULL,
50
+                'agency' => 'N/A',
51
+                'statusDate' => NULL,
52
+                'listingFee' => NULL,
53
+                'status' => 'For Sale',
54
+                'names'=> $user->name,
55
+                'phone' => $user->phone,
56
+                'mobile' => $user->mobile,
57
+                'email' => $user->email,
58
+                'paid' => 'no',
59
+                'spacebankedyear' => 'no',
60
+                'propertType' => 'Timeshare',
61
+                'agent'=> 'N/A',
62
+                'pre_selected' => 0
63
+
64
+            ]);
65
+        }
66
+        elseif(Auth::user()->role=='user' && Auth::user()->agency!=NULL) //Agents who are under an agency
67
+        {
68
+            $user = DB::table('users')
69
+                ->where('id','=',Auth::user()->id)
70
+                ->first();
71
+
72
+                ++$this->count;
73
+
74
+            return new Timeshare([
75
+                'resort'     => $row['resort'],
76
+                'module' => $row['module'],
77
+                'week' => $row['week'],
78
+                'bedrooms' => $row['bedrooms'],
79
+                'season' => $row['season'],
80
+                'region' => $row['region'],
81
+                'price' => $row['price'],
82
+                'sleeps' => $row['sleeps'],
83
+                'unit' => $row['unit'],
84
+                'fromDate' => \PhpOffice\PhpSpreadsheet\Shared\Date::excelToDateTimeObject($row['arrival']),
85
+                'toDate' => \PhpOffice\PhpSpreadsheet\Shared\Date::excelToDateTimeObject($row['departure']),
86
+                'levy' => $row['levy'],
87
+                'setPrice' => 0,
88
+                'offerPending' => 0,
89
+                'sold' => 0,
90
+                'published' => 0,
91
+                'owner' => $row['owner'],
92
+                'spacebankOwner' => NULL,
93
+                'other' => NULL,
94
+                'agency' => $user->agency,
95
+                'statusDate' => NULL,
96
+                'listingFee' => NULL,
97
+                'status' => 'For Sale',
98
+                'names'=> $user->name,
99
+                'phone' => $user->phone,
100
+                'mobile' => $user->mobile,
101
+                'email' => $user->email,
102
+                'paid' => 'no',
103
+                'spacebankedyear' => 'no',
104
+                'propertType' => 'Timeshare',
105
+                'agent'=> $user->name,
106
+                'pre_selected' => 0
107
+                ]);
108
+        }
109
+        elseif(Auth::user()->role=='agency admin') //Agency administrator
110
+        {
111
+            $user = DB::table('users')
112
+                ->where('id','=',Auth::user()->id)
113
+                ->first();
114
+
115
+                ++$this->count;
116
+
117
+            return new Timeshare([
118
+                'resort'     => $row['resort'],
119
+                'module' => $row['module'],
120
+                'week' => $row['week'],
121
+                'bedrooms' => $row['bedrooms'],
122
+                'season' => $row['season'],
123
+                'region' => $row['region'],
124
+                'price' => $row['price'],
125
+                'sleeps' => $row['sleeps'],
126
+                'unit' => $row['unit'],
127
+                'fromDate' => \PhpOffice\PhpSpreadsheet\Shared\Date::excelToDateTimeObject($row['arrival']),
128
+                'toDate' => \PhpOffice\PhpSpreadsheet\Shared\Date::excelToDateTimeObject($row['departure']),
129
+                'levy' => $row['levy'],
130
+                'setPrice' => 0,
131
+                'offerPending' => 0,
132
+                'sold' => 0,
133
+                'published' => 0,
134
+                'owner' => $row['owner'],
135
+                'spacebankOwner' => NULL,
136
+                'other' => NULL,
137
+                'agency' => $user->agency,
138
+                'statusDate' => NULL,
139
+                'listingFee' => NULL,
140
+                'status' => 'For Sale',
141
+                'names'=> $user->name,
142
+                'phone' => $user->phone,
143
+                'mobile' => $user->mobile,
144
+                'email' => $user->email,
145
+                'paid' => 'no',
146
+                'spacebankedyear' => 'no',
147
+                'propertType' => 'Timeshare',
148
+                'agent'=> $user->name,
149
+                'pre_selected' => 0
150
+                ]);
151
+        }
152
+        elseif(Auth::user()->role=='admin') //admin
153
+        {
154
+            return new Timeshare([
155
+                'resort'     => $row['resort'],
156
+                'module' => $row['module'],
157
+                'week' => $row['week'],
158
+                'bedrooms' => $row['bedrooms'],
159
+                'season' => $row['season'],
160
+                'region' => $row['region'],
161
+                'price' => $row['price'],
162
+                'sleeps' => $row['sleeps'],
163
+                'unit' => $row['unit'],
164
+                'fromDate' => \PhpOffice\PhpSpreadsheet\Shared\Date::excelToDateTimeObject($row['arrival_date']),
165
+                'toDate' => \PhpOffice\PhpSpreadsheet\Shared\Date::excelToDateTimeObject($row['departure_date']),
166
+                'levy' => $row['levy'],
167
+                'setPrice' => 0,
168
+                'offerPending' => 0,
169
+                'sold' => 0,
170
+                'published' => 0,
171
+                'owner' => 'UB',
172
+                'spacebankOwner' => NULL,
173
+                'other' => NULL,
174
+                'agency' => NULL,
175
+                'statusDate' => NULL,
176
+                'listingFee' => NULL,
177
+                'status' => 'For Sale',
178
+                'names'=> 'Delia',
179
+                'phone' => '012 700 4567',
180
+                'mobile' => '083 784 5554',
181
+                'email' => 'info@univateproperties.co.za',
182
+                'paid' => 'no',
183
+                'spacebankedyear' => 'no',
184
+                'propertType' => 'Timeshare',
185
+                'agent'=> 'None',
186
+                'pre_selected' => 0
187
+            ]);
188
+        }
189
+    }
190
+}

+ 16
- 0
app/Interest.php Parādīt failu

@@ -0,0 +1,16 @@
1
+<?php
2
+
3
+namespace App;
4
+
5
+use Illuminate\Database\Eloquent\Model;
6
+
7
+class Interest extends Model {
8
+
9
+    protected $table = "interests";
10
+
11
+    protected $fillable = [
12
+        'name','email', 'phone','mobile'
13
+    ];
14
+
15
+
16
+}

+ 28
- 0
app/Providers/AppServiceProvider.php Parādīt failu

@@ -0,0 +1,28 @@
1
+<?php
2
+
3
+namespace App\Providers;
4
+
5
+use Illuminate\Support\ServiceProvider;
6
+
7
+class AppServiceProvider extends ServiceProvider
8
+{
9
+    /**
10
+     * Bootstrap any application services.
11
+     *
12
+     * @return void
13
+     */
14
+    public function boot()
15
+    {
16
+        //
17
+    }
18
+
19
+    /**
20
+     * Register any application services.
21
+     *
22
+     * @return void
23
+     */
24
+    public function register()
25
+    {
26
+        //
27
+    }
28
+}

+ 30
- 0
app/Providers/AuthServiceProvider.php Parādīt failu

@@ -0,0 +1,30 @@
1
+<?php
2
+
3
+namespace App\Providers;
4
+
5
+use Illuminate\Support\Facades\Gate;
6
+use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
7
+
8
+class AuthServiceProvider extends ServiceProvider
9
+{
10
+    /**
11
+     * The policy mappings for the application.
12
+     *
13
+     * @var array
14
+     */
15
+    protected $policies = [
16
+        'App\Model' => 'App\Policies\ModelPolicy',
17
+    ];
18
+
19
+    /**
20
+     * Register any authentication / authorization services.
21
+     *
22
+     * @return void
23
+     */
24
+    public function boot()
25
+    {
26
+        $this->registerPolicies();
27
+
28
+        //
29
+    }
30
+}

+ 21
- 0
app/Providers/BroadcastServiceProvider.php Parādīt failu

@@ -0,0 +1,21 @@
1
+<?php
2
+
3
+namespace App\Providers;
4
+
5
+use Illuminate\Support\ServiceProvider;
6
+use Illuminate\Support\Facades\Broadcast;
7
+
8
+class BroadcastServiceProvider extends ServiceProvider
9
+{
10
+    /**
11
+     * Bootstrap any application services.
12
+     *
13
+     * @return void
14
+     */
15
+    public function boot()
16
+    {
17
+        Broadcast::routes();
18
+
19
+        require base_path('routes/channels.php');
20
+    }
21
+}

+ 34
- 0
app/Providers/EventServiceProvider.php Parādīt failu

@@ -0,0 +1,34 @@
1
+<?php
2
+
3
+namespace App\Providers;
4
+
5
+use Illuminate\Support\Facades\Event;
6
+use Illuminate\Auth\Events\Registered;
7
+use Illuminate\Auth\Listeners\SendEmailVerificationNotification;
8
+use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
9
+
10
+class EventServiceProvider extends ServiceProvider
11
+{
12
+    /**
13
+     * The event listener mappings for the application.
14
+     *
15
+     * @var array
16
+     */
17
+    protected $listen = [
18
+        Registered::class => [
19
+            SendEmailVerificationNotification::class,
20
+        ],
21
+    ];
22
+
23
+    /**
24
+     * Register any events for your application.
25
+     *
26
+     * @return void
27
+     */
28
+    public function boot()
29
+    {
30
+        parent::boot();
31
+
32
+        //
33
+    }
34
+}

+ 73
- 0
app/Providers/RouteServiceProvider.php Parādīt failu

@@ -0,0 +1,73 @@
1
+<?php
2
+
3
+namespace App\Providers;
4
+
5
+use Illuminate\Support\Facades\Route;
6
+use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
7
+
8
+class RouteServiceProvider extends ServiceProvider
9
+{
10
+    /**
11
+     * This namespace is applied to your controller routes.
12
+     *
13
+     * In addition, it is set as the URL generator's root namespace.
14
+     *
15
+     * @var string
16
+     */
17
+    protected $namespace = 'App\Http\Controllers';
18
+
19
+    /**
20
+     * Define your route model bindings, pattern filters, etc.
21
+     *
22
+     * @return void
23
+     */
24
+    public function boot()
25
+    {
26
+        //
27
+
28
+        parent::boot();
29
+    }
30
+
31
+    /**
32
+     * Define the routes for the application.
33
+     *
34
+     * @return void
35
+     */
36
+    public function map()
37
+    {
38
+        $this->mapApiRoutes();
39
+
40
+        $this->mapWebRoutes();
41
+
42
+        //
43
+    }
44
+
45
+    /**
46
+     * Define the "web" routes for the application.
47
+     *
48
+     * These routes all receive session state, CSRF protection, etc.
49
+     *
50
+     * @return void
51
+     */
52
+    protected function mapWebRoutes()
53
+    {
54
+        Route::middleware('web')
55
+             ->namespace($this->namespace)
56
+             ->group(base_path('routes/web.php'));
57
+    }
58
+
59
+    /**
60
+     * Define the "api" routes for the application.
61
+     *
62
+     * These routes are typically stateless.
63
+     *
64
+     * @return void
65
+     */
66
+    protected function mapApiRoutes()
67
+    {
68
+        Route::prefix('api')
69
+             ->middleware('api')
70
+             ->namespace($this->namespace)
71
+             ->group(base_path('routes/api.php'));
72
+    }
73
+}

+ 16
- 0
app/Residential.php Parādīt failu

@@ -0,0 +1,16 @@
1
+<?php
2
+
3
+namespace App;
4
+
5
+use Illuminate\Database\Eloquent\Model;
6
+
7
+class Residential extends Model {
8
+
9
+    protected $table = "residentials";
10
+
11
+    protected $fillable = [
12
+        'name','heading','ref','location','size','description','intro','price','contact_person','contact_email','contact_mobile','image1','image2','image3','propertType','region','for','town','surburb','unit','published','address','status2','bathrooms','facilities','directions','meta_Description','meta_Keywords'
13
+    ];
14
+
15
+
16
+}

+ 8
- 0
app/Resort.php Parādīt failu

@@ -0,0 +1,8 @@
1
+<?php
2
+
3
+class Resort extends Eloquent {
4
+
5
+    protected $table = "resorts";
6
+
7
+
8
+}

+ 16
- 0
app/Seller.php Parādīt failu

@@ -0,0 +1,16 @@
1
+<?php
2
+
3
+namespace App;
4
+
5
+use Illuminate\Database\Eloquent\Model;
6
+
7
+class Seller extends Model {
8
+
9
+    protected $table = "sellers";
10
+
11
+    protected $fillable = [
12
+        'paid','spaceBanked', 'rental','date','purchasePrice','sellingPrice','estateAgency','commission'
13
+    ];
14
+
15
+
16
+}

+ 16
- 0
app/Timeshare.php Parādīt failu

@@ -0,0 +1,16 @@
1
+<?php
2
+
3
+namespace App;
4
+
5
+use Illuminate\Database\Eloquent\Model;
6
+
7
+class Timeshare extends Model {
8
+
9
+    protected $table = "timeshares";
10
+
11
+    protected $fillable = [
12
+        'resort','module', 'week','bedrooms','season','region','price','sleeps','unit','fromDate','toDate','levy','setPrice','offerPending','sold','published','owner','spacebankOwner','other','agency','statusDate','listingFee','status','names','phone','mobile','email','paid','spacebankedyear','propertType','agent','pre_selected'
13
+    ];
14
+
15
+
16
+}

+ 16
- 0
app/TimeshareBulk.php Parādīt failu

@@ -0,0 +1,16 @@
1
+<?php
2
+
3
+namespace App;
4
+
5
+use Illuminate\Database\Eloquent\Model;
6
+
7
+class TimeshareBulk extends Model {
8
+
9
+    protected $table = "timeshare_bulk_uploads";
10
+
11
+    protected $fillable = [
12
+        'user_id','username', 'email','listingFee'
13
+    ];
14
+
15
+
16
+}

+ 16
- 0
app/TimeshareLog.php Parādīt failu

@@ -0,0 +1,16 @@
1
+<?php
2
+
3
+namespace App;
4
+
5
+use Illuminate\Database\Eloquent\Model;
6
+
7
+class TimeshareLog extends Model {
8
+
9
+    protected $table = "timeshare_change_logs";
10
+
11
+    protected $fillable = [
12
+        'user_id','timeshare_id', 'changed'
13
+    ];
14
+
15
+
16
+}

+ 16
- 0
app/Transfer.php Parādīt failu

@@ -0,0 +1,16 @@
1
+<?php
2
+
3
+namespace App;
4
+
5
+use Illuminate\Database\Eloquent\Model;
6
+
7
+class Transfer extends Model {
8
+
9
+    protected $table = "transfers";
10
+
11
+    protected $fillable = [
12
+        'name','IDNumber', 'week','PassportNumber','maritalStatus','marriedIn','otherMeans','tax','annualIncome','physicalAddress','postalAddress','telephone1','telephone2','phone1','phone2','fax1','fax2','email1','email2','resort','unit','module','price','year','confirmInfo','sign'
13
+    ];
14
+
15
+
16
+}

+ 30
- 0
app/User.php Parādīt failu

@@ -0,0 +1,30 @@
1
+<?php
2
+
3
+namespace App;
4
+
5
+use Illuminate\Notifications\Notifiable;
6
+use Illuminate\Contracts\Auth\MustVerifyEmail;
7
+use Illuminate\Foundation\Auth\User as Authenticatable;
8
+
9
+class User extends Authenticatable
10
+{
11
+    use Notifiable;
12
+
13
+    /**
14
+     * The attributes that are mass assignable.
15
+     *
16
+     * @var array
17
+     */
18
+    protected $fillable = [
19
+        'name', 'email', 'password',
20
+    ];
21
+
22
+    /**
23
+     * The attributes that should be hidden for arrays.
24
+     *
25
+     * @var array
26
+     */
27
+    protected $hidden = [
28
+        'password', 'remember_token',
29
+    ];
30
+}

+ 53
- 0
artisan Parādīt failu

@@ -0,0 +1,53 @@
1
+#!/usr/bin/env php
2
+<?php
3
+
4
+define('LARAVEL_START', microtime(true));
5
+
6
+/*
7
+|--------------------------------------------------------------------------
8
+| Register The Auto Loader
9
+|--------------------------------------------------------------------------
10
+|
11
+| Composer provides a convenient, automatically generated class loader
12
+| for our application. We just need to utilize it! We'll require it
13
+| into the script here so that we do not have to worry about the
14
+| loading of any our classes "manually". Feels great to relax.
15
+|
16
+*/
17
+
18
+require __DIR__.'/vendor/autoload.php';
19
+
20
+$app = require_once __DIR__.'/bootstrap/app.php';
21
+
22
+/*
23
+|--------------------------------------------------------------------------
24
+| Run The Artisan Application
25
+|--------------------------------------------------------------------------
26
+|
27
+| When we run the console application, the current CLI command will be
28
+| executed in this console and the response sent back to a terminal
29
+| or another output device for the developers. Here goes nothing!
30
+|
31
+*/
32
+
33
+$kernel = $app->make(Illuminate\Contracts\Console\Kernel::class);
34
+
35
+$status = $kernel->handle(
36
+    $input = new Symfony\Component\Console\Input\ArgvInput,
37
+    new Symfony\Component\Console\Output\ConsoleOutput
38
+);
39
+
40
+/*
41
+|--------------------------------------------------------------------------
42
+| Shutdown The Application
43
+|--------------------------------------------------------------------------
44
+|
45
+| Once Artisan has finished running, we will fire off the shutdown events
46
+| so that any final work may be done by the application before we shut
47
+| down the process. This is the last thing to happen to the request.
48
+|
49
+*/
50
+
51
+$kernel->terminate($input, $status);
52
+
53
+exit($status);

+ 55
- 0
bootstrap/app.php Parādīt failu

@@ -0,0 +1,55 @@
1
+<?php
2
+
3
+/*
4
+|--------------------------------------------------------------------------
5
+| Create The Application
6
+|--------------------------------------------------------------------------
7
+|
8
+| The first thing we will do is create a new Laravel application instance
9
+| which serves as the "glue" for all the components of Laravel, and is
10
+| the IoC container for the system binding all of the various parts.
11
+|
12
+*/
13
+
14
+$app = new Illuminate\Foundation\Application(
15
+    dirname(__DIR__)
16
+);
17
+
18
+/*
19
+|--------------------------------------------------------------------------
20
+| Bind Important Interfaces
21
+|--------------------------------------------------------------------------
22
+|
23
+| Next, we need to bind some important interfaces into the container so
24
+| we will be able to resolve them when needed. The kernels serve the
25
+| incoming requests to this application from both the web and CLI.
26
+|
27
+*/
28
+
29
+$app->singleton(
30
+    Illuminate\Contracts\Http\Kernel::class,
31
+    App\Http\Kernel::class
32
+);
33
+
34
+$app->singleton(
35
+    Illuminate\Contracts\Console\Kernel::class,
36
+    App\Console\Kernel::class
37
+);
38
+
39
+$app->singleton(
40
+    Illuminate\Contracts\Debug\ExceptionHandler::class,
41
+    App\Exceptions\Handler::class
42
+);
43
+
44
+/*
45
+|--------------------------------------------------------------------------
46
+| Return The Application
47
+|--------------------------------------------------------------------------
48
+|
49
+| This script returns the application instance. The instance is given to
50
+| the calling script so we can separate the building of the instances
51
+| from the actual running of the application and sending responses.
52
+|
53
+*/
54
+
55
+return $app;

+ 2
- 0
bootstrap/cache/.gitignore Parādīt failu

@@ -0,0 +1,2 @@
1
+*
2
+!.gitignore

+ 61
- 0
composer.json Parādīt failu

@@ -0,0 +1,61 @@
1
+{
2
+    "name": "laravel/laravel",
3
+    "description": "The Laravel Framework.",
4
+    "keywords": ["framework", "laravel"],
5
+    "license": "MIT",
6
+    "type": "project",
7
+    "require": {
8
+        "php": "^7.1.3",
9
+        "fideloper/proxy": "^4.0",
10
+        "laravel/framework": "5.7.*",
11
+        "laravel/tinker": "^1.0",
12
+        "maatwebsite/excel": "^3.0.1"
13
+    },
14
+    "require-dev": {
15
+        "beyondcode/laravel-dump-server": "^1.0",
16
+        "filp/whoops": "^2.0",
17
+        "fzaninotto/faker": "^1.4",
18
+        "mockery/mockery": "^1.0",
19
+        "nunomaduro/collision": "^2.0",
20
+        "phpunit/phpunit": "^7.0"
21
+    },
22
+    "autoload": {
23
+        "classmap": [
24
+            "database/seeds",
25
+            "database/factories"
26
+        ],
27
+        "psr-4": {
28
+            "App\\": "app/"
29
+        }
30
+    },
31
+    "autoload-dev": {
32
+        "psr-4": {
33
+            "Tests\\": "tests/"
34
+        }
35
+    },
36
+    "extra": {
37
+        "laravel": {
38
+            "dont-discover": [
39
+            ]
40
+        }
41
+    },
42
+    "scripts": {
43
+        "post-root-package-install": [
44
+            "@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
45
+        ],
46
+        "post-create-project-cmd": [
47
+            "@php artisan key:generate --ansi"
48
+        ],
49
+        "post-autoload-dump": [
50
+            "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
51
+            "@php artisan package:discover --ansi"
52
+        ]
53
+    },
54
+    "config": {
55
+        "preferred-install": "dist",
56
+        "sort-packages": true,
57
+        "optimize-autoloader": true
58
+    },
59
+    "minimum-stability": "dev",
60
+    "prefer-stable": true
61
+}

+ 5274
- 0
composer.lock
Failā izmaiņas netiks attēlotas, jo tās ir par lielu
Parādīt failu


+ 229
- 0
config/app.php Parādīt failu

@@ -0,0 +1,229 @@
1
+<?php
2
+
3
+return [
4
+
5
+    /*
6
+    |--------------------------------------------------------------------------
7
+    | Application Name
8
+    |--------------------------------------------------------------------------
9
+    |
10
+    | This value is the name of your application. This value is used when the
11
+    | framework needs to place the application's name in a notification or
12
+    | any other location as required by the application or its packages.
13
+    |
14
+    */
15
+
16
+    'name' => env('APP_NAME', 'Laravel'),
17
+
18
+    /*
19
+    |--------------------------------------------------------------------------
20
+    | Application Environment
21
+    |--------------------------------------------------------------------------
22
+    |
23
+    | This value determines the "environment" your application is currently
24
+    | running in. This may determine how you prefer to configure various
25
+    | services the application utilizes. Set this in your ".env" file.
26
+    |
27
+    */
28
+
29
+    'env' => env('APP_ENV', 'production'),
30
+
31
+    /*
32
+    |--------------------------------------------------------------------------
33
+    | Application Debug Mode
34
+    |--------------------------------------------------------------------------
35
+    |
36
+    | When your application is in debug mode, detailed error messages with
37
+    | stack traces will be shown on every error that occurs within your
38
+    | application. If disabled, a simple generic error page is shown.
39
+    |
40
+    */
41
+
42
+    'debug' => env('APP_DEBUG', false),
43
+
44
+    /*
45
+    |--------------------------------------------------------------------------
46
+    | Application URL
47
+    |--------------------------------------------------------------------------
48
+    |
49
+    | This URL is used by the console to properly generate URLs when using
50
+    | the Artisan command line tool. You should set this to the root of
51
+    | your application so that it is used when running Artisan tasks.
52
+    |
53
+    */
54
+
55
+    'url' => env('APP_URL', 'http://localhost'),
56
+
57
+    /*
58
+    |--------------------------------------------------------------------------
59
+    | Application Timezone
60
+    |--------------------------------------------------------------------------
61
+    |
62
+    | Here you may specify the default timezone for your application, which
63
+    | will be used by the PHP date and date-time functions. We have gone
64
+    | ahead and set this to a sensible default for you out of the box.
65
+    |
66
+    */
67
+
68
+    'timezone' => 'UTC',
69
+
70
+    /*
71
+    |--------------------------------------------------------------------------
72
+    | Application Locale Configuration
73
+    |--------------------------------------------------------------------------
74
+    |
75
+    | The application locale determines the default locale that will be used
76
+    | by the translation service provider. You are free to set this value
77
+    | to any of the locales which will be supported by the application.
78
+    |
79
+    */
80
+
81
+    'locale' => 'en',
82
+
83
+    /*
84
+    |--------------------------------------------------------------------------
85
+    | Application Fallback Locale
86
+    |--------------------------------------------------------------------------
87
+    |
88
+    | The fallback locale determines the locale to use when the current one
89
+    | is not available. You may change the value to correspond to any of
90
+    | the language folders that are provided through your application.
91
+    |
92
+    */
93
+
94
+    'fallback_locale' => 'en',
95
+
96
+    /*
97
+    |--------------------------------------------------------------------------
98
+    | Faker Locale
99
+    |--------------------------------------------------------------------------
100
+    |
101
+    | This locale will be used by the Faker PHP library when generating fake
102
+    | data for your database seeds. For example, this will be used to get
103
+    | localized telephone numbers, street address information and more.
104
+    |
105
+    */
106
+
107
+    'faker_locale' => 'en_US',
108
+
109
+    /*
110
+    |--------------------------------------------------------------------------
111
+    | Encryption Key
112
+    |--------------------------------------------------------------------------
113
+    |
114
+    | This key is used by the Illuminate encrypter service and should be set
115
+    | to a random, 32 character string, otherwise these encrypted strings
116
+    | will not be safe. Please do this before deploying an application!
117
+    |
118
+    */
119
+
120
+    'key' => env('APP_KEY'),
121
+
122
+    'cipher' => 'AES-256-CBC',
123
+
124
+    /*
125
+    |--------------------------------------------------------------------------
126
+    | Autoloaded Service Providers
127
+    |--------------------------------------------------------------------------
128
+    |
129
+    | The service providers listed here will be automatically loaded on the
130
+    | request to your application. Feel free to add your own services to
131
+    | this array to grant expanded functionality to your applications.
132
+    |
133
+    */
134
+
135
+    'providers' => [
136
+
137
+        /*
138
+         * Laravel Framework Service Providers...
139
+         */
140
+        Illuminate\Auth\AuthServiceProvider::class,
141
+        Illuminate\Broadcasting\BroadcastServiceProvider::class,
142
+        Illuminate\Bus\BusServiceProvider::class,
143
+        Illuminate\Cache\CacheServiceProvider::class,
144
+        Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class,
145
+        Illuminate\Cookie\CookieServiceProvider::class,
146
+        Illuminate\Database\DatabaseServiceProvider::class,
147
+        Illuminate\Encryption\EncryptionServiceProvider::class,
148
+        Illuminate\Filesystem\FilesystemServiceProvider::class,
149
+        Illuminate\Foundation\Providers\FoundationServiceProvider::class,
150
+        Illuminate\Hashing\HashServiceProvider::class,
151
+        Illuminate\Mail\MailServiceProvider::class,
152
+        Illuminate\Notifications\NotificationServiceProvider::class,
153
+        Illuminate\Pagination\PaginationServiceProvider::class,
154
+        Illuminate\Pipeline\PipelineServiceProvider::class,
155
+        Illuminate\Queue\QueueServiceProvider::class,
156
+        Illuminate\Redis\RedisServiceProvider::class,
157
+        Illuminate\Auth\Passwords\PasswordResetServiceProvider::class,
158
+        Illuminate\Session\SessionServiceProvider::class,
159
+        Illuminate\Translation\TranslationServiceProvider::class,
160
+        Illuminate\Validation\ValidationServiceProvider::class,
161
+        Illuminate\View\ViewServiceProvider::class,
162
+        Maatwebsite\Excel\ExcelServiceProvider::class,
163
+
164
+        /*
165
+         * Package Service Providers...
166
+         */
167
+
168
+        /*
169
+         * Application Service Providers...
170
+         */
171
+        App\Providers\AppServiceProvider::class,
172
+        App\Providers\AuthServiceProvider::class,
173
+        // App\Providers\BroadcastServiceProvider::class,
174
+        App\Providers\EventServiceProvider::class,
175
+        App\Providers\RouteServiceProvider::class,
176
+
177
+    ],
178
+
179
+    /*
180
+    |--------------------------------------------------------------------------
181
+    | Class Aliases
182
+    |--------------------------------------------------------------------------
183
+    |
184
+    | This array of class aliases will be registered when this application
185
+    | is started. However, feel free to register as many as you wish as
186
+    | the aliases are "lazy" loaded so they don't hinder performance.
187
+    |
188
+    */
189
+
190
+    'aliases' => [
191
+
192
+        'App' => Illuminate\Support\Facades\App::class,
193
+        'Artisan' => Illuminate\Support\Facades\Artisan::class,
194
+        'Auth' => Illuminate\Support\Facades\Auth::class,
195
+        'Blade' => Illuminate\Support\Facades\Blade::class,
196
+        'Broadcast' => Illuminate\Support\Facades\Broadcast::class,
197
+        'Bus' => Illuminate\Support\Facades\Bus::class,
198
+        'Cache' => Illuminate\Support\Facades\Cache::class,
199
+        'Config' => Illuminate\Support\Facades\Config::class,
200
+        'Cookie' => Illuminate\Support\Facades\Cookie::class,
201
+        'Crypt' => Illuminate\Support\Facades\Crypt::class,
202
+        'DB' => Illuminate\Support\Facades\DB::class,
203
+        'Eloquent' => Illuminate\Database\Eloquent\Model::class,
204
+        'Event' => Illuminate\Support\Facades\Event::class,
205
+        'File' => Illuminate\Support\Facades\File::class,
206
+        'Gate' => Illuminate\Support\Facades\Gate::class,
207
+        'Hash' => Illuminate\Support\Facades\Hash::class,
208
+        'Lang' => Illuminate\Support\Facades\Lang::class,
209
+        'Log' => Illuminate\Support\Facades\Log::class,
210
+        'Mail' => Illuminate\Support\Facades\Mail::class,
211
+        'Notification' => Illuminate\Support\Facades\Notification::class,
212
+        'Password' => Illuminate\Support\Facades\Password::class,
213
+        'Queue' => Illuminate\Support\Facades\Queue::class,
214
+        'Redirect' => Illuminate\Support\Facades\Redirect::class,
215
+        'Redis' => Illuminate\Support\Facades\Redis::class,
216
+        'Request' => Illuminate\Support\Facades\Request::class,
217
+        'Response' => Illuminate\Support\Facades\Response::class,
218
+        'Route' => Illuminate\Support\Facades\Route::class,
219
+        'Schema' => Illuminate\Support\Facades\Schema::class,
220
+        'Session' => Illuminate\Support\Facades\Session::class,
221
+        'Storage' => Illuminate\Support\Facades\Storage::class,
222
+        'URL' => Illuminate\Support\Facades\URL::class,
223
+        'Validator' => Illuminate\Support\Facades\Validator::class,
224
+        'View' => Illuminate\Support\Facades\View::class,
225
+        'Excel' => Maatwebsite\Excel\Facades\Excel::class,
226
+
227
+    ],
228
+
229
+];

+ 102
- 0
config/auth.php Parādīt failu

@@ -0,0 +1,102 @@
1
+<?php
2
+
3
+return [
4
+
5
+    /*
6
+    |--------------------------------------------------------------------------
7
+    | Authentication Defaults
8
+    |--------------------------------------------------------------------------
9
+    |
10
+    | This option controls the default authentication "guard" and password
11
+    | reset options for your application. You may change these defaults
12
+    | as required, but they're a perfect start for most applications.
13
+    |
14
+    */
15
+
16
+    'defaults' => [
17
+        'guard' => 'web',
18
+        'passwords' => 'users',
19
+    ],
20
+
21
+    /*
22
+    |--------------------------------------------------------------------------
23
+    | Authentication Guards
24
+    |--------------------------------------------------------------------------
25
+    |
26
+    | Next, you may define every authentication guard for your application.
27
+    | Of course, a great default configuration has been defined for you
28
+    | here which uses session storage and the Eloquent user provider.
29
+    |
30
+    | All authentication drivers have a user provider. This defines how the
31
+    | users are actually retrieved out of your database or other storage
32
+    | mechanisms used by this application to persist your user's data.
33
+    |
34
+    | Supported: "session", "token"
35
+    |
36
+    */
37
+
38
+    'guards' => [
39
+        'web' => [
40
+            'driver' => 'session',
41
+            'provider' => 'users',
42
+        ],
43
+
44
+        'api' => [
45
+            'driver' => 'token',
46
+            'provider' => 'users',
47
+        ],
48
+    ],
49
+
50
+    /*
51
+    |--------------------------------------------------------------------------
52
+    | User Providers
53
+    |--------------------------------------------------------------------------
54
+    |
55
+    | All authentication drivers have a user provider. This defines how the
56
+    | users are actually retrieved out of your database or other storage
57
+    | mechanisms used by this application to persist your user's data.
58
+    |
59
+    | If you have multiple user tables or models you may configure multiple
60
+    | sources which represent each model / table. These sources may then
61
+    | be assigned to any extra authentication guards you have defined.
62
+    |
63
+    | Supported: "database", "eloquent"
64
+    |
65
+    */
66
+
67
+    'providers' => [
68
+        'users' => [
69
+            'driver' => 'eloquent',
70
+            'model' => App\User::class,
71
+        ],
72
+
73
+        // 'users' => [
74
+        //     'driver' => 'database',
75
+        //     'table' => 'users',
76
+        // ],
77
+    ],
78
+
79
+    /*
80
+    |--------------------------------------------------------------------------
81
+    | Resetting Passwords
82
+    |--------------------------------------------------------------------------
83
+    |
84
+    | You may specify multiple password reset configurations if you have more
85
+    | than one user table or model in the application and you want to have
86
+    | separate password reset settings based on the specific user types.
87
+    |
88
+    | The expire time is the number of minutes that the reset token should be
89
+    | considered valid. This security feature keeps tokens short-lived so
90
+    | they have less time to be guessed. You may change this as needed.
91
+    |
92
+    */
93
+
94
+    'passwords' => [
95
+        'users' => [
96
+            'provider' => 'users',
97
+            'table' => 'password_resets',
98
+            'expire' => 60,
99
+        ],
100
+    ],
101
+
102
+];

+ 59
- 0
config/broadcasting.php Parādīt failu

@@ -0,0 +1,59 @@
1
+<?php
2
+
3
+return [
4
+
5
+    /*
6
+    |--------------------------------------------------------------------------
7
+    | Default Broadcaster
8
+    |--------------------------------------------------------------------------
9
+    |
10
+    | This option controls the default broadcaster that will be used by the
11
+    | framework when an event needs to be broadcast. You may set this to
12
+    | any of the connections defined in the "connections" array below.
13
+    |
14
+    | Supported: "pusher", "redis", "log", "null"
15
+    |
16
+    */
17
+
18
+    'default' => env('BROADCAST_DRIVER', 'null'),
19
+
20
+    /*
21
+    |--------------------------------------------------------------------------
22
+    | Broadcast Connections
23
+    |--------------------------------------------------------------------------
24
+    |
25
+    | Here you may define all of the broadcast connections that will be used
26
+    | to broadcast events to other systems or over websockets. Samples of
27
+    | each available type of connection are provided inside this array.
28
+    |
29
+    */
30
+
31
+    'connections' => [
32
+
33
+        'pusher' => [
34
+            'driver' => 'pusher',
35
+            'key' => env('PUSHER_APP_KEY'),
36
+            'secret' => env('PUSHER_APP_SECRET'),
37
+            'app_id' => env('PUSHER_APP_ID'),
38
+            'options' => [
39
+                'cluster' => env('PUSHER_APP_CLUSTER'),
40
+                'encrypted' => true,
41
+            ],
42
+        ],
43
+
44
+        'redis' => [
45
+            'driver' => 'redis',
46
+            'connection' => 'default',
47
+        ],
48
+
49
+        'log' => [
50
+            'driver' => 'log',
51
+        ],
52
+
53
+        'null' => [
54
+            'driver' => 'null',
55
+        ],
56
+
57
+    ],
58
+
59
+];

+ 93
- 0
config/cache.php Parādīt failu

@@ -0,0 +1,93 @@
1
+<?php
2
+
3
+use Illuminate\Support\Str;
4
+
5
+return [
6
+
7
+    /*
8
+    |--------------------------------------------------------------------------
9
+    | Default Cache Store
10
+    |--------------------------------------------------------------------------
11
+    |
12
+    | This option controls the default cache connection that gets used while
13
+    | using this caching library. This connection is used when another is
14
+    | not explicitly specified when executing a given caching function.
15
+    |
16
+    | Supported: "apc", "array", "database", "file", "memcached", "redis"
17
+    |
18
+    */
19
+
20
+    'default' => env('CACHE_DRIVER', 'file'),
21
+
22
+    /*
23
+    |--------------------------------------------------------------------------
24
+    | Cache Stores
25
+    |--------------------------------------------------------------------------
26
+    |
27
+    | Here you may define all of the cache "stores" for your application as
28
+    | well as their drivers. You may even define multiple stores for the
29
+    | same cache driver to group types of items stored in your caches.
30
+    |
31
+    */
32
+
33
+    'stores' => [
34
+
35
+        'apc' => [
36
+            'driver' => 'apc',
37
+        ],
38
+
39
+        'array' => [
40
+            'driver' => 'array',
41
+        ],
42
+
43
+        'database' => [
44
+            'driver' => 'database',
45
+            'table' => 'cache',
46
+            'connection' => null,
47
+        ],
48
+
49
+        'file' => [
50
+            'driver' => 'file',
51
+            'path' => storage_path('framework/cache/data'),
52
+        ],
53
+
54
+        'memcached' => [
55
+            'driver' => 'memcached',
56
+            'persistent_id' => env('MEMCACHED_PERSISTENT_ID'),
57
+            'sasl' => [
58
+                env('MEMCACHED_USERNAME'),
59
+                env('MEMCACHED_PASSWORD'),
60
+            ],
61
+            'options' => [
62
+                // Memcached::OPT_CONNECT_TIMEOUT  => 2000,
63
+            ],
64
+            'servers' => [
65
+                [
66
+                    'host' => env('MEMCACHED_HOST', '127.0.0.1'),
67
+                    'port' => env('MEMCACHED_PORT', 11211),
68
+                    'weight' => 100,
69
+                ],
70
+            ],
71
+        ],
72
+
73
+        'redis' => [
74
+            'driver' => 'redis',
75
+            'connection' => 'cache',
76
+        ],
77
+
78
+    ],
79
+
80
+    /*
81
+    |--------------------------------------------------------------------------
82
+    | Cache Key Prefix
83
+    |--------------------------------------------------------------------------
84
+    |
85
+    | When utilizing a RAM based store such as APC or Memcached, there might
86
+    | be other applications utilizing the same cache. So, we'll specify a
87
+    | value to get prefixed to all our keys so we can avoid collisions.
88
+    |
89
+    */
90
+
91
+    'prefix' => env('CACHE_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_cache'),
92
+
93
+];

+ 131
- 0
config/database.php Parādīt failu

@@ -0,0 +1,131 @@
1
+<?php
2
+
3
+return [
4
+
5
+    /*
6
+    |--------------------------------------------------------------------------
7
+    | Default Database Connection Name
8
+    |--------------------------------------------------------------------------
9
+    |
10
+    | Here you may specify which of the database connections below you wish
11
+    | to use as your default connection for all database work. Of course
12
+    | you may use many connections at once using the Database library.
13
+    |
14
+    */
15
+
16
+    'default' => env('DB_CONNECTION', 'mysql'),
17
+
18
+    /*
19
+    |--------------------------------------------------------------------------
20
+    | Database Connections
21
+    |--------------------------------------------------------------------------
22
+    |
23
+    | Here are each of the database connections setup for your application.
24
+    | Of course, examples of configuring each database platform that is
25
+    | supported by Laravel is shown below to make development simple.
26
+    |
27
+    |
28
+    | All database work in Laravel is done through the PHP PDO facilities
29
+    | so make sure you have the driver for your particular database of
30
+    | choice installed on your machine before you begin development.
31
+    |
32
+    */
33
+
34
+    'connections' => [
35
+
36
+        'sqlite' => [
37
+            'driver' => 'sqlite',
38
+            'database' => env('DB_DATABASE', database_path('database.sqlite')),
39
+            'prefix' => '',
40
+            'foreign_key_constraints' => env('DB_FOREIGN_KEYS', true),
41
+        ],
42
+
43
+        'mysql' => [
44
+            'driver' => 'mysql',
45
+            'host' => env('DB_HOST', '127.0.0.1'),
46
+            'port' => env('DB_PORT', '3306'),
47
+            'database' => env('DB_DATABASE', 'forge'),
48
+            'username' => env('DB_USERNAME', 'forge'),
49
+            'password' => env('DB_PASSWORD', ''),
50
+            'unix_socket' => env('DB_SOCKET', ''),
51
+            'charset' => 'utf8mb4',
52
+            'collation' => 'utf8mb4_unicode_ci',
53
+            'prefix' => '',
54
+            'prefix_indexes' => true,
55
+            'strict' => false,
56
+            'engine' => null,
57
+        ],
58
+
59
+        'pgsql' => [
60
+            'driver' => 'pgsql',
61
+            'host' => env('DB_HOST', '127.0.0.1'),
62
+            'port' => env('DB_PORT', '5432'),
63
+            'database' => env('DB_DATABASE', 'forge'),
64
+            'username' => env('DB_USERNAME', 'forge'),
65
+            'password' => env('DB_PASSWORD', ''),
66
+            'charset' => 'utf8',
67
+            'prefix' => '',
68
+            'prefix_indexes' => true,
69
+            'schema' => 'public',
70
+            'sslmode' => 'prefer',
71
+        ],
72
+
73
+        'sqlsrv' => [
74
+            'driver' => 'sqlsrv',
75
+            'host' => env('DB_HOST', 'localhost'),
76
+            'port' => env('DB_PORT', '1433'),
77
+            'database' => env('DB_DATABASE', 'forge'),
78
+            'username' => env('DB_USERNAME', 'forge'),
79
+            'password' => env('DB_PASSWORD', ''),
80
+            'charset' => 'utf8',
81
+            'prefix' => '',
82
+            'prefix_indexes' => true,
83
+        ],
84
+
85
+    ],
86
+
87
+    /*
88
+    |--------------------------------------------------------------------------
89
+    | Migration Repository Table
90
+    |--------------------------------------------------------------------------
91
+    |
92
+    | This table keeps track of all the migrations that have already run for
93
+    | your application. Using this information, we can determine which of
94
+    | the migrations on disk haven't actually been run in the database.
95
+    |
96
+    */
97
+
98
+    'migrations' => 'migrations',
99
+
100
+    /*
101
+    |--------------------------------------------------------------------------
102
+    | Redis Databases
103
+    |--------------------------------------------------------------------------
104
+    |
105
+    | Redis is an open source, fast, and advanced key-value store that also
106
+    | provides a richer body of commands than a typical key-value system
107
+    | such as APC or Memcached. Laravel makes it easy to dig right in.
108
+    |
109
+    */
110
+
111
+    'redis' => [
112
+
113
+        'client' => 'predis',
114
+
115
+        'default' => [
116
+            'host' => env('REDIS_HOST', '127.0.0.1'),
117
+            'password' => env('REDIS_PASSWORD', null),
118
+            'port' => env('REDIS_PORT', 6379),
119
+            'database' => env('REDIS_DB', 0),
120
+        ],
121
+
122
+        'cache' => [
123
+            'host' => env('REDIS_HOST', '127.0.0.1'),
124
+            'password' => env('REDIS_PASSWORD', null),
125
+            'port' => env('REDIS_PORT', 6379),
126
+            'database' => env('REDIS_CACHE_DB', 1),
127
+        ],
128
+
129
+    ],
130
+
131
+];

+ 69
- 0
config/filesystems.php Parādīt failu

@@ -0,0 +1,69 @@
1
+<?php
2
+
3
+return [
4
+
5
+    /*
6
+    |--------------------------------------------------------------------------
7
+    | Default Filesystem Disk
8
+    |--------------------------------------------------------------------------
9
+    |
10
+    | Here you may specify the default filesystem disk that should be used
11
+    | by the framework. The "local" disk, as well as a variety of cloud
12
+    | based disks are available to your application. Just store away!
13
+    |
14
+    */
15
+
16
+    'default' => env('FILESYSTEM_DRIVER', 'local'),
17
+
18
+    /*
19
+    |--------------------------------------------------------------------------
20
+    | Default Cloud Filesystem Disk
21
+    |--------------------------------------------------------------------------
22
+    |
23
+    | Many applications store files both locally and in the cloud. For this
24
+    | reason, you may specify a default "cloud" driver here. This driver
25
+    | will be bound as the Cloud disk implementation in the container.
26
+    |
27
+    */
28
+
29
+    'cloud' => env('FILESYSTEM_CLOUD', 's3'),
30
+
31
+    /*
32
+    |--------------------------------------------------------------------------
33
+    | Filesystem Disks
34
+    |--------------------------------------------------------------------------
35
+    |
36
+    | Here you may configure as many filesystem "disks" as you wish, and you
37
+    | may even configure multiple disks of the same driver. Defaults have
38
+    | been setup for each driver as an example of the required options.
39
+    |
40
+    | Supported Drivers: "local", "ftp", "sftp", "s3", "rackspace"
41
+    |
42
+    */
43
+
44
+    'disks' => [
45
+
46
+        'local' => [
47
+            'driver' => 'local',
48
+            'root' => storage_path('app'),
49
+        ],
50
+
51
+        'public' => [
52
+            'driver' => 'local',
53
+            'root' => storage_path('app/public'),
54
+            'url' => env('APP_URL').'/storage',
55
+            'visibility' => 'public',
56
+        ],
57
+
58
+        's3' => [
59
+            'driver' => 's3',
60
+            'key' => env('AWS_ACCESS_KEY_ID'),
61
+            'secret' => env('AWS_SECRET_ACCESS_KEY'),
62
+            'region' => env('AWS_DEFAULT_REGION'),
63
+            'bucket' => env('AWS_BUCKET'),
64
+            'url' => env('AWS_URL'),
65
+        ],
66
+
67
+    ],
68
+
69
+];

+ 52
- 0
config/hashing.php Parādīt failu

@@ -0,0 +1,52 @@
1
+<?php
2
+
3
+return [
4
+
5
+    /*
6
+    |--------------------------------------------------------------------------
7
+    | Default Hash Driver
8
+    |--------------------------------------------------------------------------
9
+    |
10
+    | This option controls the default hash driver that will be used to hash
11
+    | passwords for your application. By default, the bcrypt algorithm is
12
+    | used; however, you remain free to modify this option if you wish.
13
+    |
14
+    | Supported: "bcrypt", "argon", "argon2id"
15
+    |
16
+    */
17
+
18
+    'driver' => 'bcrypt',
19
+
20
+    /*
21
+    |--------------------------------------------------------------------------
22
+    | Bcrypt Options
23
+    |--------------------------------------------------------------------------
24
+    |
25
+    | Here you may specify the configuration options that should be used when
26
+    | passwords are hashed using the Bcrypt algorithm. This will allow you
27
+    | to control the amount of time it takes to hash the given password.
28
+    |
29
+    */
30
+
31
+    'bcrypt' => [
32
+        'rounds' => env('BCRYPT_ROUNDS', 10),
33
+    ],
34
+
35
+    /*
36
+    |--------------------------------------------------------------------------
37
+    | Argon Options
38
+    |--------------------------------------------------------------------------
39
+    |
40
+    | Here you may specify the configuration options that should be used when
41
+    | passwords are hashed using the Argon algorithm. These will allow you
42
+    | to control the amount of time it takes to hash the given password.
43
+    |
44
+    */
45
+
46
+    'argon' => [
47
+        'memory' => 1024,
48
+        'threads' => 2,
49
+        'time' => 2,
50
+    ],
51
+
52
+];

+ 92
- 0
config/logging.php Parādīt failu

@@ -0,0 +1,92 @@
1
+<?php
2
+
3
+use Monolog\Handler\StreamHandler;
4
+use Monolog\Handler\SyslogUdpHandler;
5
+
6
+return [
7
+
8
+    /*
9
+    |--------------------------------------------------------------------------
10
+    | Default Log Channel
11
+    |--------------------------------------------------------------------------
12
+    |
13
+    | This option defines the default log channel that gets used when writing
14
+    | messages to the logs. The name specified in this option should match
15
+    | one of the channels defined in the "channels" configuration array.
16
+    |
17
+    */
18
+
19
+    'default' => env('LOG_CHANNEL', 'stack'),
20
+
21
+    /*
22
+    |--------------------------------------------------------------------------
23
+    | Log Channels
24
+    |--------------------------------------------------------------------------
25
+    |
26
+    | Here you may configure the log channels for your application. Out of
27
+    | the box, Laravel uses the Monolog PHP logging library. This gives
28
+    | you a variety of powerful log handlers / formatters to utilize.
29
+    |
30
+    | Available Drivers: "single", "daily", "slack", "syslog",
31
+    |                    "errorlog", "monolog",
32
+    |                    "custom", "stack"
33
+    |
34
+    */
35
+
36
+    'channels' => [
37
+        'stack' => [
38
+            'driver' => 'stack',
39
+            'channels' => ['daily'],
40
+        ],
41
+
42
+        'single' => [
43
+            'driver' => 'single',
44
+            'path' => storage_path('logs/laravel.log'),
45
+            'level' => 'debug',
46
+        ],
47
+
48
+        'daily' => [
49
+            'driver' => 'daily',
50
+            'path' => storage_path('logs/laravel.log'),
51
+            'level' => 'debug',
52
+            'days' => 14,
53
+        ],
54
+
55
+        'slack' => [
56
+            'driver' => 'slack',
57
+            'url' => env('LOG_SLACK_WEBHOOK_URL'),
58
+            'username' => 'Laravel Log',
59
+            'emoji' => ':boom:',
60
+            'level' => 'critical',
61
+        ],
62
+
63
+        'papertrail' => [
64
+            'driver'  => 'monolog',
65
+            'level' => 'debug',
66
+            'handler' => SyslogUdpHandler::class,
67
+            'handler_with' => [
68
+                'host' => env('PAPERTRAIL_URL'),
69
+                'port' => env('PAPERTRAIL_PORT'),
70
+            ],
71
+        ],
72
+
73
+        'stderr' => [
74
+            'driver' => 'monolog',
75
+            'handler' => StreamHandler::class,
76
+            'with' => [
77
+                'stream' => 'php://stderr',
78
+            ],
79
+        ],
80
+
81
+        'syslog' => [
82
+            'driver' => 'syslog',
83
+            'level' => 'debug',
84
+        ],
85
+
86
+        'errorlog' => [
87
+            'driver' => 'errorlog',
88
+            'level' => 'debug',
89
+        ],
90
+    ],
91
+
92
+];

+ 123
- 0
config/mail.php Parādīt failu

@@ -0,0 +1,123 @@
1
+<?php
2
+
3
+return [
4
+
5
+    /*
6
+    |--------------------------------------------------------------------------
7
+    | Mail Driver
8
+    |--------------------------------------------------------------------------
9
+    |
10
+    | Laravel supports both SMTP and PHP's "mail" function as drivers for the
11
+    | sending of e-mail. You may specify which one you're using throughout
12
+    | your application here. By default, Laravel is setup for SMTP mail.
13
+    |
14
+    | Supported: "smtp", "sendmail", "mailgun", "mandrill", "ses",
15
+    |            "sparkpost", "log", "array"
16
+    |
17
+    */
18
+
19
+    'driver' => env('MAIL_DRIVER', 'smtp'),
20
+
21
+    /*
22
+    |--------------------------------------------------------------------------
23
+    | SMTP Host Address
24
+    |--------------------------------------------------------------------------
25
+    |
26
+    | Here you may provide the host address of the SMTP server used by your
27
+    | applications. A default option is provided that is compatible with
28
+    | the Mailgun mail service which will provide reliable deliveries.
29
+    |
30
+    */
31
+
32
+    'host' => env('MAIL_HOST', 'smtp.mailgun.org'),
33
+
34
+    /*
35
+    |--------------------------------------------------------------------------
36
+    | SMTP Host Port
37
+    |--------------------------------------------------------------------------
38
+    |
39
+    | This is the SMTP port used by your application to deliver e-mails to
40
+    | users of the application. Like the host we have set this value to
41
+    | stay compatible with the Mailgun e-mail application by default.
42
+    |
43
+    */
44
+
45
+    'port' => env('MAIL_PORT', 587),
46
+
47
+    /*
48
+    |--------------------------------------------------------------------------
49
+    | Global "From" Address
50
+    |--------------------------------------------------------------------------
51
+    |
52
+    | You may wish for all e-mails sent by your application to be sent from
53
+    | the same address. Here, you may specify a name and address that is
54
+    | used globally for all e-mails that are sent by your application.
55
+    |
56
+    */
57
+
58
+    'from' => [
59
+        'address' => env('MAIL_FROM_ADDRESS', 'info@univateproperties.co.za'),
60
+        'name' => env('MAIL_FROM_NAME', 'Uni-vate Properties'),
61
+    ],
62
+
63
+    /*
64
+    |--------------------------------------------------------------------------
65
+    | E-Mail Encryption Protocol
66
+    |--------------------------------------------------------------------------
67
+    |
68
+    | Here you may specify the encryption protocol that should be used when
69
+    | the application send e-mail messages. A sensible default using the
70
+    | transport layer security protocol should provide great security.
71
+    |
72
+    */
73
+
74
+    'encryption' => env('MAIL_ENCRYPTION', 'tls'),
75
+
76
+    /*
77
+    |--------------------------------------------------------------------------
78
+    | SMTP Server Username
79
+    |--------------------------------------------------------------------------
80
+    |
81
+    | If your SMTP server requires a username for authentication, you should
82
+    | set it here. This will get used to authenticate with your server on
83
+    | connection. You may also set the "password" value below this one.
84
+    |
85
+    */
86
+
87
+    'username' => env('MAIL_USERNAME'),
88
+
89
+    'password' => env('MAIL_PASSWORD'),
90
+
91
+    /*
92
+    |--------------------------------------------------------------------------
93
+    | Sendmail System Path
94
+    |--------------------------------------------------------------------------
95
+    |
96
+    | When using the "sendmail" driver to send e-mails, we will need to know
97
+    | the path to where Sendmail lives on this server. A default path has
98
+    | been provided here, which will work well on most of your systems.
99
+    |
100
+    */
101
+
102
+    'sendmail' => '/usr/sbin/sendmail -bs',
103
+
104
+    /*
105
+    |--------------------------------------------------------------------------
106
+    | Markdown Mail Settings
107
+    |--------------------------------------------------------------------------
108
+    |
109
+    | If you are using Markdown based email rendering, you may configure your
110
+    | theme and component paths here, allowing you to customize the design
111
+    | of the emails. Or, you may simply stick with the Laravel defaults!
112
+    |
113
+    */
114
+
115
+    'markdown' => [
116
+        'theme' => 'default',
117
+
118
+        'paths' => [
119
+            resource_path('views/vendor/mail'),
120
+        ],
121
+    ],
122
+
123
+];

+ 86
- 0
config/queue.php Parādīt failu

@@ -0,0 +1,86 @@
1
+<?php
2
+
3
+return [
4
+
5
+    /*
6
+    |--------------------------------------------------------------------------
7
+    | Default Queue Connection Name
8
+    |--------------------------------------------------------------------------
9
+    |
10
+    | Laravel's queue API supports an assortment of back-ends via a single
11
+    | API, giving you convenient access to each back-end using the same
12
+    | syntax for every one. Here you may define a default connection.
13
+    |
14
+    */
15
+
16
+    'default' => env('QUEUE_CONNECTION', 'sync'),
17
+
18
+    /*
19
+    |--------------------------------------------------------------------------
20
+    | Queue Connections
21
+    |--------------------------------------------------------------------------
22
+    |
23
+    | Here you may configure the connection information for each server that
24
+    | is used by your application. A default configuration has been added
25
+    | for each back-end shipped with Laravel. You are free to add more.
26
+    |
27
+    | Drivers: "sync", "database", "beanstalkd", "sqs", "redis", "null"
28
+    |
29
+    */
30
+
31
+    'connections' => [
32
+
33
+        'sync' => [
34
+            'driver' => 'sync',
35
+        ],
36
+
37
+        'database' => [
38
+            'driver' => 'database',
39
+            'table' => 'jobs',
40
+            'queue' => 'default',
41
+            'retry_after' => 90,
42
+        ],
43
+
44
+        'beanstalkd' => [
45
+            'driver' => 'beanstalkd',
46
+            'host' => 'localhost',
47
+            'queue' => 'default',
48
+            'retry_after' => 90,
49
+        ],
50
+
51
+        'sqs' => [
52
+            'driver' => 'sqs',
53
+            'key' => env('SQS_KEY', 'your-public-key'),
54
+            'secret' => env('SQS_SECRET', 'your-secret-key'),
55
+            'prefix' => env('SQS_PREFIX', 'https://sqs.us-east-1.amazonaws.com/your-account-id'),
56
+            'queue' => env('SQS_QUEUE', 'your-queue-name'),
57
+            'region' => env('SQS_REGION', 'us-east-1'),
58
+        ],
59
+
60
+        'redis' => [
61
+            'driver' => 'redis',
62
+            'connection' => 'default',
63
+            'queue' => env('REDIS_QUEUE', 'default'),
64
+            'retry_after' => 90,
65
+            'block_for' => null,
66
+        ],
67
+
68
+    ],
69
+
70
+    /*
71
+    |--------------------------------------------------------------------------
72
+    | Failed Queue Jobs
73
+    |--------------------------------------------------------------------------
74
+    |
75
+    | These options configure the behavior of failed queue job logging so you
76
+    | can control which database and table are used to store the jobs that
77
+    | have failed. You may change them to any database / table you wish.
78
+    |
79
+    */
80
+
81
+    'failed' => [
82
+        'database' => env('DB_CONNECTION', 'mysql'),
83
+        'table' => 'failed_jobs',
84
+    ],
85
+
86
+];

+ 43
- 0
config/services.php Parādīt failu

@@ -0,0 +1,43 @@
1
+<?php
2
+
3
+return [
4
+
5
+    /*
6
+    |--------------------------------------------------------------------------
7
+    | Third Party Services
8
+    |--------------------------------------------------------------------------
9
+    |
10
+    | This file is for storing the credentials for third party services such
11
+    | as Stripe, Mailgun, SparkPost and others. This file provides a sane
12
+    | default location for this type of information, allowing packages
13
+    | to have a conventional place to find your various credentials.
14
+    |
15
+    */
16
+
17
+    'mailgun' => [
18
+        'domain' => env('MAILGUN_DOMAIN'),
19
+        'secret' => env('MAILGUN_SECRET'),
20
+        'endpoint' => env('MAILGUN_ENDPOINT', 'api.mailgun.net'),
21
+    ],
22
+
23
+    'ses' => [
24
+        'key' => env('SES_KEY'),
25
+        'secret' => env('SES_SECRET'),
26
+        'region' => env('SES_REGION', 'us-east-1'),
27
+    ],
28
+
29
+    'sparkpost' => [
30
+        'secret' => env('SPARKPOST_SECRET'),
31
+    ],
32
+
33
+    'stripe' => [
34
+        'model' => App\User::class,
35
+        'key' => env('STRIPE_KEY'),
36
+        'secret' => env('STRIPE_SECRET'),
37
+        'webhook' => [
38
+            'secret' => env('STRIPE_WEBHOOK_SECRET'),
39
+            'tolerance' => env('STRIPE_WEBHOOK_TOLERANCE', 300),
40
+        ],
41
+    ],
42
+
43
+];

+ 199
- 0
config/session.php Parādīt failu

@@ -0,0 +1,199 @@
1
+<?php
2
+
3
+use Illuminate\Support\Str;
4
+
5
+return [
6
+
7
+    /*
8
+    |--------------------------------------------------------------------------
9
+    | Default Session Driver
10
+    |--------------------------------------------------------------------------
11
+    |
12
+    | This option controls the default session "driver" that will be used on
13
+    | requests. By default, we will use the lightweight native driver but
14
+    | you may specify any of the other wonderful drivers provided here.
15
+    |
16
+    | Supported: "file", "cookie", "database", "apc",
17
+    |            "memcached", "redis", "array"
18
+    |
19
+    */
20
+
21
+    'driver' => env('SESSION_DRIVER', 'file'),
22
+
23
+    /*
24
+    |--------------------------------------------------------------------------
25
+    | Session Lifetime
26
+    |--------------------------------------------------------------------------
27
+    |
28
+    | Here you may specify the number of minutes that you wish the session
29
+    | to be allowed to remain idle before it expires. If you want them
30
+    | to immediately expire on the browser closing, set that option.
31
+    |
32
+    */
33
+
34
+    'lifetime' => env('SESSION_LIFETIME', 120),
35
+
36
+    'expire_on_close' => false,
37
+
38
+    /*
39
+    |--------------------------------------------------------------------------
40
+    | Session Encryption
41
+    |--------------------------------------------------------------------------
42
+    |
43
+    | This option allows you to easily specify that all of your session data
44
+    | should be encrypted before it is stored. All encryption will be run
45
+    | automatically by Laravel and you can use the Session like normal.
46
+    |
47
+    */
48
+
49
+    'encrypt' => false,
50
+
51
+    /*
52
+    |--------------------------------------------------------------------------
53
+    | Session File Location
54
+    |--------------------------------------------------------------------------
55
+    |
56
+    | When using the native session driver, we need a location where session
57
+    | files may be stored. A default has been set for you but a different
58
+    | location may be specified. This is only needed for file sessions.
59
+    |
60
+    */
61
+
62
+    'files' => storage_path('framework/sessions'),
63
+
64
+    /*
65
+    |--------------------------------------------------------------------------
66
+    | Session Database Connection
67
+    |--------------------------------------------------------------------------
68
+    |
69
+    | When using the "database" or "redis" session drivers, you may specify a
70
+    | connection that should be used to manage these sessions. This should
71
+    | correspond to a connection in your database configuration options.
72
+    |
73
+    */
74
+
75
+    'connection' => env('SESSION_CONNECTION', null),
76
+
77
+    /*
78
+    |--------------------------------------------------------------------------
79
+    | Session Database Table
80
+    |--------------------------------------------------------------------------
81
+    |
82
+    | When using the "database" session driver, you may specify the table we
83
+    | should use to manage the sessions. Of course, a sensible default is
84
+    | provided for you; however, you are free to change this as needed.
85
+    |
86
+    */
87
+
88
+    'table' => 'sessions',
89
+
90
+    /*
91
+    |--------------------------------------------------------------------------
92
+    | Session Cache Store
93
+    |--------------------------------------------------------------------------
94
+    |
95
+    | When using the "apc" or "memcached" session drivers, you may specify a
96
+    | cache store that should be used for these sessions. This value must
97
+    | correspond with one of the application's configured cache stores.
98
+    |
99
+    */
100
+
101
+    'store' => env('SESSION_STORE', null),
102
+
103
+    /*
104
+    |--------------------------------------------------------------------------
105
+    | Session Sweeping Lottery
106
+    |--------------------------------------------------------------------------
107
+    |
108
+    | Some session drivers must manually sweep their storage location to get
109
+    | rid of old sessions from storage. Here are the chances that it will
110
+    | happen on a given request. By default, the odds are 2 out of 100.
111
+    |
112
+    */
113
+
114
+    'lottery' => [2, 100],
115
+
116
+    /*
117
+    |--------------------------------------------------------------------------
118
+    | Session Cookie Name
119
+    |--------------------------------------------------------------------------
120
+    |
121
+    | Here you may change the name of the cookie used to identify a session
122
+    | instance by ID. The name specified here will get used every time a
123
+    | new session cookie is created by the framework for every driver.
124
+    |
125
+    */
126
+
127
+    'cookie' => env(
128
+        'SESSION_COOKIE',
129
+        Str::slug(env('APP_NAME', 'laravel'), '_').'_session'
130
+    ),
131
+
132
+    /*
133
+    |--------------------------------------------------------------------------
134
+    | Session Cookie Path
135
+    |--------------------------------------------------------------------------
136
+    |
137
+    | The session cookie path determines the path for which the cookie will
138
+    | be regarded as available. Typically, this will be the root path of
139
+    | your application but you are free to change this when necessary.
140
+    |
141
+    */
142
+
143
+    'path' => '/',
144
+
145
+    /*
146
+    |--------------------------------------------------------------------------
147
+    | Session Cookie Domain
148
+    |--------------------------------------------------------------------------
149
+    |
150
+    | Here you may change the domain of the cookie used to identify a session
151
+    | in your application. This will determine which domains the cookie is
152
+    | available to in your application. A sensible default has been set.
153
+    |
154
+    */
155
+
156
+    'domain' => env('SESSION_DOMAIN', null),
157
+
158
+    /*
159
+    |--------------------------------------------------------------------------
160
+    | HTTPS Only Cookies
161
+    |--------------------------------------------------------------------------
162
+    |
163
+    | By setting this option to true, session cookies will only be sent back
164
+    | to the server if the browser has a HTTPS connection. This will keep
165
+    | the cookie from being sent to you if it can not be done securely.
166
+    |
167
+    */
168
+
169
+    'secure' => env('SESSION_SECURE_COOKIE', false),
170
+
171
+    /*
172
+    |--------------------------------------------------------------------------
173
+    | HTTP Access Only
174
+    |--------------------------------------------------------------------------
175
+    |
176
+    | Setting this value to true will prevent JavaScript from accessing the
177
+    | value of the cookie and the cookie will only be accessible through
178
+    | the HTTP protocol. You are free to modify this option if needed.
179
+    |
180
+    */
181
+
182
+    'http_only' => true,
183
+
184
+    /*
185
+    |--------------------------------------------------------------------------
186
+    | Same-Site Cookies
187
+    |--------------------------------------------------------------------------
188
+    |
189
+    | This option determines how your cookies behave when cross-site requests
190
+    | take place, and can be used to mitigate CSRF attacks. By default, we
191
+    | do not enable this as other CSRF protection services are in place.
192
+    |
193
+    | Supported: "lax", "strict"
194
+    |
195
+    */
196
+
197
+    'same_site' => null,
198
+
199
+];

+ 33
- 0
config/view.php Parādīt failu

@@ -0,0 +1,33 @@
1
+<?php
2
+
3
+return [
4
+
5
+    /*
6
+    |--------------------------------------------------------------------------
7
+    | View Storage Paths
8
+    |--------------------------------------------------------------------------
9
+    |
10
+    | Most templating systems load templates from disk. Here you may specify
11
+    | an array of paths that should be checked for your views. Of course
12
+    | the usual Laravel view path has already been registered for you.
13
+    |
14
+    */
15
+
16
+    'paths' => [
17
+        resource_path('views'),
18
+    ],
19
+
20
+    /*
21
+    |--------------------------------------------------------------------------
22
+    | Compiled View Path
23
+    |--------------------------------------------------------------------------
24
+    |
25
+    | This option determines where all the compiled Blade templates will be
26
+    | stored for your application. Typically, this is within the storage
27
+    | directory. However, as usual, you are free to change this value.
28
+    |
29
+    */
30
+
31
+    'compiled' => realpath(storage_path('framework/views')),
32
+
33
+];

+ 6
- 0
css/app.css
Failā izmaiņas netiks attēlotas, jo tās ir par lielu
Parādīt failu


+ 7
- 0
css/bootstrap.min.css
Failā izmaiņas netiks attēlotas, jo tās ir par lielu
Parādīt failu


+ 233
- 0
css/style.css Parādīt failu

@@ -0,0 +1,233 @@
1
+body, html {
2
+    font-size: 15px;
3
+    color: #666;
4
+    font-family: 'Roboto', sans-serif;
5
+    height: 100%;
6
+    margin: 0;
7
+}
8
+
9
+h2 {
10
+    font-size: 1.25rem;
11
+}
12
+
13
+.logo {
14
+    margin: 25px 0;
15
+}
16
+
17
+.logo-container {
18
+    position: relative;
19
+}
20
+
21
+.social-media {
22
+    position: absolute;
23
+    top: 30px;
24
+    right: 0;
25
+}
26
+
27
+.social-media .fa-2x {
28
+    color: #72C5ED;
29
+    font-size: 35px;
30
+}
31
+
32
+.social-media .fa-2x:hover {
33
+    color: #33689B;
34
+}
35
+
36
+.nav-container {
37
+    background-color: #33689B;
38
+}
39
+
40
+.navbar-dark .navbar-nav .nav-link {
41
+    color: rgba(255,255,255,.8);
42
+}
43
+
44
+.navbar-dark .navbar-nav .nav-link:focus, .navbar-dark .navbar-nav .nav-link:hover {
45
+    color: rgba(255,255,255,1);
46
+}
47
+
48
+.dropdown-menu {
49
+    border-radius: 0;
50
+    margin-top: .5rem;
51
+    border: none;
52
+    background-color: #33689B;
53
+}
54
+
55
+.dropdown-item {
56
+    color: #fff;
57
+}
58
+
59
+.dropdown-item:hover {
60
+    background-color: #72C5ED;
61
+    border-radius: 0;
62
+}
63
+
64
+.dropdown:hover>.dropdown-menu {
65
+    display: block;
66
+}
67
+
68
+.accordion .card:first-of-type, .card-header:first-child, .accordion .card:last-of-type .accordion .card:not(:first-of-type) .card-header:first-child {
69
+    border-radius: 0;
70
+}
71
+
72
+.card-header {
73
+    background-color: #33689B;
74
+}
75
+
76
+.card .btn-link:hover {
77
+    cursor: pointer;
78
+}
79
+
80
+.card .btn-link h2 {
81
+    color: #fff;
82
+    font-size: 1rem;
83
+    line-height: 1.5;
84
+}
85
+
86
+.form-control {
87
+    border-radius: 0;
88
+}
89
+
90
+.btn-blue {
91
+    background-color: #72C5ED;
92
+    color: #fff;
93
+    border-radius: 0;
94
+}
95
+
96
+.btn-blue:hover {
97
+    color: #fff;
98
+}
99
+
100
+.btn.even-width {
101
+    width: 150px;
102
+}
103
+
104
+.sidebar .form-control {
105
+    background-color: rgba(255,255,255,0.2);
106
+}
107
+
108
+.sidebar .form-control::placeholder {
109
+    color: #fff;
110
+}
111
+
112
+.sidebar .btn-blue {
113
+    background-color: transparent;
114
+    border: 1px solid #fff;
115
+}
116
+
117
+.sidebar .btn-blue:hover {
118
+    background-color: #fff;
119
+    color: #33689B;
120
+    border: 1px solid #33689B;
121
+}
122
+
123
+.sidebar .facilities {
124
+    padding-left: 18px;
125
+}
126
+
127
+p a:link, p a:visited, p a:active, .blue-text {
128
+    color: #72C5ED;
129
+}
130
+
131
+p a:hover {
132
+    color: #5b9dbd;
133
+}
134
+
135
+.large-text {
136
+    font-size: 18px;
137
+    font-weight: 600
138
+}
139
+
140
+.blue-bg {
141
+    background-color: #33689B;
142
+    color: #fff;
143
+}
144
+
145
+.light-blue-bg {
146
+    background-color: #72C5ED;
147
+    color: #fff;
148
+}
149
+
150
+.form-row {
151
+    margin-bottom: 15px;
152
+}
153
+
154
+form legend {
155
+    font-size: 15px;    
156
+    font-family: 'Roboto', sans-serif;
157
+}
158
+
159
+.nav .nav-tabs {
160
+    border: none;
161
+}
162
+
163
+.nav-tabs .nav-link {
164
+    border-radius: 0;
165
+    border-color: #33689B #33689B #33689B;
166
+    color: #666;
167
+}
168
+
169
+.nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link.active {
170
+    background-color: #33689B;
171
+    color: #fff;
172
+    border-color: #33689B;
173
+}
174
+
175
+.page-link {
176
+    color: #33689B;
177
+}
178
+
179
+.page-item.active .page-link {
180
+    background-color: #33689B;
181
+}
182
+
183
+ol {
184
+    counter-reset: item;
185
+    padding-left: 17px;
186
+}
187
+
188
+ol > li {
189
+    counter-increment: item;
190
+    margin-bottom: 25px;
191
+}
192
+
193
+ol ol {
194
+    padding-left: 40px;
195
+}
196
+
197
+ol ol > li {
198
+    display: block;
199
+    margin-bottom: 0;
200
+}
201
+
202
+ol ol > li:before {
203
+    content: counters(item, ".") ". ";
204
+    margin-left: -30px;
205
+}
206
+
207
+footer {
208
+    background-color: #C2C0BF;
209
+}
210
+
211
+footer p, footer a:link , footer a:visited , footer a:hover , footer a:active {
212
+    color: rgba(255,255,255,1);
213
+    font-size: 12px;
214
+    text-decoration: none;
215
+}
216
+
217
+@media (min-width: 992px) {
218
+    .navbar-expand-lg .navbar-nav .nav-link {
219
+        padding-right: 1.75rem;
220
+        padding-left: 1.75rem;
221
+    }
222
+}
223
+
224
+@media (max-width: 768px) {
225
+
226
+    .form-row {
227
+        margin-bottom: 0;
228
+    }
229
+    
230
+    .form-row>.col, .form-row>[class*=col-] {
231
+        margin-bottom: 15px;
232
+    }
233
+}

+ 1
- 0
database/.gitignore Parādīt failu

@@ -0,0 +1 @@
1
+*.sqlite

+ 24
- 0
database/factories/UserFactory.php Parādīt failu

@@ -0,0 +1,24 @@
1
+<?php
2
+
3
+use Faker\Generator as Faker;
4
+
5
+/*
6
+|--------------------------------------------------------------------------
7
+| Model Factories
8
+|--------------------------------------------------------------------------
9
+|
10
+| This directory should contain each of the model factory definitions for
11
+| your application. Factories provide a convenient way to generate new
12
+| model instances for testing / seeding your application's database.
13
+|
14
+*/
15
+
16
+$factory->define(App\User::class, function (Faker $faker) {
17
+    return [
18
+        'name' => $faker->name,
19
+        'email' => $faker->unique()->safeEmail,
20
+        'email_verified_at' => now(),
21
+        'password' => '$2y$10$TKh8H1.PfQx37YgCzwiKb.KjNyWgaHb9cbcoQgdIVFlYg7B77UdFm', // secret
22
+        'remember_token' => str_random(10),
23
+    ];
24
+});

+ 36
- 0
database/migrations/2014_10_12_000000_create_users_table.php Parādīt failu

@@ -0,0 +1,36 @@
1
+<?php
2
+
3
+use Illuminate\Support\Facades\Schema;
4
+use Illuminate\Database\Schema\Blueprint;
5
+use Illuminate\Database\Migrations\Migration;
6
+
7
+class CreateUsersTable extends Migration
8
+{
9
+    /**
10
+     * Run the migrations.
11
+     *
12
+     * @return void
13
+     */
14
+    public function up()
15
+    {
16
+        Schema::create('users', function (Blueprint $table) {
17
+            $table->increments('id');
18
+            $table->string('name');
19
+            $table->string('email')->unique();
20
+            $table->timestamp('email_verified_at')->nullable();
21
+            $table->string('password');
22
+            $table->rememberToken();
23
+            $table->timestamps();
24
+        });
25
+    }
26
+
27
+    /**
28
+     * Reverse the migrations.
29
+     *
30
+     * @return void
31
+     */
32
+    public function down()
33
+    {
34
+        Schema::dropIfExists('users');
35
+    }
36
+}

+ 32
- 0
database/migrations/2014_10_12_100000_create_password_resets_table.php Parādīt failu

@@ -0,0 +1,32 @@
1
+<?php
2
+
3
+use Illuminate\Support\Facades\Schema;
4
+use Illuminate\Database\Schema\Blueprint;
5
+use Illuminate\Database\Migrations\Migration;
6
+
7
+class CreatePasswordResetsTable extends Migration
8
+{
9
+    /**
10
+     * Run the migrations.
11
+     *
12
+     * @return void
13
+     */
14
+    public function up()
15
+    {
16
+        Schema::create('password_resets', function (Blueprint $table) {
17
+            $table->string('email')->index();
18
+            $table->string('token');
19
+            $table->timestamp('created_at')->nullable();
20
+        });
21
+    }
22
+
23
+    /**
24
+     * Reverse the migrations.
25
+     *
26
+     * @return void
27
+     */
28
+    public function down()
29
+    {
30
+        Schema::dropIfExists('password_resets');
31
+    }
32
+}

+ 16
- 0
database/seeds/DatabaseSeeder.php Parādīt failu

@@ -0,0 +1,16 @@
1
+<?php
2
+
3
+use Illuminate\Database\Seeder;
4
+
5
+class DatabaseSeeder extends Seeder
6
+{
7
+    /**
8
+     * Seed the application's database.
9
+     *
10
+     * @return void
11
+     */
12
+    public function run()
13
+    {
14
+        // $this->call(UsersTableSeeder::class);
15
+    }
16
+}

+ 0
- 0
favicon.ico Parādīt failu


Binārs
images/UniVate_properties_png_logo.png Parādīt failu


Binārs
images/about-banner.jpg Parādīt failu


Binārs
images/awards/2011 Silver Crown Logo.png Parādīt failu


Binārs
images/awards/2011-Gold-Crown-Logo.png Parādīt failu


Binārs
images/awards/2018_COE_Logos_white-bkg_translations_en-US-UK.JPG Parādīt failu


Binārs
images/awards/RCI_hospitality.jpg Parādīt failu


Binārs
images/bulk-upload-template.xlsx Parādīt failu


Binārs
images/commercial.jpg Parādīt failu


Binārs
images/commercial/20170626_154153.jpg Parādīt failu


Binārs
images/commercial/20180606_120820.jpg Parādīt failu


Binārs
images/commercial/20180711_151602.jpg Parādīt failu


Binārs
images/commercial/20180711_154434.jpg Parādīt failu


Binārs
images/commercial/20181003_101151.jpg Parādīt failu


Binārs
images/commercial/Ad image 1.jpg Parādīt failu


Binārs
images/commercial/Ad image 2.JPG Parādīt failu


Binārs
images/commercial/Ad image 3.JPG Parādīt failu


Binārs
images/commercial/CR001 PIC 1.jpg Parādīt failu


Binārs
images/commercial/CR001 PIC 2.jpg Parādīt failu


Binārs
images/commercial/CR007 PIC 4.jpg Parādīt failu


Binārs
images/commercial/CS001 PIC 2.JPG Parādīt failu


Binārs
images/commercial/CS001 PIC 3.JPG Parādīt failu


Binārs
images/commercial/CS001 PIC1 .JPG Parādīt failu


Binārs
images/commercial/DSCN4936.JPG Parādīt failu


Binārs
images/commercial/GF CR 004.jpg Parādīt failu


Binārs
images/commercial/IMG_1680.JPG Parādīt failu


Binārs
images/commercial/IMG_3656.jpg Parādīt failu


+ 0
- 0
images/commercial/IMG_3659.jpg Parādīt failu


Daži faili netika attēloti, jo izmaiņu fails ir pārāk liels

Notiek ielāde…
Atcelt
Saglabāt