Advertisement
Guest User

Untitled

a guest
Mar 18th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. namespace AppHttpControllers;
  2.  
  3. use IlluminateHttpRequest;
  4. use IlluminateSupportFacadesAuth;
  5.  
  6. use AppUser;
  7. use AppRecipe;
  8.  
  9. class UserController extends Controller
  10. {
  11. /**
  12. * Create a new controller instance.
  13. *
  14. * @return void
  15. */
  16. public function __construct()
  17. {
  18. $this->middleware('auth', ['except' => [
  19. 'index', 'show'
  20. ]]);
  21. }
  22.  
  23. public function index(){
  24. $user = User::find($id);
  25. return view('user.userprofile')->with('user');
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement