diff --git a/app/Providers/ConfigServiceProvider.php b/app/Providers/ConfigServiceProvider.php index 06e57992393e..49e0df6f8fb7 100644 --- a/app/Providers/ConfigServiceProvider.php +++ b/app/Providers/ConfigServiceProvider.php @@ -15,9 +15,15 @@ class ConfigServiceProvider extends ServiceProvider { */ public function register() { + // Surely there has to be a better way than this? + + app('config')->set('confide', require $this->app->basePath() . '/config/packages/zizaco/confide/config.php'); + + /* + This doesn't work: config([ - // - ]); + 'config/packages/zizaco/confide/config.php' + ]);*/ } } diff --git a/config/app.php b/config/app.php index b899e7471916..7a34a3a3e5a5 100644 --- a/config/app.php +++ b/config/app.php @@ -26,7 +26,7 @@ return [ | */ - 'url' => 'http://ninja5.boldplatform.com', + 'url' => '', /* |-------------------------------------------------------------------------- @@ -39,7 +39,7 @@ return [ | */ - 'timezone' => 'Australia/Brisbane', + 'timezone' => 'UTC', /* |-------------------------------------------------------------------------- @@ -78,7 +78,7 @@ return [ | */ - 'key' => env('APP_KEY', 'p118gfK&rlbAb22CB&8!5SKiPkcZpzGG'), + 'key' => env('APP_KEY', ''), 'cipher' => MCRYPT_RIJNDAEL_128, @@ -136,18 +136,11 @@ return [ 'Illuminate\Validation\ValidationServiceProvider', 'Illuminate\View\ViewServiceProvider', - /* - * Application Service Providers... - */ - 'App\Providers\AppServiceProvider', - 'App\Providers\BusServiceProvider', - 'App\Providers\ConfigServiceProvider', - 'App\Providers\EventServiceProvider', - 'App\Providers\RouteServiceProvider', - /* * Additional Providers */ + 'Zizaco\Confide\ServiceProvider', // Confide to be replaced + 'Bootstrapper\BootstrapperL5ServiceProvider', 'Former\FormerServiceProvider', 'Barryvdh\Debugbar\ServiceProvider', @@ -156,6 +149,15 @@ return [ 'Webpatser\Countries\CountriesServiceProvider', 'Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider', 'Illuminate\Html\HtmlServiceProvider', + + /* + * Application Service Providers... + */ + 'App\Providers\AppServiceProvider', + 'App\Providers\BusServiceProvider', + 'App\Providers\ConfigServiceProvider', + 'App\Providers\EventServiceProvider', + 'App\Providers\RouteServiceProvider', ], /* @@ -278,6 +280,8 @@ return [ 'Countries' => 'Webpatser\Countries\CountriesFacade', 'Carbon' => 'Carbon\Carbon', 'Rocketeer' => 'Rocketeer\Facades\Rocketeer', + 'Confide' => 'Zizaco\Confide\Facade',// Confide to be replaced + ], ]; diff --git a/config/packages/.gitkeep b/config/packages/.gitkeep new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/config/packages/anahkiasen/former/Nude.php b/config/packages/anahkiasen/former/Nude.php new file mode 100644 index 000000000000..18f5239b82d0 --- /dev/null +++ b/config/packages/anahkiasen/former/Nude.php @@ -0,0 +1,14 @@ + array( + + 'tag' => 'i', + 'set' => null, + 'prefix' => 'icon', + + ), + +); \ No newline at end of file diff --git a/config/packages/anahkiasen/former/TwitterBootstrap.php b/config/packages/anahkiasen/former/TwitterBootstrap.php new file mode 100644 index 000000000000..dfac6d7bc77e --- /dev/null +++ b/config/packages/anahkiasen/former/TwitterBootstrap.php @@ -0,0 +1,14 @@ + array( + + 'tag' => 'i', + 'set' => null, + 'prefix' => 'icon', + + ), + +); \ No newline at end of file diff --git a/config/packages/anahkiasen/former/TwitterBootstrap3.php b/config/packages/anahkiasen/former/TwitterBootstrap3.php new file mode 100644 index 000000000000..fad6b7882c89 --- /dev/null +++ b/config/packages/anahkiasen/former/TwitterBootstrap3.php @@ -0,0 +1,26 @@ + array( + 'large' => 'lg', + 'medium' => 'md', + 'small' => 'sm', + 'mini' => 'xs', + ), + + // Width of labels for horizontal forms expressed as viewport => grid columns + 'labelWidths' => array( + 'large' => 4, + 'small' => 4, + ), + + // HTML markup and classes used by Bootstrap 3 for icons + 'icon' => array( + 'tag' => 'span', + 'set' => 'glyphicon', + 'prefix' => 'glyphicon', + ), + +); \ No newline at end of file diff --git a/config/packages/anahkiasen/former/ZurbFoundation.php b/config/packages/anahkiasen/former/ZurbFoundation.php new file mode 100644 index 000000000000..9223978736d5 --- /dev/null +++ b/config/packages/anahkiasen/former/ZurbFoundation.php @@ -0,0 +1,35 @@ + array( + + 'large' => '', + 'medium' => null, + 'small' => 'mobile-', + 'mini' => null, + + ), + + // Width of labels for horizontal forms expressed as viewport => grid columns + 'labelWidths' => array( + + 'large' => 2, + 'small' => 4, + + ), + + // Classes to be applied to wrapped labels in horizontal forms + 'wrappedLabelClasses' => array('right','inline'), + + // HTML markup and classes used by Foundation 3 for icons + 'icon' => array( + + 'tag' => 'i', + 'set' => null, + 'prefix' => 'fi', + + ), + +); \ No newline at end of file diff --git a/config/packages/anahkiasen/former/ZurbFoundation4.php b/config/packages/anahkiasen/former/ZurbFoundation4.php new file mode 100644 index 000000000000..4f55a44f9c40 --- /dev/null +++ b/config/packages/anahkiasen/former/ZurbFoundation4.php @@ -0,0 +1,36 @@ + array( + + 'large' => 'large', + 'medium' => null, + 'small' => 'small', + 'mini' => null, + + ), + + // Width of labels for horizontal forms expressed as viewport => grid columns + 'labelWidths' => array( + + 'small' => 3, + + ), + + // Classes to be applied to wrapped labels in horizontal forms + 'wrappedLabelClasses' => array('right','inline'), + + // HTML markup and classes used by Foundation 4 for icons + 'icon' => array( + + 'tag' => 'i', + 'set' => 'general', + 'prefix' => 'foundicon', + + ), + +); \ No newline at end of file diff --git a/config/packages/anahkiasen/former/config.php b/config/packages/anahkiasen/former/config.php new file mode 100644 index 000000000000..327019638f9d --- /dev/null +++ b/config/packages/anahkiasen/former/config.php @@ -0,0 +1,59 @@ + true, + + // The default form type + 'default_form_type' => 'horizontal', + + // The framework to be used by Former + 'framework' => 'TwitterBootstrap3', + + // Validation + //////////////////////////////////////////////////////////////////// + + // Whether Former should fetch errors from Session + 'fetch_errors' => true, + + // Whether Former should try to apply Validator rules as attributes + 'live_validation' => true, + + // Whether Former should automatically fetch error messages and + // display them next to the matching fields + 'error_messages' => true, + + // Checkables + //////////////////////////////////////////////////////////////////// + + // Whether checkboxes should always be present in the POST data, + // no matter if you checked them or not + 'push_checkboxes' => false, + + // The value a checkbox will have in the POST array if unchecked + 'unchecked_value' => 0, + + // Required fields + //////////////////////////////////////////////////////////////////// + + // The class to be added to required fields + 'required_class' => 'required', + + // A facultative text to append to the labels of required fields + 'required_text' => '', //'*', + + // Translations + //////////////////////////////////////////////////////////////////// + + // Where Former should look for translations + 'translate_from' => 'texts', + + // An array of attributes to automatically translate + 'translatable' => array( + 'help', 'inlineHelp', 'blockHelp', + 'placeholder', 'data_placeholder', + 'label' + ), +); diff --git a/config/packages/ignited/laravel-omnipay/config.php b/config/packages/ignited/laravel-omnipay/config.php new file mode 100644 index 000000000000..493f73319c5f --- /dev/null +++ b/config/packages/ignited/laravel-omnipay/config.php @@ -0,0 +1,19 @@ + 'paypal', + + // Add in each gateway here + 'gateways' => array( + 'paypal' => array( + 'driver' => 'Paypal_Express', + 'options' => array( + 'solutionType' => '', + 'landingPage' => '', + 'headerImageUrl' => '' + ) + ) + ) +); \ No newline at end of file diff --git a/config/packages/zizaco/confide/.gitkeep b/config/packages/zizaco/confide/.gitkeep new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/config/packages/zizaco/confide/config.php b/config/packages/zizaco/confide/config.php new file mode 100644 index 000000000000..e26ae0a94eab --- /dev/null +++ b/config/packages/zizaco/confide/config.php @@ -0,0 +1,117 @@ + 9, + 'throttle_time_period' => 2, + + /* + |-------------------------------------------------------------------------- + | Login Throttle Field + |-------------------------------------------------------------------------- + | + | Login throttle is done using the remote ip address + | and a provided credential. Email and username are likely values. + | + | Default: email + | + */ + 'login_cache_field' => 'email', + + /* + |-------------------------------------------------------------------------- + | Form Views + |-------------------------------------------------------------------------- + | + | The VIEWS used to render forms with Confide methods: + | makeLoginForm, makeSignupForm, makeForgotPasswordForm + | and makeResetPasswordForm. + | + | By default, the out of the box confide views are used + | but you can create your own forms and replace the view + | names here. For example + | + | // To use app/views/user/signup.blade.php: + | + | 'signup_form' => 'user.signup' + | + | + */ + 'login_form' => 'users.login', + 'signup_form' => 'confide::signup', + 'forgot_password_form' => 'users.forgot_password', + 'reset_password_form' => 'users.reset_password', + + /* + |-------------------------------------------------------------------------- + | Email Views + |-------------------------------------------------------------------------- + | + | The VIEWS used to email messages for some Confide events: + | + | By default, the out of the box confide views are used + | but you can create your own forms and replace the view + | names here. For example + | + | // To use app/views/email/confirmation.blade.php: + | + | 'email_account_confirmation' => 'email.confirmation' + | + | + */ + + 'email_reset_password' => 'emails.passwordreset_html', // with $user and $token. + 'email_account_confirmation' => 'emails.confirm_html', // with $user + + /* + |-------------------------------------------------------------------------- + | Signup (create) Cache + |-------------------------------------------------------------------------- + | + | By default you will only can only register once every 2 hours + | (120 minutes) because you are not able to receive a registration + | email more often then that. + | + | You can adjust that limitation here, set to 0 for no caching. + | Time is in minutes. + | + | + */ + 'signup_cache' => 0, + + /* + |-------------------------------------------------------------------------- + | Signup E-mail and confirmation (true or false) + |-------------------------------------------------------------------------- + | + | By default a signup e-mail will be send by the system, however if you + | do not want this to happen, change the line below in false and handle + | the confirmation using another technique, for example by using the IPN + | from a payment-processor. Very usefull for websites offering products. + | + | signup_email: + | is for the transport of the email, true or false + | If you want to use an IPN to trigger the email, then set it to false + | + | signup_confirm: + | is to decide of a member needs to be confirmed before he is able to login + | so when you set this to true, then a member has to be confirmed before + | he is able to login, so if you want to use an IPN for confirmation, be + | sure that the ipn process also changes the confirmed flag in the member + | table, otherwise they will not be able to login after the payment. + | + */ + 'signup_email' => false, + 'signup_confirm' => false, + +);