I created a test for users.store and I wanted to test if I get redirected to users.index if everythi...
Bascily everything is working up to the point where I want to get the Auth::user()->id check the...
I am starting to believe there is something wrong with my phpunit.xml file
I have two tests because if validation fails I should get redirected differently. And since I mock...
Thank you! I will look into it but they way you suggest to test store without moking users->creat...
//routes.php Route::resource('users' , 'UsersController'); //Controller public function store(){ $...
The Laravel portal for problem solving, knowledge sharing and community building.
The community