yevhenii/contact

Package has view, model, controller for contact form

dev-master 2018-12-27 19:34 UTC

This package is auto-updated.

Last update: 2024-10-28 10:37:35 UTC


README

This package is just form with few fields.

Fields:

  • email
  • name
  • message

Features:

  • send email for admin
  • save user contact to database

Also you can easily add fields to form

Install

  1. In your terminal:
composer require  yevhenii/contact
  1. Add to config/app.php provider
Yevhenii\Contact\ContactServiceProvider::class,
  1. Publish migration, config, views
php artisan vendor:publish --provider="Yevhenii\Contact\ContactServiceProvider"
php artisan migrate

Usage

Add this function to your blade wherever you need

{!! Yevhenii\Contact\Models\Contact::form() !!}