Browse Source

Added files

master
ojizero 3 years ago
parent
commit
818459b840
100 changed files with 8124 additions and 0 deletions
  1. 8
    0
      Yamsafer/.idea/Yamsafer.iml
  2. 4
    0
      Yamsafer/.idea/blade.xml
  3. 3
    0
      Yamsafer/.idea/copyright/profiles_settings.xml
  4. 29
    0
      Yamsafer/.idea/misc.xml
  5. 8
    0
      Yamsafer/.idea/modules.xml
  6. 642
    0
      Yamsafer/.idea/workspace.xml
  7. 8
    0
      Yamsafer/Hotels/.idea/Hotels.iml
  8. 4
    0
      Yamsafer/Hotels/.idea/blade.xml
  9. 3
    0
      Yamsafer/Hotels/.idea/copyright/profiles_settings.xml
  10. 29
    0
      Yamsafer/Hotels/.idea/misc.xml
  11. 8
    0
      Yamsafer/Hotels/.idea/modules.xml
  12. 519
    0
      Yamsafer/Hotels/.idea/workspace.xml
  13. 32
    0
      Yamsafer/Hotels/laravel/.env.example
  14. 3
    0
      Yamsafer/Hotels/laravel/.gitattributes
  15. 7
    0
      Yamsafer/Hotels/laravel/.gitignore
  16. 17
    0
      Yamsafer/Hotels/laravel/app/City.php
  17. 40
    0
      Yamsafer/Hotels/laravel/app/Console/Kernel.php
  18. 17
    0
      Yamsafer/Hotels/laravel/app/Country.php
  19. 65
    0
      Yamsafer/Hotels/laravel/app/Exceptions/Handler.php
  20. 13
    0
      Yamsafer/Hotels/laravel/app/Hotel.php
  21. 32
    0
      Yamsafer/Hotels/laravel/app/Http/Controllers/Auth/ForgotPasswordController.php
  22. 39
    0
      Yamsafer/Hotels/laravel/app/Http/Controllers/Auth/LoginController.php
  23. 71
    0
      Yamsafer/Hotels/laravel/app/Http/Controllers/Auth/RegisterController.php
  24. 32
    0
      Yamsafer/Hotels/laravel/app/Http/Controllers/Auth/ResetPasswordController.php
  25. 52
    0
      Yamsafer/Hotels/laravel/app/Http/Controllers/CityController.php
  26. 13
    0
      Yamsafer/Hotels/laravel/app/Http/Controllers/Controller.php
  27. 142
    0
      Yamsafer/Hotels/laravel/app/Http/Controllers/CountryController.php
  28. 89
    0
      Yamsafer/Hotels/laravel/app/Http/Controllers/HotelController.php
  29. 56
    0
      Yamsafer/Hotels/laravel/app/Http/Kernel.php
  30. 17
    0
      Yamsafer/Hotels/laravel/app/Http/Middleware/EncryptCookies.php
  31. 26
    0
      Yamsafer/Hotels/laravel/app/Http/Middleware/RedirectIfAuthenticated.php
  32. 17
    0
      Yamsafer/Hotels/laravel/app/Http/Middleware/VerifyCsrfToken.php
  33. 28
    0
      Yamsafer/Hotels/laravel/app/Providers/AppServiceProvider.php
  34. 30
    0
      Yamsafer/Hotels/laravel/app/Providers/AuthServiceProvider.php
  35. 26
    0
      Yamsafer/Hotels/laravel/app/Providers/BroadcastServiceProvider.php
  36. 32
    0
      Yamsafer/Hotels/laravel/app/Providers/EventServiceProvider.php
  37. 79
    0
      Yamsafer/Hotels/laravel/app/Providers/RouteServiceProvider.php
  38. 51
    0
      Yamsafer/Hotels/laravel/artisan
  39. 55
    0
      Yamsafer/Hotels/laravel/bootstrap/app.php
  40. 34
    0
      Yamsafer/Hotels/laravel/bootstrap/autoload.php
  41. 2
    0
      Yamsafer/Hotels/laravel/bootstrap/cache/.gitignore
  42. 51
    0
      Yamsafer/Hotels/laravel/composer.json
  43. 3554
    0
      Yamsafer/Hotels/laravel/composer.lock
  44. 231
    0
      Yamsafer/Hotels/laravel/config/app.php
  45. 102
    0
      Yamsafer/Hotels/laravel/config/auth.php
  46. 58
    0
      Yamsafer/Hotels/laravel/config/broadcasting.php
  47. 91
    0
      Yamsafer/Hotels/laravel/config/cache.php
  48. 35
    0
      Yamsafer/Hotels/laravel/config/compile.php
  49. 121
    0
      Yamsafer/Hotels/laravel/config/database.php
  50. 67
    0
      Yamsafer/Hotels/laravel/config/filesystems.php
  51. 115
    0
      Yamsafer/Hotels/laravel/config/mail.php
  52. 85
    0
      Yamsafer/Hotels/laravel/config/queue.php
  53. 38
    0
      Yamsafer/Hotels/laravel/config/services.php
  54. 179
    0
      Yamsafer/Hotels/laravel/config/session.php
  55. 33
    0
      Yamsafer/Hotels/laravel/config/view.php
  56. 1
    0
      Yamsafer/Hotels/laravel/database/.gitignore
  57. 23
    0
      Yamsafer/Hotels/laravel/database/factories/ModelFactory.php
  58. 1
    0
      Yamsafer/Hotels/laravel/database/migrations/.gitkeep
  59. 31
    0
      Yamsafer/Hotels/laravel/database/migrations/2016_11_20_122425_create_countries_table.php
  60. 33
    0
      Yamsafer/Hotels/laravel/database/migrations/2016_11_20_122453_create_cities_table.php
  61. 34
    0
      Yamsafer/Hotels/laravel/database/migrations/2016_11_20_122521_create_hotels_table.php
  62. 1
    0
      Yamsafer/Hotels/laravel/database/seeds/.gitkeep
  63. 16
    0
      Yamsafer/Hotels/laravel/database/seeds/DatabaseSeeder.php
  64. 19
    0
      Yamsafer/Hotels/laravel/gulpfile.js
  65. 18
    0
      Yamsafer/Hotels/laravel/package.json
  66. 27
    0
      Yamsafer/Hotels/laravel/phpunit.xml
  67. 20
    0
      Yamsafer/Hotels/laravel/public/.htaccess
  68. 5
    0
      Yamsafer/Hotels/laravel/public/css/app.css
  69. 0
    0
      Yamsafer/Hotels/laravel/public/favicon.ico
  70. 58
    0
      Yamsafer/Hotels/laravel/public/index.php
  71. 10
    0
      Yamsafer/Hotels/laravel/public/js/app.js
  72. 2
    0
      Yamsafer/Hotels/laravel/public/robots.txt
  73. 23
    0
      Yamsafer/Hotels/laravel/public/web.config
  74. 27
    0
      Yamsafer/Hotels/laravel/readme.md
  75. 20
    0
      Yamsafer/Hotels/laravel/resources/assets/js/app.js
  76. 45
    0
      Yamsafer/Hotels/laravel/resources/assets/js/bootstrap.js
  77. 23
    0
      Yamsafer/Hotels/laravel/resources/assets/js/components/Example.vue
  78. 37
    0
      Yamsafer/Hotels/laravel/resources/assets/sass/_variables.scss
  79. 9
    0
      Yamsafer/Hotels/laravel/resources/assets/sass/app.scss
  80. 19
    0
      Yamsafer/Hotels/laravel/resources/lang/en/auth.php
  81. 19
    0
      Yamsafer/Hotels/laravel/resources/lang/en/pagination.php
  82. 22
    0
      Yamsafer/Hotels/laravel/resources/lang/en/passwords.php
  83. 117
    0
      Yamsafer/Hotels/laravel/resources/lang/en/validation.php
  84. 47
    0
      Yamsafer/Hotels/laravel/resources/views/errors/503.blade.php
  85. 1
    0
      Yamsafer/Hotels/laravel/resources/views/vendor/.gitkeep
  86. 91
    0
      Yamsafer/Hotels/laravel/resources/views/welcome.blade.php
  87. 18
    0
      Yamsafer/Hotels/laravel/routes/api.php
  88. 18
    0
      Yamsafer/Hotels/laravel/routes/console.php
  89. 61
    0
      Yamsafer/Hotels/laravel/routes/web.php
  90. 21
    0
      Yamsafer/Hotels/laravel/server.php
  91. 3
    0
      Yamsafer/Hotels/laravel/storage/app/.gitignore
  92. 2
    0
      Yamsafer/Hotels/laravel/storage/app/public/.gitignore
  93. 8
    0
      Yamsafer/Hotels/laravel/storage/framework/.gitignore
  94. 2
    0
      Yamsafer/Hotels/laravel/storage/framework/cache/.gitignore
  95. 2
    0
      Yamsafer/Hotels/laravel/storage/framework/sessions/.gitignore
  96. 2
    0
      Yamsafer/Hotels/laravel/storage/framework/views/.gitignore
  97. 2
    0
      Yamsafer/Hotels/laravel/storage/logs/.gitignore
  98. 19
    0
      Yamsafer/Hotels/laravel/tests/ExampleTest.php
  99. 25
    0
      Yamsafer/Hotels/laravel/tests/TestCase.php
  100. 0
    0
      Yamsafer/Login/.env.example

+ 8
- 0
Yamsafer/.idea/Yamsafer.iml View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

+ 4
- 0
Yamsafer/.idea/blade.xml View File

@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="BladeInjectionConfiguration" escapedTextEnd="!!}" escapedTextStart="{!!" />
</project>

+ 3
- 0
Yamsafer/.idea/copyright/profiles_settings.xml View File

@@ -0,0 +1,3 @@
<component name="CopyrightManager">
<settings default="" />
</component>

+ 29
- 0
Yamsafer/.idea/misc.xml View File

@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectInspectionProfilesVisibleTreeState">
<entry key="Project Default">
<profile-state>
<expanded-state>
<State>
<id />
</State>
</expanded-state>
<selected-state>
<State>
<id>AngularJS</id>
</State>
</selected-state>
</profile-state>
</entry>
</component>
<component name="ProjectLevelVcsManager" settingsEditedManually="false">
<OptionsSetting value="true" id="Add" />
<OptionsSetting value="true" id="Remove" />
<OptionsSetting value="true" id="Checkout" />
<OptionsSetting value="true" id="Update" />
<OptionsSetting value="true" id="Status" />
<OptionsSetting value="true" id="Edit" />
<ConfirmationsSetting value="0" id="Add" />
<ConfirmationsSetting value="0" id="Remove" />
</component>
</project>

+ 8
- 0
Yamsafer/.idea/modules.xml View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/Yamsafer.iml" filepath="$PROJECT_DIR$/.idea/Yamsafer.iml" />
</modules>
</component>
</project>

+ 642
- 0
Yamsafer/.idea/workspace.xml View File

@@ -0,0 +1,642 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ChangeListManager">
<list default="true" id="219009cc-dc78-4f28-a457-fbcc4db28379" name="Default" comment="" />
<ignored path="Yamsafer.iws" />
<ignored path=".idea/workspace.xml" />
<ignored path=".idea/dataSources.local.xml" />
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
<option name="TRACKING_ENABLED" value="true" />
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
<option name="LAST_RESOLUTION" value="IGNORE" />
</component>
<component name="CreatePatchCommitExecutor">
<option name="PATCH_PATH" value="" />
</component>
<component name="ExecutionTargetManager" SELECTED_TARGET="default_target" />
<component name="FavoritesManager">
<favorites_list name="Yamsafer" />
</component>
<component name="FileEditorManager">
<leaf>
<file leaf-file-name=".env" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/laravel/.env">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="198">
<caret line="11" column="27" selection-start-line="11" selection-start-column="27" selection-end-line="11" selection-end-column="27" />
<folding />
</state>
</provider>
</entry>
</file>
<file leaf-file-name="services.php" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/laravel/config/services.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="313">
<caret line="19" column="72" selection-start-line="19" selection-start-column="72" selection-end-line="19" selection-end-column="72" />
<folding />
</state>
</provider>
</entry>
</file>
<file leaf-file-name="RegisterController.php" pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/laravel/app/Http/Controllers/Auth/RegisterController.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="529">
<caret line="98" column="29" selection-start-line="98" selection-start-column="29" selection-end-line="98" selection-end-column="29" />
<folding>
<element signature="e#46#82#0#PHP" expanded="true" />
</folding>
</state>
</provider>
</entry>
</file>
<file leaf-file-name="welcome.blade.php" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/laravel/resources/views/welcome.blade.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="774">
<caret line="91" column="0" selection-start-line="91" selection-start-column="0" selection-end-line="91" selection-end-column="0" />
<folding />
</state>
</provider>
</entry>
</file>
<file leaf-file-name="register.blade.php" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/laravel/resources/views/auth/register.blade.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="126">
<caret line="7" column="20" selection-start-line="7" selection-start-column="20" selection-end-line="7" selection-end-column="42" />
<folding>
<element signature="e#217#243#0#HTML" expanded="true" />
</folding>
</state>
</provider>
</entry>
</file>
<file leaf-file-name="login.blade.php" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/laravel/resources/views/auth/login.blade.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="126">
<caret line="7" column="46" selection-start-line="7" selection-start-column="46" selection-end-line="7" selection-end-column="46" />
<folding>
<element signature="e#201#227#0#HTML" expanded="true" />
</folding>
</state>
</provider>
</entry>
</file>
<file leaf-file-name="web.php" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/laravel/routes/web.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="396">
<caret line="22" column="82" selection-start-line="22" selection-start-column="82" selection-end-line="22" selection-end-column="82" />
<folding>
<element signature="e#7#386#0#PHP" expanded="true" />
</folding>
</state>
</provider>
</entry>
</file>
</leaf>
</component>
<component name="IdeDocumentHistory">
<option name="CHANGED_PATHS">
<list>
<option value="$PROJECT_DIR$/laravel-facebook-login/.env" />
<option value="$PROJECT_DIR$/laravel-facebook-login/config/services.php" />
<option value="$PROJECT_DIR$/laravel-facebook-login/app/Http/Controllers/HomeController.php" />
<option value="$PROJECT_DIR$/laravel/.env" />
<option value="$PROJECT_DIR$/laravel/config/app.php" />
<option value="$PROJECT_DIR$/laravel/config/services.php" />
<option value="$PROJECT_DIR$/laravel/app/User.php" />
<option value="$PROJECT_DIR$/laravel/app/Http/Controllers/Auth/RegisterController.php" />
<option value="$PROJECT_DIR$/laravel/resources/views/welcome.blade.php" />
<option value="$PROJECT_DIR$/laravel/routes/web.php" />
<option value="$PROJECT_DIR$/laravel/resources/views/auth/register.blade.php" />
<option value="$PROJECT_DIR$/laravel/resources/views/auth/login.blade.php" />
<option value="$PROJECT_DIR$/laravel/config/database.php" />
<option value="$PROJECT_DIR$/laravel/database/migrations/2014_10_12_000000_create_users_table.php" />
<option value="$PROJECT_DIR$/laravel/database/migrations/2016_11_20_121632_modify_users.php" />
</list>
</option>
</component>
<component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
<component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" />
<component name="JsGulpfileManager">
<detection-done>true</detection-done>
<sorting>DEFINITION_ORDER</sorting>
</component>
<component name="PhpWorkspaceProjectConfiguration" backward_compatibility_performed="true" />
<component name="ProjectFrameBounds">
<option name="y" value="-28" />
<option name="width" value="1600" />
<option name="height" value="928" />
</component>
<component name="ProjectLevelVcsManager" settingsEditedManually="false">
<OptionsSetting value="true" id="Add" />
<OptionsSetting value="true" id="Remove" />
<OptionsSetting value="true" id="Checkout" />
<OptionsSetting value="true" id="Update" />
<OptionsSetting value="true" id="Status" />
<OptionsSetting value="true" id="Edit" />
<ConfirmationsSetting value="0" id="Add" />
<ConfirmationsSetting value="0" id="Remove" />
</component>
<component name="ProjectView">
<navigator currentView="ProjectPane" proportions="" version="1">
<flattenPackages />
<showMembers />
<showModules />
<showLibraryContents />
<hideEmptyPackages />
<abbreviatePackageNames />
<autoscrollToSource />
<autoscrollFromSource />
<sortByType />
<manualOrder />
<foldersAlwaysOnTop value="true" />
</navigator>
<panes>
<pane id="ProjectPane">
<subPane>
<PATH>
<PATH_ELEMENT>
<option name="myItemId" value="Yamsafer" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
</PATH_ELEMENT>
</PATH>
<PATH>
<PATH_ELEMENT>
<option name="myItemId" value="Yamsafer" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="Yamsafer" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
</PATH>
<PATH>
<PATH_ELEMENT>
<option name="myItemId" value="Yamsafer" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="Yamsafer" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="laravel" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
</PATH>
<PATH>
<PATH_ELEMENT>
<option name="myItemId" value="Yamsafer" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="Yamsafer" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="laravel" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="resources" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="views" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
</PATH>
<PATH>
<PATH_ELEMENT>
<option name="myItemId" value="Yamsafer" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="Yamsafer" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="laravel" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="resources" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
</PATH>
<PATH>
<PATH_ELEMENT>
<option name="myItemId" value="Yamsafer" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="Yamsafer" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="laravel" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="database" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
</PATH>
<PATH>
<PATH_ELEMENT>
<option name="myItemId" value="Yamsafer" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="Yamsafer" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="laravel" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="database" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="migrations" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
</PATH>
<PATH>
<PATH_ELEMENT>
<option name="myItemId" value="Yamsafer" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="Yamsafer" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="laravel" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="app" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
</PATH>
<PATH>
<PATH_ELEMENT>
<option name="myItemId" value="Yamsafer" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="Yamsafer" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="laravel" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="app" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="Http" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
</PATH>
<PATH>
<PATH_ELEMENT>
<option name="myItemId" value="Yamsafer" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="Yamsafer" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="laravel" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="app" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="Http" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="Controllers" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
</PATH>
<PATH>
<PATH_ELEMENT>
<option name="myItemId" value="Yamsafer" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="Yamsafer" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="laravel" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="app" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="Http" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="Controllers" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="Auth" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
</PATH>
</subPane>
</pane>
<pane id="Scratches" />
<pane id="Scope" />
</panes>
</component>
<component name="PropertiesComponent">
<property name="settings.editor.selected.configurable" value="preferences.pluginManager" />
<property name="settings.editor.splitter.proportion" value="0.2" />
<property name="WebServerToolWindowFactoryState" value="false" />
<property name="SearchEverywhereHistoryKey" value="DATA&#9;FILE&#9;file:///home/oji/Workspace/Yamsafer/laravel/config/database.php&#10;serv&#9;FILE&#9;file:///home/oji/Workspace/Yamsafer/laravel/config/services.php&#10;regis&#9;FILE&#9;file:///home/oji/Workspace/Yamsafer/laravel/resources/views/auth/register.blade.php&#10;login&#9;FILE&#9;file:///home/oji/Workspace/Yamsafer/laravel/resources/views/auth/login.blade.php&#10;web&#9;FILE&#9;file:///home/oji/Workspace/Yamsafer/laravel/routes/web.php&#10;user&#9;FILE&#9;file:///home/oji/Workspace/Yamsafer/laravel/database/migrations/2014_10_12_000000_create_users_table.php&#10;auth&#9;FILE&#9;file:///home/oji/Workspace/Yamsafer/laravel-facebook-login/config/auth.php" />
<property name="last_opened_file_path" value="$PROJECT_DIR$/../Git/Antisocial-Network/app/Http/Controllers/UserController.php" />
</component>
<component name="ShelveChangesManager" show_recycled="false">
<option name="remove_strategy" value="false" />
</component>
<component name="SvnConfiguration">
<configuration />
</component>
<component name="TaskManager">
<task active="true" id="Default" summary="Default task">
<changelist id="219009cc-dc78-4f28-a457-fbcc4db28379" name="Default" comment="" />
<created>1479639036472</created>
<option name="number" value="Default" />
<option name="presentableId" value="Default" />
<updated>1479639036472</updated>
<workItem from="1479639038454" duration="5254000" />
</task>
<servers />
</component>
<component name="TimeTrackingManager">
<option name="totallyTimeSpent" value="5254000" />
</component>
<component name="ToolWindowManager">
<frame x="0" y="-28" width="1600" height="928" extended-state="0" />
<editor active="true" />
<layout>
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
<window_info id="Documentation" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="FLOATING" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" x="100" y="72" width="1400" height="728" />
<window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32951945" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
<window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
<window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
<window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
</layout>
</component>
<component name="Vcs.Log.UiProperties">
<option name="RECENTLY_FILTERED_USER_GROUPS">
<collection />
</option>
<option name="RECENTLY_FILTERED_BRANCH_GROUPS">
<collection />
</option>
</component>
<component name="VcsContentAnnotationSettings">
<option name="myLimit" value="2678400000" />
</component>
<component name="XDebuggerManager">
<breakpoint-manager />
<watches-manager />
</component>
<component name="editorHistoryManager">
<entry file="file://$PROJECT_DIR$/laravel-facebook-login/config/app.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-3720">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/laravel-facebook-login/config/services.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="306">
<caret line="17" column="0" selection-start-line="17" selection-start-column="0" selection-end-line="17" selection-end-column="0" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/laravel-facebook-login/app/Http/Controllers/Controller.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/laravel-facebook-login/app/Http/Controllers/HomeController.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="234">
<caret line="13" column="5" selection-start-line="13" selection-start-column="5" selection-end-line="13" selection-end-column="5" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/laravel-facebook-login/app/User.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/laravel-facebook-login/config/auth.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-1398">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/laravel-facebook-login/routes/web.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/laravel-facebook-login/.env">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="108">
<caret line="6" column="0" selection-start-line="6" selection-start-column="0" selection-end-line="11" selection-end-column="27" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/laravel/config/app.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="276">
<caret line="179" column="4" selection-start-line="179" selection-start-column="4" selection-end-line="179" selection-end-column="4" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/laravel/.env">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="198">
<caret line="11" column="27" selection-start-line="11" selection-start-column="27" selection-end-line="11" selection-end-column="27" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/laravel/app/User.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="288">
<caret line="18" column="49" selection-start-line="18" selection-start-column="49" selection-end-line="18" selection-end-column="49" />
<folding>
<element signature="e#24#79#0#PHP" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/../Git/Antisocial-Network/app/Http/Controllers/UserController.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-270">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/laravel/resources/views/welcome.blade.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="774">
<caret line="91" column="0" selection-start-line="91" selection-start-column="0" selection-end-line="91" selection-end-column="0" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/laravel/resources/views/auth/register.blade.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="126">
<caret line="7" column="20" selection-start-line="7" selection-start-column="20" selection-end-line="7" selection-end-column="42" />
<folding>
<element signature="e#217#243#0#HTML" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/laravel/resources/views/layouts/app.blade.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/laravel/resources/views/home.blade.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="20" selection-start-line="0" selection-start-column="20" selection-end-line="0" selection-end-column="20" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/laravel/resources/views/auth/login.blade.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="126">
<caret line="7" column="46" selection-start-line="7" selection-start-column="46" selection-end-line="7" selection-end-column="46" />
<folding>
<element signature="e#201#227#0#HTML" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/laravel/routes/web.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="396">
<caret line="22" column="82" selection-start-line="22" selection-start-column="82" selection-end-line="22" selection-end-column="82" />
<folding>
<element signature="e#7#386#0#PHP" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/laravel/config/database.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="396">
<caret line="64" column="31" selection-start-line="64" selection-start-column="31" selection-end-line="64" selection-end-column="31" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/laravel/database/migrations/2016_11_20_121632_modify_users.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="468">
<caret line="26" column="54" selection-start-line="26" selection-start-column="54" selection-end-line="26" selection-end-column="54" />
<folding>
<element signature="e#7#52#0#PHP" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/laravel/database/migrations/2014_10_12_000000_create_users_table.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="450">
<caret line="25" column="7" selection-start-line="25" selection-start-column="7" selection-end-line="25" selection-end-column="7" />
<folding>
<element signature="e#7#52#0#PHP" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/laravel/config/services.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="313">
<caret line="19" column="72" selection-start-line="19" selection-start-column="72" selection-end-line="19" selection-end-column="72" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/laravel/app/Http/Controllers/Auth/RegisterController.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="529">
<caret line="98" column="29" selection-start-line="98" selection-start-column="29" selection-end-line="98" selection-end-column="29" />
<folding>
<element signature="e#46#82#0#PHP" expanded="true" />
</folding>
</state>
</provider>
</entry>
</component>
</project>

+ 8
- 0
Yamsafer/Hotels/.idea/Hotels.iml View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

+ 4
- 0
Yamsafer/Hotels/.idea/blade.xml View File

@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="BladeInjectionConfiguration" escapedTextEnd="!!}" escapedTextStart="{!!" />
</project>

+ 3
- 0
Yamsafer/Hotels/.idea/copyright/profiles_settings.xml View File

@@ -0,0 +1,3 @@
<component name="CopyrightManager">
<settings default="" />
</component>

+ 29
- 0
Yamsafer/Hotels/.idea/misc.xml View File

@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectInspectionProfilesVisibleTreeState">
<entry key="Project Default">
<profile-state>
<expanded-state>
<State>
<id />
</State>
</expanded-state>
<selected-state>
<State>
<id>AngularJS</id>
</State>
</selected-state>
</profile-state>
</entry>
</component>
<component name="ProjectLevelVcsManager" settingsEditedManually="false">
<OptionsSetting value="true" id="Add" />
<OptionsSetting value="true" id="Remove" />
<OptionsSetting value="true" id="Checkout" />
<OptionsSetting value="true" id="Update" />
<OptionsSetting value="true" id="Status" />
<OptionsSetting value="true" id="Edit" />
<ConfirmationsSetting value="0" id="Add" />
<ConfirmationsSetting value="0" id="Remove" />
</component>
</project>

+ 8
- 0
Yamsafer/Hotels/.idea/modules.xml View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/Hotels.iml" filepath="$PROJECT_DIR$/.idea/Hotels.iml" />
</modules>
</component>
</project>

+ 519
- 0
Yamsafer/Hotels/.idea/workspace.xml View File

@@ -0,0 +1,519 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ChangeListManager">
<list default="true" id="3ed17578-155c-4400-9886-25e1764e9ff3" name="Default" comment="" />
<ignored path="Hotels.iws" />
<ignored path=".idea/workspace.xml" />
<ignored path=".idea/dataSources.local.xml" />
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
<option name="TRACKING_ENABLED" value="true" />
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
<option name="LAST_RESOLUTION" value="IGNORE" />
</component>
<component name="CreatePatchCommitExecutor">
<option name="PATCH_PATH" value="" />
</component>
<component name="ExecutionTargetManager" SELECTED_TARGET="default_target" />
<component name="FavoritesManager">
<favorites_list name="Hotels" />
</component>
<component name="FileEditorManager">
<leaf>
<file leaf-file-name="web.php" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/laravel/routes/web.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="711">
<caret line="59" column="37" selection-start-line="59" selection-start-column="37" selection-end-line="59" selection-end-column="37" />
<folding />
</state>
</provider>
</entry>
</file>
<file leaf-file-name="HotelController.php" pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/laravel/app/Http/Controllers/HotelController.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="423">
<caret line="75" column="126" selection-start-line="75" selection-start-column="126" selection-end-line="75" selection-end-column="126" />
<folding>
<element signature="e#6#85#0#PHP" expanded="true" />
<element signature="e#309#753#0#PHP" expanded="false" />
<element signature="e#756#1600#0#PHP" expanded="false" />
</folding>
</state>
</provider>
</entry>
</file>
<file leaf-file-name="CountryController.php" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/laravel/app/Http/Controllers/CountryController.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="279">
<caret line="48" column="5" selection-start-line="48" selection-start-column="5" selection-end-line="48" selection-end-column="5" />
<folding>
<element signature="e#41#57#0#PHP" expanded="true" />
</folding>
</state>
</provider>
</entry>
</file>
<file leaf-file-name="Country.php" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/laravel/app/Country.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="252">
<caret line="14" column="14" selection-start-line="14" selection-start-column="8" selection-end-line="14" selection-end-column="14" />
<folding />
</state>
</provider>
</entry>
</file>
</leaf>
</component>
<component name="IdeDocumentHistory">
<option name="CHANGED_PATHS">
<list>
<option value="$PROJECT_DIR$/laravel/.env" />
<option value="$PROJECT_DIR$/laravel/database/migrations/2016_11_20_122453_create_cities_table.php" />
<option value="$PROJECT_DIR$/laravel/database/migrations/2016_11_20_122425_create_countries_table.php" />
<option value="$PROJECT_DIR$/laravel/database/migrations/2016_11_20_122521_create_hotels_table.php" />
<option value="$PROJECT_DIR$/laravel/app/Country.php" />
<option value="$PROJECT_DIR$/laravel/app/Hotel.php" />
<option value="$PROJECT_DIR$/laravel/app/City.php" />
<option value="$PROJECT_DIR$/laravel/app/Http/Controllers/CityController.php" />
<option value="$PROJECT_DIR$/laravel/app/Http/Controllers/CountryController.php" />
<option value="$PROJECT_DIR$/laravel/routes/web.php" />
<option value="$PROJECT_DIR$/laravel/app/Http/Controllers/HotelController.php" />
</list>
</option>
</component>
<component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
<component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" />
<component name="JsGulpfileManager">
<detection-done>true</detection-done>
<sorting>DEFINITION_ORDER</sorting>
</component>
<component name="PhpServers">
<servers />
</component>
<component name="PhpWorkspaceProjectConfiguration" backward_compatibility_performed="true" />
<component name="ProjectFrameBounds">
<option name="y" value="-1" />
<option name="width" value="1600" />
<option name="height" value="901" />
</component>
<component name="ProjectLevelVcsManager" settingsEditedManually="false">
<OptionsSetting value="true" id="Add" />
<OptionsSetting value="true" id="Remove" />
<OptionsSetting value="true" id="Checkout" />
<OptionsSetting value="true" id="Update" />
<OptionsSetting value="true" id="Status" />
<OptionsSetting value="true" id="Edit" />
<ConfirmationsSetting value="0" id="Add" />
<ConfirmationsSetting value="0" id="Remove" />
</component>
<component name="ProjectView">
<navigator currentView="ProjectPane" proportions="" version="1">
<flattenPackages />
<showMembers />
<showModules />
<showLibraryContents />
<hideEmptyPackages />
<abbreviatePackageNames />
<autoscrollToSource />
<autoscrollFromSource />
<sortByType />
<manualOrder />
<foldersAlwaysOnTop value="true" />
</navigator>
<panes>
<pane id="Scope" />
<pane id="Scratches" />
<pane id="ProjectPane">
<subPane>
<PATH>
<PATH_ELEMENT>
<option name="myItemId" value="Hotels" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
</PATH_ELEMENT>
</PATH>
<PATH>
<PATH_ELEMENT>
<option name="myItemId" value="Hotels" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="Hotels" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="laravel" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
</PATH>
<PATH>
<PATH_ELEMENT>
<option name="myItemId" value="Hotels" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="Hotels" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="laravel" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="database" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
</PATH>
<PATH>
<PATH_ELEMENT>
<option name="myItemId" value="Hotels" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="Hotels" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="laravel" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="database" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="migrations" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
</PATH>
<PATH>
<PATH_ELEMENT>
<option name="myItemId" value="Hotels" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="Hotels" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="laravel" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="app" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
</PATH>
<PATH>
<PATH_ELEMENT>
<option name="myItemId" value="Hotels" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="Hotels" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="laravel" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="app" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="Http" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
</PATH>
<PATH>
<PATH_ELEMENT>
<option name="myItemId" value="Hotels" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="Hotels" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="laravel" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="app" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="Http" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="Controllers" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
</PATH>
</subPane>
</pane>
</panes>
</component>
<component name="PropertiesComponent">
<property name="settings.editor.selected.configurable" value="preferences.pluginManager" />
<property name="settings.editor.splitter.proportion" value="0.2" />
<property name="WebServerToolWindowFactoryState" value="false" />
<property name="SearchEverywhereHistoryKey" value="Coun&#9;FILE&#9;file:///home/oji/Workspace/Yamsafer/Hotels/laravel/app/Country.php&#10;hoteco&#9;FILE&#9;file:///home/oji/Workspace/Yamsafer/Hotels/laravel/app/Http/Controllers/HotelController.php&#10;web&#9;FILE&#9;file:///home/oji/Workspace/Yamsafer/Hotels/laravel/routes/web.php" />
<property name="last_opened_file_path" value="$PROJECT_DIR$/../Login" />
<property name="js-jscs-nodeInterpreter" value="/usr/bin/node" />
</component>
<component name="RunManager">
<configuration default="true" type="JavascriptDebugType" factoryName="JavaScript Debug">
<method />
</configuration>
<configuration default="true" type="NodeJSConfigurationType" factoryName="Node.js" path-to-node="project" working-dir="">
<method />
</configuration>
<configuration default="true" type="PHPUnitRunConfigurationType" factoryName="PHPUnit">
<TestRunner />
<method />
</configuration>
<configuration default="true" type="PhpBehatConfigurationType" factoryName="Behat">
<BehatRunner />
<method />
</configuration>
<configuration default="true" type="PhpLocalRunConfigurationType" factoryName="PHP Console">
<method />
</configuration>
<configuration default="true" type="js.build_tools.gulp" factoryName="Gulp.js">
<method />
</configuration>
<configuration default="true" type="js.build_tools.npm" factoryName="npm">
<command value="run-script" />
<scripts />
<node-interpreter value="project" />
<envs />
<method />
</configuration>
<configuration default="true" type="mocha-javascript-test-runner" factoryName="Mocha">
<node-interpreter>project</node-interpreter>
<node-options />
<working-directory />
<pass-parent-env>true</pass-parent-env>
<envs />
<ui />
<extra-mocha-options />
<test-kind>DIRECTORY</test-kind>
<test-directory />
<recursive>false</recursive>
<method />
</configuration>
</component>
<component name="ShelveChangesManager" show_recycled="false">
<option name="remove_strategy" value="false" />
</component>
<component name="SvnConfiguration">
<configuration />
</component>
<component name="TaskManager">
<task active="true" id="Default" summary="Default task">
<changelist id="3ed17578-155c-4400-9886-25e1764e9ff3" name="Default" comment="" />
<created>1479644351479</created>
<option name="number" value="Default" />
<option name="presentableId" value="Default" />
<updated>1479644351479</updated>
<workItem from="1479644353249" duration="15007000" />
</task>
<servers />
</component>
<component name="TimeTrackingManager">
<option name="totallyTimeSpent" value="15007000" />
</component>
<component name="ToolWindowManager">
<frame x="0" y="-1" width="1600" height="901" extended-state="6" />
<editor active="true" />
<layout>
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
<window_info id="Documentation" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="FLOATING" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" x="100" y="99" width="1400" height="701" />
<window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.3296837" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.42092457" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
<window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
<window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
<window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
</layout>
</component>
<component name="Vcs.Log.UiProperties">
<option name="RECENTLY_FILTERED_USER_GROUPS">
<collection />
</option>
<option name="RECENTLY_FILTERED_BRANCH_GROUPS">
<collection />
</option>
</component>
<component name="VcsContentAnnotationSettings">
<option name="myLimit" value="2678400000" />
</component>
<component name="XDebuggerManager">
<breakpoint-manager />
<watches-manager />
</component>
<component name="editorHistoryManager">
<entry file="file://$PROJECT_DIR$/laravel/.env">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="198">
<caret line="11" column="27" selection-start-line="11" selection-start-column="27" selection-end-line="11" selection-end-column="27" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/../Login/app/Http/Controllers/HomeController.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-72">
<caret line="2" column="0" selection-start-line="2" selection-start-column="0" selection-end-line="4" selection-end-column="28" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/../../Git/Antisocial-Network/app/Post.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/../../Git/Antisocial-Network/app/Http/Controllers/PostController.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="599">
<caret line="76" column="32" selection-start-line="76" selection-start-column="32" selection-end-line="76" selection-end-column="32" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/../../Git/Antisocial-Network/routes/web.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-603">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/laravel/database/migrations/2016_11_20_122425_create_countries_table.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="270">
<caret line="17" column="40" selection-start-line="17" selection-start-column="40" selection-end-line="17" selection-end-column="40" />
<folding />
</state>
</provider>
</entry>
<entry file="jar://$APPLICATION_HOME_DIR$/plugins/php/lib/php.jar!/com/jetbrains/php/lang/psi/stubs/data/standard_8.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="264">
<caret line="1013" column="9" selection-start-line="1013" selection-start-column="9" selection-end-line="1013" selection-end-column="9" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/laravel/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="264">
<caret line="631" column="40" selection-start-line="631" selection-start-column="40" selection-end-line="631" selection-end-column="40" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/laravel/database/migrations/2016_11_20_122453_create_cities_table.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="306">
<caret line="19" column="33" selection-start-line="19" selection-start-column="33" selection-end-line="19" selection-end-column="33" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/laravel/database/migrations/2016_11_20_122521_create_hotels_table.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="324">
<caret line="20" column="37" selection-start-line="20" selection-start-column="37" selection-end-line="20" selection-end-column="37" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/laravel/app/City.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="234">
<caret line="13" column="26" selection-start-line="8" selection-start-column="0" selection-end-line="17" selection-end-column="0" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/laravel/app/Hotel.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="180">
<caret line="10" column="15" selection-start-line="10" selection-start-column="15" selection-end-line="10" selection-end-column="15" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/laravel/app/Http/Controllers/CountryController.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="279">
<caret line="48" column="5" selection-start-line="48" selection-start-column="5" selection-end-line="48" selection-end-column="5" />
<folding>
<element signature="e#41#57#0#PHP" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/laravel/app/Http/Controllers/CityController.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="27">
<caret line="16" column="20" selection-start-line="16" selection-start-column="20" selection-end-line="16" selection-end-column="20" />
<folding>
<element signature="e#6#85#0#PHP" expanded="true" />
<element signature="e#121#134#0#PHP" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/laravel/app/Country.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="252">
<caret line="14" column="14" selection-start-line="14" selection-start-column="8" selection-end-line="14" selection-end-column="14" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/laravel/routes/web.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="711">
<caret line="59" column="37" selection-start-line="59" selection-start-column="37" selection-end-line="59" selection-end-column="37" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/laravel/app/Http/Controllers/HotelController.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="423">
<caret line="75" column="126" selection-start-line="75" selection-start-column="126" selection-end-line="75" selection-end-column="126" />
<folding>
<element signature="e#6#85#0#PHP" expanded="true" />
<element signature="e#309#753#0#PHP" expanded="false" />
<element signature="e#756#1600#0#PHP" expanded="false" />
</folding>
</state>
</provider>
</entry>
</component>
</project>

+ 32
- 0
Yamsafer/Hotels/laravel/.env.example View File

@@ -0,0 +1,32 @@
APP_ENV=local
APP_KEY=
APP_DEBUG=true
APP_LOG_LEVEL=debug
APP_URL=http://localhost

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=homestead
DB_USERNAME=homestead
DB_PASSWORD=secret

BROADCAST_DRIVER=log
CACHE_DRIVER=file
SESSION_DRIVER=file
QUEUE_DRIVER=sync

REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379

MAIL_DRIVER=smtp
MAIL_HOST=mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null

PUSHER_APP_ID=
PUSHER_KEY=
PUSHER_SECRET=

+ 3
- 0
Yamsafer/Hotels/laravel/.gitattributes View File

@@ -0,0 +1,3 @@
* text=auto
*.css linguist-vendored
*.scss linguist-vendored

+ 7
- 0
Yamsafer/Hotels/laravel/.gitignore View File

@@ -0,0 +1,7 @@
/node_modules
/public/storage
/vendor
/.idea
Homestead.json
Homestead.yaml
.env

+ 17
- 0
Yamsafer/Hotels/laravel/app/City.php View File

@@ -0,0 +1,17 @@
<?php

namespace App;


use Illuminate\Database\Eloquent\Model;


class City extends Model {
public function country () {
return $this->belongsTo('App\Country');
}

public function hotels () {
return $this->hasMany('App\Hotel');
}
}

+ 40
- 0
Yamsafer/Hotels/laravel/app/Console/Kernel.php View File

@@ -0,0 +1,40 @@
<?php

namespace App\Console;

use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;

class Kernel extends ConsoleKernel
{
/**
* The Artisan commands provided by your application.
*
* @var array
*/
protected $commands = [
//
];

/**
* Define the application's command schedule.
*
* @param \Illuminate\Console\Scheduling\Schedule $schedule
* @return void
*/
protected function schedule(Schedule $schedule)
{
// $schedule->command('inspire')
// ->hourly();
}

/**
* Register the Closure based commands for the application.
*
* @return void
*/
protected function commands()
{
require base_path('routes/console.php');
}
}

+ 17
- 0
Yamsafer/Hotels/laravel/app/Country.php View File

@@ -0,0 +1,17 @@
<?php

namespace App;


use Illuminate\Database\Eloquent\Model;


class Country extends Model {
public function city () {
return $this->hasMany('App\City');
}

public function hotels () {
return $this->hasManyThrough('App\Hotel', 'App\City');
}
}

+ 65
- 0
Yamsafer/Hotels/laravel/app/Exceptions/Handler.php View File

@@ -0,0 +1,65 @@
<?php

namespace App\Exceptions;

use Exception;
use Illuminate\Auth\AuthenticationException;
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;

class Handler extends ExceptionHandler
{
/**
* A list of the exception types that should not be reported.
*
* @var array
*/
protected $dontReport = [
\Illuminate\Auth\AuthenticationException::class,
\Illuminate\Auth\Access\AuthorizationException::class,
\Symfony\Component\HttpKernel\Exception\HttpException::class,
\Illuminate\Database\Eloquent\ModelNotFoundException::class,
\Illuminate\Session\TokenMismatchException::class,
\Illuminate\Validation\ValidationException::class,
];

/**
* Report or log an exception.
*
* This is a great spot to send exceptions to Sentry, Bugsnag, etc.
*
* @param \Exception $exception
* @return void
*/
public function report(Exception $exception)
{
parent::report($exception);
}

/**
* Render an exception into an HTTP response.
*
* @param \Illuminate\Http\Request $request
* @param \Exception $exception
* @return \Illuminate\Http\Response
*/
public function render($request, Exception $exception)
{
return parent::render($request, $exception);
}

/**
* Convert an authentication exception into an unauthenticated response.
*
* @param \Illuminate\Http\Request $request
* @param \Illuminate\Auth\AuthenticationException $exception
* @return \Illuminate\Http\Response
*/
protected function unauthenticated($request, AuthenticationException $exception)
{
if ($request->expectsJson()) {
return response()->json(['error' => 'Unauthenticated.'], 401);
}

return redirect()->guest('login');
}
}

+ 13
- 0
Yamsafer/Hotels/laravel/app/Hotel.php View File

@@ -0,0 +1,13 @@
<?php

namespace App;


use Illuminate\Database\Eloquent\Model;


class Hotel extends Model {
public function city () {
return $this->belongsTo('App\City');
}
}

+ 32
- 0
Yamsafer/Hotels/laravel/app/Http/Controllers/Auth/ForgotPasswordController.php View File

@@ -0,0 +1,32 @@
<?php

namespace App\Http\Controllers\Auth;

use App\Http\Controllers\Controller;
use Illuminate\Foundation\Auth\SendsPasswordResetEmails;

class ForgotPasswordController extends Controller
{
/*
|--------------------------------------------------------------------------
| Password Reset Controller
|--------------------------------------------------------------------------
|
| This controller is responsible for handling password reset emails and
| includes a trait which assists in sending these notifications from
| your application to your users. Feel free to explore this trait.
|
*/

use SendsPasswordResetEmails;

/**
* Create a new controller instance.
*
* @return void
*/
public function __construct()
{
$this->middleware('guest');
}
}

+ 39
- 0
Yamsafer/Hotels/laravel/app/Http/Controllers/Auth/LoginController.php View File

@@ -0,0 +1,39 @@
<?php

namespace App\Http\Controllers\Auth;

use App\Http\Controllers\Controller;
use Illuminate\Foundation\Auth\AuthenticatesUsers;

class LoginController extends Controller
{
/*
|--------------------------------------------------------------------------
| Login Controller
|--------------------------------------------------------------------------
|
| This controller handles authenticating users for the application and
| redirecting them to your home screen. The controller uses a trait
| to conveniently provide its functionality to your applications.
|
*/

use AuthenticatesUsers;

/**
* Where to redirect users after login.
*
* @var string
*/
protected $redirectTo = '/home';

/**
* Create a new controller instance.
*
* @return void
*/
public function __construct()
{
$this->middleware('guest', ['except' => 'logout']);
}
}

+ 71
- 0
Yamsafer/Hotels/laravel/app/Http/Controllers/Auth/RegisterController.php View File

@@ -0,0 +1,71 @@
<?php

namespace App\Http\Controllers\Auth;

use App\User;
use Validator;
use App\Http\Controllers\Controller;
use Illuminate\Foundation\Auth\RegistersUsers;

class RegisterController extends Controller
{
/*
|--------------------------------------------------------------------------
| Register Controller
|--------------------------------------------------------------------------
|
| This controller handles the registration of new users as well as their
| validation and creation. By default this controller uses a trait to
| provide this functionality without requiring any additional code.
|
*/

use RegistersUsers;

/**
* Where to redirect users after login / registration.
*
* @var string
*/
protected $redirectTo = '/home';

/**
* Create a new controller instance.
*
* @return void
*/
public function __construct()
{
$this->middleware('guest');
}

/**
* Get a validator for an incoming registration request.
*
* @param array $data
* @return \Illuminate\Contracts\Validation\Validator
*/
protected function validator(array $data)
{
return Validator::make($data, [
'name' => 'required|max:255',
'email' => 'required|email|max:255|unique:users',
'password' => 'required|min:6|confirmed',
]);
}

/**
* Create a new user instance after a valid registration.
*
* @param array $data
* @return User
*/
protected function create(array $data)
{
return User::create([
'name' => $data['name'],
'email' => $data['email'],
'password' => bcrypt($data['password']),
]);
}
}

+ 32
- 0
Yamsafer/Hotels/laravel/app/Http/Controllers/Auth/ResetPasswordController.php View File

@@ -0,0 +1,32 @@
<?php

namespace App\Http\Controllers\Auth;

use App\Http\Controllers\Controller;
use Illuminate\Foundation\Auth\ResetsPasswords;

class ResetPasswordController extends Controller
{
/*
|--------------------------------------------------------------------------
| Password Reset Controller
|--------------------------------------------------------------------------
|
| This controller is responsible for handling password reset requests
| and uses a simple trait to include this behavior. You're free to
| explore this trait and override any methods you wish to tweak.
|
*/

use ResetsPasswords;

/**
* Create a new controller instance.
*
* @return void
*/
public function __construct()
{
$this->middleware('guest');
}
}

+ 52
- 0
Yamsafer/Hotels/laravel/app/Http/Controllers/CityController.php View File

@@ -0,0 +1,52 @@
<?php
/**
* Created by PhpStorm.
* User: oji
* Date: 11/20/16
* Time: 2:28 PM
*/

namespace App\Http\Controllers;


use App\City;
use App\Country;


class CityController extends Controller {
public function get_cities () {
$cities = City::all();
$ret = [];

foreach ($cities as $city) {
$ret['' . $city->id] = [
'name' => $city->name
];
}

return response()->json($ret, 200);
}

public function add_cities () {
$c = 0;
foreach (Country::all() as $country) {
for ($i = 0; $i < 2; $i++) {
$city = new City();
$city->name = 'city ' . chr(ord('a') + $c);
$city->country_id = $country->id;
$city->lat = rand(-90, 90);
$city->long = rand(-180, 180);
$city->save();

$c++;
}
}

return null;
}

public function get_hotels ($city_id) {
return response()->json(City::find($city_id)->hotels()->getResults(), 200);
}

}

+ 13
- 0
Yamsafer/Hotels/laravel/app/Http/Controllers/Controller.php View File

@@ -0,0 +1,13 @@
<?php

namespace App\Http\Controllers;

use Illuminate\Foundation\Bus\DispatchesJobs;
use Illuminate\Routing\Controller as BaseController;
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;

class Controller extends BaseController
{
use AuthorizesRequests, DispatchesJobs, ValidatesRequests;
}

+ 142
- 0
Yamsafer/Hotels/laravel/app/Http/Controllers/CountryController.php View File

@@ -0,0 +1,142 @@
<?php

namespace App\Http\Controllers;


use App\Country;
use Illuminate\Http\Request;


class CountryController extends Controller {
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index () {
$countries = Country::all('name', 'country_code as code');

return response()->json($countries, 200);
}

/**
* Show the form for creating a new resource.
*
* @return \Illuminate\Http\Response
*/
public function create () {
//
}

/**
* Store a newly created resource in storage.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response
*/
public function store (Request $request) {
//
}

/**
* Display the specified resource.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public function show ($id) {
return response()->json(Country::find($id)->hotels()->get(), 200);
}

/**
* Show the form for editing the specified resource.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public function edit ($id) {
//
}

/**
* Update the specified resource in storage.
*
* @param \Illuminate\Http\Request $request
* @param int $id
* @return \Illuminate\Http\Response
*/
public function update (Request $request, $id) {
//
}

/**
* Remove the specified resource from storage.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public function destroy ($id) {
//
}


}


//<?php
///**
// * Created by PhpStorm.
// * User: oji
// * Date: 11/20/16
// * Time: 2:28 PM
// */
//
//namespace App\Http\Controllers;
//
//
//use App\Country;
//use App\Hotel;
//
//
//class CountryController extends Controller {
// public function get_countries () {
// $countries = Country::all();
// $ret = [];
//
// foreach ($countries as $country) {
// $ret['' . $country->id] = [
// 'name' => $country->name,
// 'code' => $country->country_code
// ];
// }
//
// return response()->json($ret, 200);
// }
//
// public function get_hotels ($country_id) {
// $hotels = Hotel::where('country_id', '=', intval($country_id))->get();
// $ret = [];
//
// foreach ($hotels as $hotel) {
// $ret[$hotel->id] = [
// 'name' => $hotel->name,
// 'city' => City::find($hotel->city_id)->name,
// 'country' => Country::find($hotel->country_id)->name,
// 'avg_price' => $hotel->avg_price,
// ];
// }
//
// return response()->json($ret, 200);
// }
//
// public function add_countries () {
// for ($i = 0; $i < 2; $i++) {
// $country = new Country();
// $country->name = 'country ' . chr(ord('A') + $i);
// $country->country_code = rand(100, 999);
// $country->save();
// }
//
// return null;
// }
//}

+ 89
- 0
Yamsafer/Hotels/laravel/app/Http/Controllers/HotelController.php View File

@@ -0,0 +1,89 @@
<?php
/**
* Created by PhpStorm.
* User: oji
* Date: 11/20/16
* Time: 2:28 PM
*/

namespace App\Http\Controllers;


use App\City;
use App\Country;
use App\Hotel;
use ConstructorIO\ConstructorIO;


// Key -> atXDAB6JeAKpgykiCGWl
// API -> ldz1KNXyoVfEBjEZnWTa

class HotelController extends Controller {
public function add_hotels () {
$c = 0;
foreach (Country::all() as $country) {
foreach (City::where('country_id', '=', $country->id)->get() as $city) {
$hotel = new Hotel();

$hotel->name = 'hotel ' . chr(ord('A') + $c);
// $hotel->country_id = $country->id;
$hotel->city_id = $city->id;
$hotel->stars = rand(1, 5);
$hotel->avg_price = rand(1, 10);

$hotel->save();

$c++;
}
}

return null;
}

public function get_cheapest ($country_id) {
return response()->json(Country::find($country_id)->hotels()->orderBy('avg_price', 'asc')->first(['hotels.name as Name', 'stars as Stars', 'avg_price as Price']), 200);


// $cities = [];
// foreach (City::where('country_id', '=', intval($country_id))->get() as $city) {
// array_push($cities, $city->id);
// }
// $cheapest = Hotel::whereIn('city_id', $cities)->orderBy('avg_price', 'asc')->first();
//
// if ($cheapest) {
// return response()->json([
// $cheapest->id => [
// 'name' => $cheapest->name,
// 'city' => City::find($cheapest->city_id)->name,
//// 'country' => Country::find($cheapest->country_id)->name,
// 'stars' => $cheapest->stars,
// 'avg_price' => $cheapest->avg_price,
// ]
// ], 200);
// } else {
// return null;
// }
}

public function add_items () {
$hotels = Hotel::all(['name', 'id']);
$items = [];
$constructor = new ConstructorIO("ldz1KNXyoVfEBjEZnWTa", "atXDAB6JeAKpgykiCGWl");

// return response()->json($hotels, 200);
foreach ($hotels as $hotel) {
// $items[] = ['item_name' => '' . $hotel['name'], 'id' => '' . $hotel['id']];
$constructor->addOrUpdate($hotel['id'] . ' - ' . $hotel['name'], 'Search Suggestions', ['id' => '' . $hotel['id']]);
}


// $constructor->addBatch($items, 'Search Suggestions');
// return $constructor->verify();