How can I pass data from blade view to modal dialog : For example : I pass $user from controller to view :
$user = User::findOrFail($id); return view(\'us
You can use the blade include() function, which accepts an array as the second parameter:
@include('user.edit', ['user' => $user])