I have started learning Laravel 5.2, I am using this piece of code to save data
Route::get('hello', function () {
$info = new info;
$info->name = "Test";
$info->save;
return view('hello');
});
Data is stroing successfully, but at the same time I am getting an exception.
The table info is the only table inside DB and have nothing like relations.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire