Skip to content
New issue

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

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

Already on GitHub? Sign in 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!

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

No branches or pull requests

1 participant