Created
October 15, 2018 07:17
-
-
Save adbrsln/9173768852a6a165e5f0decf84eb8705 to your computer and use it in GitHub Desktop.
controller
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
public function showOneUser($id) | |
{ | |
$users =User::findOrFail($id)->with('roles')->with('states_val')->get(); | |
$response['data'] = $users; | |
return response()->json($response,200); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment