Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Route::get('{device}', function ($device) {
- $data = json_decode(file_get_contents('json/brands.json'));
- foreach($data as $bc => $brand) {
- foreach($brand->devices as $codename) {
- if ($codename == $device) {
- return view('device');
- }
- }
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement