Invoice Ninja Setup

@if (version_compare(phpversion(), '5.4.0', '<'))
Warning: The application requires PHP >= 5.4.0
@endif @if (!extension_loaded('fileinfo'))
Warning: The fileinfo extension needs to be installed and enabled.
@endif If you need help you can either post to our Google Group or email us at contact@invoiceninja.com.

-- Commands to create a MySQL database and user
CREATE SCHEMA `ninja` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
CREATE USER 'ninja'@'localhost' IDENTIFIED BY 'ninja';
GRANT ALL PRIVILEGES ON `ninja`.* TO 'ninja'@'localhost';
FLUSH PRIVILEGES;

{{ Former::open()->rules([ 'app[url]' => 'required', 'database[type][host]' => 'required', 'database[type][database]' => 'required', 'database[type][username]' => 'required', 'database[type][password]' => 'required', 'first_name' => 'required', 'last_name' => 'required', 'email' => 'required|email', 'password' => 'required', 'terms_checkbox' => 'required' ]) }}

Application Settings

{{ Former::text('app[url]')->label('URL')->value(Request::root()) }}

Database Connection

{{ Former::select('database[default]')->label('Driver')->options(['mysql' => 'MySQL', 'pgsql' => 'PostgreSQL', 'sqlite' => 'SQLite']) }} {{ Former::text('database[type][host]')->label('Host')->value('localhost') }} {{ Former::text('database[type][database]')->label('Database')->value('ninja') }} {{ Former::text('database[type][username]')->label('Username')->value('ninja') }} {{ Former::password('database[type][password]')->label('Password')->value('ninja') }} {{ Former::actions( Button::normal('Test connection', ['onclick' => 'testDatabase()']), '  ' ) }}

Email Settings

{{ Former::select('mail[driver]')->label('Driver')->options(['smtp' => 'SMTP', 'mail' => 'Mail', 'sendmail' => 'Sendmail']) }} {{ Former::text('mail[host]')->label('Host')->value('localhost') }} {{ Former::text('mail[port]')->label('Port')->value('587') }} {{ Former::select('mail[encryption]')->label('Encryption')->options(['tls' => 'TLS', 'ssl' => 'SSL']) }} {{ Former::text('mail[from][name]')->label('From Name') }} {{ Former::text('mail[username]')->label('Email') }} {{ Former::password('mail[password]')->label('Password') }} {{ Former::actions( Button::normal('Send test email', ['onclick' => 'testMail()']), '  ' ) }}

User Details

{{ Former::text('first_name') }} {{ Former::text('last_name') }} {{ Former::text('email') }} {{ Former::password('password') }}
{{ Former::checkbox('terms_checkbox')->label(' ')->text(trans('texts.agree_to_terms', ['terms' => ''.trans('texts.terms_of_service').''])) }} {{ Former::actions( Button::submit_lg('Submit') ) }} {{ Former::close() }}