Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Magic method device_type #187

Open
suvires opened this issue May 11, 2021 · 0 comments
Open

Magic method device_type #187

suvires opened this issue May 11, 2021 · 0 comments

Comments

@suvires
Copy link

suvires commented May 11, 2021

Nowadays to save the device type i have to do:

        if($agent->isDesktop()) {
            $scan->device_type = 'Desktop';
        } elseif ($agent->isPhone()) {
            $scan->device_type = 'Phone';
        } elseif ($agent->isTablet()) {
            $scan->device_type = 'Tablet';
        }

It would be usefull a magic method device type.

Thanks!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@suvires and others