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-11-28 10:55:43 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() !!}