| 1 | <?php |
||
| 19 | class HasSetting |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * Run the has setting middleware. |
||
| 23 | * |
||
| 24 | * We're verifying that the given setting exists in our database. If it |
||
| 25 | * doesn't, then we're sending the user to the install page so that they can |
||
| 26 | * complete the installation of Gitamin on their server. |
||
| 27 | * |
||
| 28 | * @param \Illuminate\Http\Request $request |
||
| 29 | * @param \Closure $next |
||
| 30 | * |
||
| 31 | * @return mixed |
||
| 32 | */ |
||
| 33 | public function handle($request, Closure $next) |
||
| 47 | |||
| 48 | /** |
||
| 49 | * Get the setting from the request. |
||
| 50 | * |
||
| 51 | * @param \Illuminate\Http\Request $request |
||
| 52 | * |
||
| 53 | * @return array |
||
| 54 | */ |
||
| 55 | private function getSettingName($request) |
||
| 61 | } |
||
| 62 |