Laravel htmlspecialchars() expects parameter 1 to be string, object given in my project?
问题 So i'm trying to code a simple website form. But it has this htmlspecialchars error. I've tried to make {{ $message }} but it didn't work. has the same error. this is my controller : <?php namespace App\Http\Controllers; use Mail; use Illuminate\Http\Request; class ContactMessageController extends Controller { public function create() { return view('form'); } public function store(Request $request) { $this->validate($request, [ 'name' => 'required', 'email' => 'required|email', 'address' =>