I am new to Laravel 5 and MVC. I can not figure out why is my INSERT query not running but JUST directing me to search page. below is my code.
edit: the database connection is proper and I can view data on page via same database
public function insert()
{
DB::table('patients')->insert(
array('name' => 'fakhir', 'email' => 'hello@email.com')
);
return view('patients/search');
}
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire