This commit is contained in:
Neerholt 2020-06-29 10:37:37 +02:00
parent 94b0d73cc4
commit bb307df506
2 changed files with 6 additions and 4 deletions

View File

@ -7,6 +7,6 @@ use Illuminate\Database\Eloquent\Model;
class Contact extends Model
{
protected $fillable = [
'monday', "tuesday", 'wednesday', 'thursday', "friday", "saturday", "sunday"
'name_first', "name_last", 'email', 'tel'
];
}

View File

@ -28,7 +28,7 @@ class ContactController extends Controller
*/
public function create()
{
return Response::detect("contacts.create");
return Response::detect("contact.create");
}
@ -41,8 +41,10 @@ class ContactController extends Controller
public function store(Request $request)
{
$requestContact = $request->validate([
"idk kev" => "required|max:255",
"name_first" => "required|max:255",
"name_last" => "required|max:255",
"email" => "required|max:255",
"tel" => "required|max:255",
]);
$contact = new MenuPlan($requestContact);