Skip to content

Commit caf4ec8

Browse files
committed
Update web.php
1 parent 7587d37 commit caf4ec8

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

routes/web.php

+14-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
]);
1818

1919
return response()->json([
20-
'message' => 'your code is ' . $code,
20+
'message' => 'your code is '.$code,
2121
'state' => 'faild',
2222
]);
2323
});
@@ -34,6 +34,18 @@
3434
return redirect(url()->previousPath());
3535
});
3636

37+
Route::get('icons', function () {
38+
if (app()->isLocal()) {
39+
$json = json_decode(file_get_contents(base_path('icons/tabler-nodes-outline.json')), false, 512, JSON_THROW_ON_ERROR);
40+
$items = collect($json)
41+
->keys()
42+
->toArray();
43+
foreach ($items as $item) {
44+
echo "case ".str($item)->title()->studly()->toString()." = '$item';<br>";
45+
}
46+
}
47+
});
48+
3749
Route::get('theme/{theme}', function ($theme) {
3850
session()->put('current_theme', $theme);
3951

@@ -46,4 +58,4 @@
4658
Route::delete('/profile', [ProfileController::class, 'destroy'])->name('profile.destroy');
4759
});
4860

49-
require __DIR__ . '/auth.php';
61+
require __DIR__.'/auth.php';

0 commit comments

Comments
 (0)