Created
February 16, 2020 19:59
-
-
Save devmsh/1df6e3cfd42cb3174e0ccdd289496af9 to your computer and use it in GitHub Desktop.
Write better Laravel tests
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class LoanController extends Controller | |
{ | |
public function store(Request $request) | |
{ | |
return Loan::log(array_merge($request->all(), [ | |
'user_id' => Auth::id(), | |
])); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment