Skip to content

Commit 9865683

Browse files
committed
Hotfix
1 parent 9ddf0cf commit 9865683

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Http/Controllers/AltRedirectController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public function index()
1919
$values = $data->all();
2020

2121
// Get a blueprint.
22-
$blueprint = Blueprint::setDirectory(__DIR__ . '/../../../resources/blueprints')->find('redirects');
22+
$blueprint = with(new Blueprint)->setDirectory(__DIR__ . '/../../../resources/blueprints')->find('redirects');
2323
// Get a Fields object
2424
$fields = $blueprint->fields();
2525
// Add the values to the object
@@ -41,7 +41,7 @@ public function create(Request $request)
4141
$data = new Data('redirects');
4242

4343
// Get a blueprint.
44-
$blueprint = Blueprint::setDirectory(__DIR__ . '/../../../resources/blueprints')->find('redirects');
44+
$blueprint = with(new Blueprint)->setDirectory(__DIR__ . '/../../../resources/blueprints')->find('redirects');
4545

4646
// Get a Fields object
4747
$fields = $blueprint->fields();

0 commit comments

Comments
 (0)