Type error: Too few arguments to function App\Http\Controllers\RegistrationController::store(), 1 passed and exactly 2 expected
public function store(Request $request, $id)
{
$token = str_random(32);
$users = [
'name' => request('name'),
'email' => request('email'),
'password' => request('password'),
'user_token' => ($token),
];
$device= Device::find($id);
dd($device);
$users = Sentinel::registerandActivate($users);
$users->devices()->attach( $device);