T
T
Tikhon Ermakov2020-07-28 22:45:21
Laravel
Tikhon Ermakov, 2020-07-28 22:45:21

Is it possible to get device information without third party libraries?

In Sanctum, somewhere in the documentation (maybe not off.) I saw how the following is assigned to the token name request()->device_name. There is nothing in the documentation about this. What do you say?

If lark does not have handles, then what would you advise to use to get data about the device, or at least about the OS?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Aksentiev, 2020-07-28
@the_goldmayer

https://laravel.com/docs/master/sanctum#issuing-mo...

$request->validate([
        'email' => 'required|email',
        'password' => 'required',
        'device_name' => 'required'
    ]);

as if it hints at what comes in the request and there can be anything

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question