This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $csv = Reader::createFromPath(database_path('seeds/sources/belgian-cities.csv'), 'r'); | |
| $csv->setHeaderOffset(0); | |
| foreach ($stmt->process($csv) as $city) { | |
| // Create a new province if not exists | |
| $province = $provinces->firstOrCreate(['name' => $city['province']]); | |
| // Create a new city in the database if not exists | |
| $cityInformation = $cities->firstOrCreate([ | |
| // City information |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [2018-08-31 14:33:01] production.ERROR: Undefined class constant 'HEADER_CLIENT_IP' {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\FatalThrowableError(code: 0): Undefined class constant 'HEADER_CLIENT_IP' at /home/activi1q/config/trustedproxy.php:66) | |
| [stacktrace] | |
| #0 /home/activi1q/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php(71): require() | |
| #1 /home/activi1q/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php(39): Illuminate\\Foundation\\Bootstrap\\LoadConfiguration->loadConfigurationFiles(Object(Illuminate\\Foundation\\Application), Object(Illuminate\\Config\\Repository)) | |
| #2 /home/activi1q/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(206): Illuminate\\Foundation\\Bootstrap\\LoadConfiguration->bootstrap(Object(Illuminate\\Foundation\\Application)) | |
| #3 /home/activi1q/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(297): Illuminate\\Foundation\\Application->bootstrapWith(Array) | |
| #4 /home/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <input type="text" class="form-control form-control-sm @error('firstname', 'is-invalid')" @input('lastname') id="inputFirstname" placeholder="{{ __('starter-translations::users.placeholders.firstname') }}"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class SocialRepository | |
| { | |
| public function shareCrowdfund() | |
| { | |
| $social = Share::load('test', 'http://www.goolde.cla')->services(config('social.services')); | |
| dd($social); | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- | |
| Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException: in file C:\Users\Gebruiker\Desktop\bloailer\vendor\laravel\framework\src\Illuminate\Routing\RouteCollection.php on line 255 | |
| Stack trace: | |
| 1. Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException->() C:\Users\Gebruiker\Desktop\bloailer\vendor\laravel\framework\src\Illuminate\Routing\RouteCollection.php:255 | |
| 2. Illuminate\Routing\RouteCollection->methodNotAllowed() C:\Users\Gebruiker\Desktop\bloailer\vendor\laravel\framework\src\Illuminate\Routing\RouteCollection.php:242 | |
| 3. Illuminate\Routing\RouteCollection->getRouteForMethods() C:\Users\Gebruiker\Desktop\bloailer\vendor\laravel\framework\src\Illuminate\Routing\RouteCollection.php:176 | |
| 4. Illuminate\Routing\RouteCollection->match() C:\Users\Gebruiker\Desktop\bloailer\vendor\laravel\framework\src\Illuminate\Routing\Router.php:613 | |
| 5. Illuminate\Routing\Router->findRoute() C:\Users\Gebruiker\Desktop\bloailer\vendor\laravel\framework\src\Illuminate\Ro |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace Misfits\Http\Controllers\Admin\Helpdesk; | |
| use Illuminate\Http\RedirectResponse; | |
| use Illuminate\View\View; | |
| use Misfits\Http\Controllers\Controller; | |
| use Misfits\Http\Requests\Admin\Helpdesk\CategoryEditValidator; | |
| use Misfits\Http\Requests\Admin\Helpdesk\CategoryValidator; | |
| use Misfits\Repositories\CategoryRepository; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| foreach v | |
| {\displaystyle \in } | |
| \in V(G) do d(v) = | |
| {\displaystyle \infty } | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace App\Http\Controllers; | |
| use App\Repositories\NewsRepository; | |
| use Illuminate\Http\Request; | |
| use Illuminate\View\View; | |
| /** | |
| * Class NewsController |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| array:4 [▼ | |
| 0 => array:2 [▼ | |
| "productId" => "1" | |
| "personen" => "1" | |
| ] | |
| 1 => array:2 [▼ | |
| "productId" => null | |
| "personen" => null | |
| ] | |
| 2 => array:2 [▼ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Delete an api key out off the storage. | |
| * | |
| * @param integer $keyId The unique identifier in the storage. | |
| * @return \Illuminate\Http\RedirectResponse | |
| */ | |
| public function delete($keyId): RedirectResponse | |
| { | |
| $apiKey = $this->apiKeyRepository->find($keyId) ?: abort(Response::HTTP_NOT_FOUND); | |