Sunday, April 16, 2017

[SOLVED]How do I input custom variables in User::create() in Laravel?

$user = User::create(request(['name', 'email', 'password']));

In the above code, what syntax do I need to use to replace the request()->password variable with a custom $password variable?


via Simon Suh

Advertisement