Download the PHP package bozboz/enquiry without Composer
On this page you can find all versions of the php package bozboz/enquiry. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package enquiry
Bozboz\Enquiry
Installation
-
Add
Bozboz\Enquiry\EnquiryServiceProvider
to theproviders
array inapp/config/app.php
-
Add
contact_recipient
andcontact_name
toapp/config/app.php
-
Add the following to
app/config/app.php
'enquiry_recipient_address' => $_ENV['ENQUIRY_RECIPIENT_ADDRESS'], 'enquiry_recipient_name' => $_ENV['ENQUIRY_RECIPIENT_NAME'],
Consequently define the environment variables in your .env.dev.php
file.
-
Add
'Enquiry' => 'Bozboz\Enquiry\Facades\Enquiry'
to thealiases
array inapp/config/app.php
-
Set
from
andname
inapp/config/mail.php
-
Setup a route
Route::post('contact', array('as' => 'contact-process', function() { $enquiry = Enquiry::make(Input::get(), array( 'name' => 'required', 'email' => 'required|email', 'message' => 'required|min:20' )); if ($enquiry->fails()) { return Redirect::to(URL::previous() . '#form')->withInput()->withErrors($enquiry->getErrors()); } else { return Redirect::to(URL::previous() . '#form')->with('success', true); } }));
-
Point your contact form to the above route
{{ Form::open(['route' => 'contact-process', 'role' => 'form', 'id' => 'form']) }}
- Create the
enquiry
andenquiry-text
files withinapp/views/emails
All versions of enquiry with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.3.0
illuminate/support Version 4.2.*
illuminate/validation Version 4.2.*
illuminate/mail Version 4.2.*
illuminate/config Version 4.2.*
illuminate/support Version 4.2.*
illuminate/validation Version 4.2.*
illuminate/mail Version 4.2.*
illuminate/config Version 4.2.*
The package bozboz/enquiry contains the following files
Loading the files please wait ....