mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-03 03:54:34 -04:00
Shift core files
This commit is contained in:
parent
a1403b62da
commit
e0a8e84108
@ -62,6 +62,7 @@ class Handler extends ExceptionHandler
|
|||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
protected $dontFlash = [
|
protected $dontFlash = [
|
||||||
|
'current_password',
|
||||||
'password',
|
'password',
|
||||||
'password_confirmation',
|
'password_confirmation',
|
||||||
];
|
];
|
||||||
|
@ -21,6 +21,7 @@ class TrimStrings extends Middleware
|
|||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
protected $except = [
|
protected $except = [
|
||||||
|
'current_password',
|
||||||
'password',
|
'password',
|
||||||
'password_confirmation',
|
'password_confirmation',
|
||||||
];
|
];
|
||||||
|
@ -645,4 +645,15 @@ class EventServiceProvider extends ServiceProvider
|
|||||||
User::observe(UserObserver::class);
|
User::observe(UserObserver::class);
|
||||||
PurchaseOrder::observe(PurchaseOrderObserver::class);
|
PurchaseOrder::observe(PurchaseOrderObserver::class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Determine if events and listeners should be automatically discovered.
|
||||||
|
*
|
||||||
|
* @return bool
|
||||||
|
*/
|
||||||
|
public function shouldDiscoverEvents()
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -14,6 +14,7 @@ return [
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
'failed' => 'These credentials do not match our records.',
|
'failed' => 'These credentials do not match our records.',
|
||||||
|
'password' => 'The provided password is incorrect.',
|
||||||
'throttle' => 'Too many login attempts. Please try again in :seconds seconds.',
|
'throttle' => 'Too many login attempts. Please try again in :seconds seconds.',
|
||||||
|
|
||||||
];
|
];
|
||||||
|
@ -13,105 +13,129 @@ return [
|
|||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'accepted' => 'The :attribute must be accepted.',
|
'accepted' => 'The :attribute must be accepted.',
|
||||||
'active_url' => 'The :attribute is not a valid URL.',
|
'accepted_if' => 'The :attribute must be accepted when :other is :value.',
|
||||||
'after' => 'The :attribute must be a date after :date.',
|
'active_url' => 'The :attribute is not a valid URL.',
|
||||||
'after_or_equal' => 'The :attribute must be a date after or equal to :date.',
|
'after' => 'The :attribute must be a date after :date.',
|
||||||
'alpha' => 'The :attribute may only contain letters.',
|
'after_or_equal' => 'The :attribute must be a date after or equal to :date.',
|
||||||
'alpha_dash' => 'The :attribute may only contain letters, numbers, dashes and underscores.',
|
'alpha' => 'The :attribute must only contain letters.',
|
||||||
'alpha_num' => 'The :attribute may only contain letters and numbers.',
|
'alpha_dash' => 'The :attribute must only contain letters, numbers, dashes and underscores.',
|
||||||
'array' => 'The :attribute must be an array.',
|
'alpha_num' => 'The :attribute must only contain letters and numbers.',
|
||||||
'before' => 'The :attribute must be a date before :date.',
|
'array' => 'The :attribute must be an array.',
|
||||||
'before_or_equal' => 'The :attribute must be a date before or equal to :date.',
|
'before' => 'The :attribute must be a date before :date.',
|
||||||
'between' => [
|
'before_or_equal' => 'The :attribute must be a date before or equal to :date.',
|
||||||
|
'between' => [
|
||||||
|
'array' => 'The :attribute must have between :min and :max items.',
|
||||||
|
'file' => 'The :attribute must be between :min and :max kilobytes.',
|
||||||
'numeric' => 'The :attribute must be between :min and :max.',
|
'numeric' => 'The :attribute must be between :min and :max.',
|
||||||
'file' => 'The :attribute must be between :min and :max kilobytes.',
|
'string' => 'The :attribute must be between :min and :max characters.',
|
||||||
'string' => 'The :attribute must be between :min and :max characters.',
|
|
||||||
'array' => 'The :attribute must have between :min and :max items.',
|
|
||||||
],
|
],
|
||||||
'boolean' => 'The :attribute field must be true or false.',
|
'boolean' => 'The :attribute field must be true or false.',
|
||||||
'confirmed' => 'The :attribute confirmation does not match.',
|
'confirmed' => 'The :attribute confirmation does not match.',
|
||||||
'date' => 'The :attribute is not a valid date.',
|
'current_password' => 'The password is incorrect.',
|
||||||
'date_format' => 'The :attribute does not match the format :format.',
|
'date' => 'The :attribute is not a valid date.',
|
||||||
'different' => 'The :attribute and :other must be different.',
|
'date_equals' => 'The :attribute must be a date equal to :date.',
|
||||||
'digits' => 'The :attribute must be :digits digits.',
|
'date_format' => 'The :attribute does not match the format :format.',
|
||||||
'digits_between' => 'The :attribute must be between :min and :max digits.',
|
'declined' => 'The :attribute must be declined.',
|
||||||
'dimensions' => 'The :attribute has invalid image dimensions.',
|
'declined_if' => 'The :attribute must be declined when :other is :value.',
|
||||||
'distinct' => 'The :attribute field has a duplicate value.',
|
'different' => 'The :attribute and :other must be different.',
|
||||||
'email' => 'The :attribute must be a valid email address.',
|
'digits' => 'The :attribute must be :digits digits.',
|
||||||
'exists' => 'The selected :attribute is invalid.',
|
'digits_between' => 'The :attribute must be between :min and :max digits.',
|
||||||
'file' => 'The :attribute must be a file.',
|
'dimensions' => 'The :attribute has invalid image dimensions.',
|
||||||
'filled' => 'The :attribute field must have a value.',
|
'distinct' => 'The :attribute field has a duplicate value.',
|
||||||
'gt' => [
|
'email' => 'The :attribute must be a valid email address.',
|
||||||
|
'ends_with' => 'The :attribute must end with one of the following: :values.',
|
||||||
|
'enum' => 'The selected :attribute is invalid.',
|
||||||
|
'exists' => 'The selected :attribute is invalid.',
|
||||||
|
'file' => 'The :attribute must be a file.',
|
||||||
|
'filled' => 'The :attribute field must have a value.',
|
||||||
|
'gt' => [
|
||||||
|
'array' => 'The :attribute must have more than :value items.',
|
||||||
|
'file' => 'The :attribute must be greater than :value kilobytes.',
|
||||||
'numeric' => 'The :attribute must be greater than :value.',
|
'numeric' => 'The :attribute must be greater than :value.',
|
||||||
'file' => 'The :attribute must be greater than :value kilobytes.',
|
'string' => 'The :attribute must be greater than :value characters.',
|
||||||
'string' => 'The :attribute must be greater than :value characters.',
|
|
||||||
'array' => 'The :attribute must have more than :value items.',
|
|
||||||
],
|
],
|
||||||
'gte' => [
|
'gte' => [
|
||||||
'numeric' => 'The :attribute must be greater than or equal :value.',
|
'array' => 'The :attribute must have :value items or more.',
|
||||||
'file' => 'The :attribute must be greater than or equal :value kilobytes.',
|
'file' => 'The :attribute must be greater than or equal to :value kilobytes.',
|
||||||
'string' => 'The :attribute must be greater than or equal :value characters.',
|
'numeric' => 'The :attribute must be greater than or equal to :value.',
|
||||||
'array' => 'The :attribute must have :value items or more.',
|
'string' => 'The :attribute must be greater than or equal to :value characters.',
|
||||||
],
|
],
|
||||||
'image' => 'The :attribute must be an image.',
|
'image' => 'The :attribute must be an image.',
|
||||||
'in' => 'The selected :attribute is invalid.',
|
'in' => 'The selected :attribute is invalid.',
|
||||||
'in_array' => 'The :attribute field does not exist in :other.',
|
'in_array' => 'The :attribute field does not exist in :other.',
|
||||||
'integer' => 'The :attribute must be an integer.',
|
'integer' => 'The :attribute must be an integer.',
|
||||||
'ip' => 'The :attribute must be a valid IP address.',
|
'ip' => 'The :attribute must be a valid IP address.',
|
||||||
'ipv4' => 'The :attribute must be a valid IPv4 address.',
|
'ipv4' => 'The :attribute must be a valid IPv4 address.',
|
||||||
'ipv6' => 'The :attribute must be a valid IPv6 address.',
|
'ipv6' => 'The :attribute must be a valid IPv6 address.',
|
||||||
'json' => 'The :attribute must be a valid JSON string.',
|
'json' => 'The :attribute must be a valid JSON string.',
|
||||||
'lt' => [
|
'lt' => [
|
||||||
|
'array' => 'The :attribute must have less than :value items.',
|
||||||
|
'file' => 'The :attribute must be less than :value kilobytes.',
|
||||||
'numeric' => 'The :attribute must be less than :value.',
|
'numeric' => 'The :attribute must be less than :value.',
|
||||||
'file' => 'The :attribute must be less than :value kilobytes.',
|
'string' => 'The :attribute must be less than :value characters.',
|
||||||
'string' => 'The :attribute must be less than :value characters.',
|
|
||||||
'array' => 'The :attribute must have less than :value items.',
|
|
||||||
],
|
],
|
||||||
'lte' => [
|
'lte' => [
|
||||||
'numeric' => 'The :attribute must be less than or equal :value.',
|
'array' => 'The :attribute must not have more than :value items.',
|
||||||
'file' => 'The :attribute must be less than or equal :value kilobytes.',
|
'file' => 'The :attribute must be less than or equal to :value kilobytes.',
|
||||||
'string' => 'The :attribute must be less than or equal :value characters.',
|
'numeric' => 'The :attribute must be less than or equal to :value.',
|
||||||
'array' => 'The :attribute must not have more than :value items.',
|
'string' => 'The :attribute must be less than or equal to :value characters.',
|
||||||
],
|
],
|
||||||
'max' => [
|
'mac_address' => 'The :attribute must be a valid MAC address.',
|
||||||
'numeric' => 'The :attribute may not be greater than :max.',
|
'max' => [
|
||||||
'file' => 'The :attribute may not be greater than :max kilobytes.',
|
'array' => 'The :attribute must not have more than :max items.',
|
||||||
'string' => 'The :attribute may not be greater than :max characters.',
|
'file' => 'The :attribute must not be greater than :max kilobytes.',
|
||||||
'array' => 'The :attribute may not have more than :max items.',
|
'numeric' => 'The :attribute must not be greater than :max.',
|
||||||
|
'string' => 'The :attribute must not be greater than :max characters.',
|
||||||
],
|
],
|
||||||
'mimes' => 'The :attribute must be a file of type: :values.',
|
'mimes' => 'The :attribute must be a file of type: :values.',
|
||||||
'mimetypes' => 'The :attribute must be a file of type: :values.',
|
'mimetypes' => 'The :attribute must be a file of type: :values.',
|
||||||
'min' => [
|
'min' => [
|
||||||
|
'array' => 'The :attribute must have at least :min items.',
|
||||||
|
'file' => 'The :attribute must be at least :min kilobytes.',
|
||||||
'numeric' => 'The :attribute must be at least :min.',
|
'numeric' => 'The :attribute must be at least :min.',
|
||||||
'file' => 'The :attribute must be at least :min kilobytes.',
|
'string' => 'The :attribute must be at least :min characters.',
|
||||||
'string' => 'The :attribute must be at least :min characters.',
|
|
||||||
'array' => 'The :attribute must have at least :min items.',
|
|
||||||
],
|
],
|
||||||
'not_in' => 'The selected :attribute is invalid.',
|
'multiple_of' => 'The :attribute must be a multiple of :value.',
|
||||||
'not_regex' => 'The :attribute format is invalid.',
|
'not_in' => 'The selected :attribute is invalid.',
|
||||||
'numeric' => 'The :attribute must be a number.',
|
'not_regex' => 'The :attribute format is invalid.',
|
||||||
'present' => 'The :attribute field must be present.',
|
'numeric' => 'The :attribute must be a number.',
|
||||||
'regex' => 'The :attribute format is invalid.',
|
'password' => [
|
||||||
'required' => 'The :attribute field is required.',
|
'letters' => 'The :attribute must contain at least one letter.',
|
||||||
'required_if' => 'The :attribute field is required when :other is :value.',
|
'mixed' => 'The :attribute must contain at least one uppercase and one lowercase letter.',
|
||||||
'required_unless' => 'The :attribute field is required unless :other is in :values.',
|
'numbers' => 'The :attribute must contain at least one number.',
|
||||||
'required_with' => 'The :attribute field is required when :values is present.',
|
'symbols' => 'The :attribute must contain at least one symbol.',
|
||||||
'required_with_all' => 'The :attribute field is required when :values is present.',
|
'uncompromised' => 'The given :attribute has appeared in a data leak. Please choose a different :attribute.',
|
||||||
'required_without' => 'The :attribute field is required when :values is not present.',
|
],
|
||||||
|
'present' => 'The :attribute field must be present.',
|
||||||
|
'prohibited' => 'The :attribute field is prohibited.',
|
||||||
|
'prohibited_if' => 'The :attribute field is prohibited when :other is :value.',
|
||||||
|
'prohibited_unless' => 'The :attribute field is prohibited unless :other is in :values.',
|
||||||
|
'prohibits' => 'The :attribute field prohibits :other from being present.',
|
||||||
|
'regex' => 'The :attribute format is invalid.',
|
||||||
|
'required' => 'The :attribute field is required.',
|
||||||
|
'required_array_keys' => 'The :attribute field must contain entries for: :values.',
|
||||||
|
'required_if' => 'The :attribute field is required when :other is :value.',
|
||||||
|
'required_unless' => 'The :attribute field is required unless :other is in :values.',
|
||||||
|
'required_with' => 'The :attribute field is required when :values is present.',
|
||||||
|
'required_with_all' => 'The :attribute field is required when :values are present.',
|
||||||
|
'required_without' => 'The :attribute field is required when :values is not present.',
|
||||||
'required_without_all' => 'The :attribute field is required when none of :values are present.',
|
'required_without_all' => 'The :attribute field is required when none of :values are present.',
|
||||||
'same' => 'The :attribute and :other must match.',
|
'same' => 'The :attribute and :other must match.',
|
||||||
'size' => [
|
'size' => [
|
||||||
|
'array' => 'The :attribute must contain :size items.',
|
||||||
|
'file' => 'The :attribute must be :size kilobytes.',
|
||||||
'numeric' => 'The :attribute must be :size.',
|
'numeric' => 'The :attribute must be :size.',
|
||||||
'file' => 'The :attribute must be :size kilobytes.',
|
'string' => 'The :attribute must be :size characters.',
|
||||||
'string' => 'The :attribute must be :size characters.',
|
|
||||||
'array' => 'The :attribute must contain :size items.',
|
|
||||||
],
|
],
|
||||||
'string' => 'The :attribute must be a string.',
|
'starts_with' => 'The :attribute must start with one of the following: :values.',
|
||||||
'timezone' => 'The :attribute must be a valid zone.',
|
'doesnt_start_with' => 'The :attribute may not start with one of the following: :values.',
|
||||||
'unique' => 'The :attribute has already been taken.',
|
'string' => 'The :attribute must be a string.',
|
||||||
'uploaded' => 'The :attribute failed to upload.',
|
'timezone' => 'The :attribute must be a valid timezone.',
|
||||||
'url' => 'The :attribute format is invalid.',
|
'unique' => 'The :attribute has already been taken.',
|
||||||
|
'uploaded' => 'The :attribute failed to upload.',
|
||||||
|
'url' => 'The :attribute must be a valid URL.',
|
||||||
|
'uuid' => 'The :attribute must be a valid UUID.',
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
@ -135,9 +159,9 @@ return [
|
|||||||
| Custom Validation Attributes
|
| Custom Validation Attributes
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| The following language lines are used to swap attribute place-holders
|
| The following language lines are used to swap our attribute placeholder
|
||||||
| with something more reader friendly such as E-Mail Address instead
|
| with something more reader friendly such as "E-Mail Address" instead
|
||||||
| of "email". This simply helps us make messages a little cleaner.
|
| of "email". This simply helps us make our message more expressive.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
21
server.php
21
server.php
@ -1,21 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Laravel - A PHP Framework For Web Artisans
|
|
||||||
*
|
|
||||||
* @package Laravel
|
|
||||||
* @author Taylor Otwell <taylor@laravel.com>
|
|
||||||
*/
|
|
||||||
|
|
||||||
$uri = urldecode(
|
|
||||||
parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)
|
|
||||||
);
|
|
||||||
|
|
||||||
// This file allows us to emulate Apache's "mod_rewrite" functionality from the
|
|
||||||
// built-in PHP web server. This provides a convenient way to test a Laravel
|
|
||||||
// application without having installed a "real" web server software here.
|
|
||||||
if ($uri !== '/' && file_exists(__DIR__.'/public'.$uri)) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
require_once __DIR__.'/public/index.php';
|
|
Loading…
x
Reference in New Issue
Block a user