Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace AppHttpControllers;
- use IlluminateHttpRequest;
- use IlluminateSupportFacadesAuth;
- use AppUser;
- use AppRecipe;
- class UserController extends Controller
- {
- /**
- * Create a new controller instance.
- *
- * @return void
- */
- public function __construct()
- {
- $this->middleware('auth', ['except' => [
- 'index', 'show'
- ]]);
- }
- public function index(){
- $user = User::find($id);
- return view('user.userprofile')->with('user');
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement