SHARE
TWEET

Untitled

a guest Mar 18th, 2019 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top