Merge remote-tracking branch 'origin/master'

This commit is contained in:
Anders
2020-07-27 14:01:12 +02:00
7 changed files with 40 additions and 25 deletions
+1 -1
View File
@@ -15,6 +15,6 @@ class Contact extends Model
{
//protected variable which contains name of database field(s) to be filled.
protected $fillable = [
'name_first', "name_last", 'email', 'phone'
'contactname', "title", 'email', 'phone'
];
}
@@ -53,8 +53,8 @@ class ContactController extends Controller
public function store(Request $request)
{
$requestContact = $request->validate([
"name_first" => "required|max:255",
"name_last" => "required|max:255",
"contactname" => "required|max:255",
"title" => "required|max:255",
"email" => "required|max:255",
"phone" => "required|max:255",
]);