Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -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",
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user