46 |
47 |
48 |
49 |
50 |
51 |
52 |
108 |
109 |
110 |
111 |
--------------------------------------------------------------------------------
/config/session.php:
--------------------------------------------------------------------------------
1 | env('SESSION_DRIVER', 'file'),
20 |
21 | /*
22 | |--------------------------------------------------------------------------
23 | | Session Lifetime
24 | |--------------------------------------------------------------------------
25 | |
26 | | Here you may specify the number of minutes that you wish the session
27 | | to be allowed to remain idle before it expires. If you want them
28 | | to immediately expire on the browser closing, set that option.
29 | |
30 | */
31 |
32 | 'lifetime' => 120,
33 |
34 | 'expire_on_close' => false,
35 |
36 | /*
37 | |--------------------------------------------------------------------------
38 | | Session Encryption
39 | |--------------------------------------------------------------------------
40 | |
41 | | This option allows you to easily specify that all of your session data
42 | | should be encrypted before it is stored. All encryption will be run
43 | | automatically by Laravel and you can use the Session like normal.
44 | |
45 | */
46 |
47 | 'encrypt' => false,
48 |
49 | /*
50 | |--------------------------------------------------------------------------
51 | | Session File Location
52 | |--------------------------------------------------------------------------
53 | |
54 | | When using the native session driver, we need a location where session
55 | | files may be stored. A default has been set for you but a different
56 | | location may be specified. This is only needed for file sessions.
57 | |
58 | */
59 |
60 | 'files' => storage_path('framework/sessions'),
61 |
62 | /*
63 | |--------------------------------------------------------------------------
64 | | Session Database Connection
65 | |--------------------------------------------------------------------------
66 | |
67 | | When using the "database" or "redis" session drivers, you may specify a
68 | | connection that should be used to manage these sessions. This should
69 | | correspond to a connection in your database configuration options.
70 | |
71 | */
72 |
73 | 'connection' => null,
74 |
75 | /*
76 | |--------------------------------------------------------------------------
77 | | Session Database Table
78 | |--------------------------------------------------------------------------
79 | |
80 | | When using the "database" session driver, you may specify the table we
81 | | should use to manage the sessions. Of course, a sensible default is
82 | | provided for you; however, you are free to change this as needed.
83 | |
84 | */
85 |
86 | 'table' => 'sessions',
87 |
88 | /*
89 | |--------------------------------------------------------------------------
90 | | Session Sweeping Lottery
91 | |--------------------------------------------------------------------------
92 | |
93 | | Some session drivers must manually sweep their storage location to get
94 | | rid of old sessions from storage. Here are the chances that it will
95 | | happen on a given request. By default, the odds are 2 out of 100.
96 | |
97 | */
98 |
99 | 'lottery' => [2, 100],
100 |
101 | /*
102 | |--------------------------------------------------------------------------
103 | | Session Cookie Name
104 | |--------------------------------------------------------------------------
105 | |
106 | | Here you may change the name of the cookie used to identify a session
107 | | instance by ID. The name specified here will get used every time a
108 | | new session cookie is created by the framework for every driver.
109 | |
110 | */
111 |
112 | 'cookie' => 'laravel_session',
113 |
114 | /*
115 | |--------------------------------------------------------------------------
116 | | Session Cookie Path
117 | |--------------------------------------------------------------------------
118 | |
119 | | The session cookie path determines the path for which the cookie will
120 | | be regarded as available. Typically, this will be the root path of
121 | | your application but you are free to change this when necessary.
122 | |
123 | */
124 |
125 | 'path' => '/',
126 |
127 | /*
128 | |--------------------------------------------------------------------------
129 | | Session Cookie Domain
130 | |--------------------------------------------------------------------------
131 | |
132 | | Here you may change the domain of the cookie used to identify a session
133 | | in your application. This will determine which domains the cookie is
134 | | available to in your application. A sensible default has been set.
135 | |
136 | */
137 |
138 | 'domain' => null,
139 |
140 | /*
141 | |--------------------------------------------------------------------------
142 | | HTTPS Only Cookies
143 | |--------------------------------------------------------------------------
144 | |
145 | | By setting this option to true, session cookies will only be sent back
146 | | to the server if the browser has a HTTPS connection. This will keep
147 | | the cookie from being sent to you if it can not be done securely.
148 | |
149 | */
150 |
151 | 'secure' => false,
152 |
153 | /*
154 | |--------------------------------------------------------------------------
155 | | HTTP Access Only
156 | |--------------------------------------------------------------------------
157 | |
158 | | Setting this value to true will prevent JavaScript from accessing the
159 | | value of the cookie and the cookie will only be accessible through
160 | | the HTTP protocol. You are free to modify this option if needed.
161 | |
162 | */
163 |
164 | 'http_only' => true,
165 |
166 | ];
167 |
--------------------------------------------------------------------------------
/resources/lang/en/validation.php:
--------------------------------------------------------------------------------
1 | 'The :attribute must be accepted.',
17 | 'active_url' => 'The :attribute is not a valid URL.',
18 | 'after' => 'The :attribute must be a date after :date.',
19 | 'alpha' => 'The :attribute may only contain letters.',
20 | 'alpha_dash' => 'The :attribute may only contain letters, numbers, and dashes.',
21 | 'alpha_num' => 'The :attribute may only contain letters and numbers.',
22 | 'array' => 'The :attribute must be an array.',
23 | 'before' => 'The :attribute must be a date before :date.',
24 | 'between' => [
25 | 'numeric' => 'The :attribute must be between :min and :max.',
26 | 'file' => 'The :attribute must be between :min and :max kilobytes.',
27 | 'string' => 'The :attribute must be between :min and :max characters.',
28 | 'array' => 'The :attribute must have between :min and :max items.',
29 | ],
30 | 'boolean' => 'The :attribute field must be true or false.',
31 | 'confirmed' => 'The :attribute confirmation does not match.',
32 | 'date' => 'The :attribute is not a valid date.',
33 | 'date_format' => 'The :attribute does not match the format :format.',
34 | 'different' => 'The :attribute and :other must be different.',
35 | 'digits' => 'The :attribute must be :digits digits.',
36 | 'digits_between' => 'The :attribute must be between :min and :max digits.',
37 | 'dimensions' => 'The :attribute has invalid image dimensions.',
38 | 'distinct' => 'The :attribute field has a duplicate value.',
39 | 'email' => 'The :attribute must be a valid email address.',
40 | 'exists' => 'The selected :attribute is invalid.',
41 | 'filled' => 'The :attribute field is required.',
42 | 'image' => 'The :attribute must be an image.',
43 | 'in' => 'The selected :attribute is invalid.',
44 | 'in_array' => 'The :attribute field does not exist in :other.',
45 | 'integer' => 'The :attribute must be an integer.',
46 | 'ip' => 'The :attribute must be a valid IP address.',
47 | 'json' => 'The :attribute must be a valid JSON string.',
48 | 'max' => [
49 | 'numeric' => 'The :attribute may not be greater than :max.',
50 | 'file' => 'The :attribute may not be greater than :max kilobytes.',
51 | 'string' => 'The :attribute may not be greater than :max characters.',
52 | 'array' => 'The :attribute may not have more than :max items.',
53 | ],
54 | 'mimes' => 'The :attribute must be a file of type: :values.',
55 | 'min' => [
56 | 'numeric' => 'The :attribute must be at least :min.',
57 | 'file' => 'The :attribute must be at least :min kilobytes.',
58 | 'string' => 'The :attribute must be at least :min characters.',
59 | 'array' => 'The :attribute must have at least :min items.',
60 | ],
61 | 'not_in' => 'The selected :attribute is invalid.',
62 | 'numeric' => 'The :attribute must be a number.',
63 | 'present' => 'The :attribute field must be present.',
64 | 'regex' => 'The :attribute format is invalid.',
65 | 'required' => 'The :attribute field is required.',
66 | 'required_if' => 'The :attribute field is required when :other is :value.',
67 | 'required_unless' => 'The :attribute field is required unless :other is in :values.',
68 | 'required_with' => 'The :attribute field is required when :values is present.',
69 | 'required_with_all' => 'The :attribute field is required when :values is present.',
70 | 'required_without' => 'The :attribute field is required when :values is not present.',
71 | 'required_without_all' => 'The :attribute field is required when none of :values are present.',
72 | 'same' => 'The :attribute and :other must match.',
73 | 'size' => [
74 | 'numeric' => 'The :attribute must be :size.',
75 | 'file' => 'The :attribute must be :size kilobytes.',
76 | 'string' => 'The :attribute must be :size characters.',
77 | 'array' => 'The :attribute must contain :size items.',
78 | ],
79 | 'string' => 'The :attribute must be a string.',
80 | 'timezone' => 'The :attribute must be a valid zone.',
81 | 'unique' => 'The :attribute has already been taken.',
82 | 'url' => 'The :attribute format is invalid.',
83 |
84 | /*
85 | |--------------------------------------------------------------------------
86 | | Custom Validation Language Lines
87 | |--------------------------------------------------------------------------
88 | |
89 | | Here you may specify custom validation messages for attributes using the
90 | | convention "attribute.rule" to name the lines. This makes it quick to
91 | | specify a specific custom language line for a given attribute rule.
92 | |
93 | */
94 |
95 | 'custom' => [
96 | 'attribute-name' => [
97 | 'rule-name' => 'custom-message',
98 | ],
99 | ],
100 |
101 | /*
102 | |--------------------------------------------------------------------------
103 | | Custom Validation Attributes
104 | |--------------------------------------------------------------------------
105 | |
106 | | The following language lines are used to swap attribute place-holders
107 | | with something more reader friendly such as E-Mail Address instead
108 | | of "email". This simply helps us make messages a little cleaner.
109 | |
110 | */
111 |
112 | 'attributes' => [],
113 |
114 | ];
115 |
--------------------------------------------------------------------------------
/config/app.php:
--------------------------------------------------------------------------------
1 | env('APP_ENV', 'production'),
17 |
18 | /*
19 | |--------------------------------------------------------------------------
20 | | Application Debug Mode
21 | |--------------------------------------------------------------------------
22 | |
23 | | When your application is in debug mode, detailed error messages with
24 | | stack traces will be shown on every error that occurs within your
25 | | application. If disabled, a simple generic error page is shown.
26 | |
27 | */
28 |
29 | 'debug' => env('APP_DEBUG', false),
30 |
31 | /*
32 | |--------------------------------------------------------------------------
33 | | Application URL
34 | |--------------------------------------------------------------------------
35 | |
36 | | This URL is used by the console to properly generate URLs when using
37 | | the Artisan command line tool. You should set this to the root of
38 | | your application so that it is used when running Artisan tasks.
39 | |
40 | */
41 |
42 | 'url' => env('APP_URL', 'http://localhost'),
43 |
44 | /*
45 | |--------------------------------------------------------------------------
46 | | Application Timezone
47 | |--------------------------------------------------------------------------
48 | |
49 | | Here you may specify the default timezone for your application, which
50 | | will be used by the PHP date and date-time functions. We have gone
51 | | ahead and set this to a sensible default for you out of the box.
52 | |
53 | */
54 |
55 | 'timezone' => 'UTC',
56 |
57 | /*
58 | |--------------------------------------------------------------------------
59 | | Application Locale Configuration
60 | |--------------------------------------------------------------------------
61 | |
62 | | The application locale determines the default locale that will be used
63 | | by the translation service provider. You are free to set this value
64 | | to any of the locales which will be supported by the application.
65 | |
66 | */
67 |
68 | 'locale' => 'en',
69 |
70 | /*
71 | |--------------------------------------------------------------------------
72 | | Application Fallback Locale
73 | |--------------------------------------------------------------------------
74 | |
75 | | The fallback locale determines the locale to use when the current one
76 | | is not available. You may change the value to correspond to any of
77 | | the language folders that are provided through your application.
78 | |
79 | */
80 |
81 | 'fallback_locale' => 'en',
82 |
83 | /*
84 | |--------------------------------------------------------------------------
85 | | Encryption Key
86 | |--------------------------------------------------------------------------
87 | |
88 | | This key is used by the Illuminate encrypter service and should be set
89 | | to a random, 32 character string, otherwise these encrypted strings
90 | | will not be safe. Please do this before deploying an application!
91 | |
92 | */
93 |
94 | 'key' => env('APP_KEY'),
95 |
96 | 'cipher' => 'AES-256-CBC',
97 |
98 | /*
99 | |--------------------------------------------------------------------------
100 | | Logging Configuration
101 | |--------------------------------------------------------------------------
102 | |
103 | | Here you may configure the log settings for your application. Out of
104 | | the box, Laravel uses the Monolog PHP logging library. This gives
105 | | you a variety of powerful log handlers / formatters to utilize.
106 | |
107 | | Available Settings: "single", "daily", "syslog", "errorlog"
108 | |
109 | */
110 |
111 | 'log' => env('APP_LOG', 'single'),
112 |
113 | 'log_level' => env('APP_LOG_LEVEL', 'debug'),
114 |
115 | /*
116 | |--------------------------------------------------------------------------
117 | | Autoloaded Service Providers
118 | |--------------------------------------------------------------------------
119 | |
120 | | The service providers listed here will be automatically loaded on the
121 | | request to your application. Feel free to add your own services to
122 | | this array to grant expanded functionality to your applications.
123 | |
124 | */
125 |
126 | 'providers' => [
127 |
128 | /*
129 | * Laravel Framework Service Providers...
130 | */
131 | Illuminate\Auth\AuthServiceProvider::class,
132 | Illuminate\Broadcasting\BroadcastServiceProvider::class,
133 | Illuminate\Bus\BusServiceProvider::class,
134 | Illuminate\Cache\CacheServiceProvider::class,
135 | Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class,
136 | Illuminate\Cookie\CookieServiceProvider::class,
137 | Illuminate\Database\DatabaseServiceProvider::class,
138 | Illuminate\Encryption\EncryptionServiceProvider::class,
139 | Illuminate\Filesystem\FilesystemServiceProvider::class,
140 | Illuminate\Foundation\Providers\FoundationServiceProvider::class,
141 | Illuminate\Hashing\HashServiceProvider::class,
142 | Illuminate\Mail\MailServiceProvider::class,
143 | Illuminate\Pagination\PaginationServiceProvider::class,
144 | Illuminate\Pipeline\PipelineServiceProvider::class,
145 | Illuminate\Queue\QueueServiceProvider::class,
146 | Illuminate\Redis\RedisServiceProvider::class,
147 | Illuminate\Auth\Passwords\PasswordResetServiceProvider::class,
148 | Illuminate\Session\SessionServiceProvider::class,
149 | Illuminate\Translation\TranslationServiceProvider::class,
150 | Illuminate\Validation\ValidationServiceProvider::class,
151 | Illuminate\View\ViewServiceProvider::class,
152 |
153 | /*
154 | * Application Service Providers...
155 | */
156 | App\Providers\AppServiceProvider::class,
157 | App\Providers\AuthServiceProvider::class,
158 | App\Providers\EventServiceProvider::class,
159 | App\Providers\RouteServiceProvider::class,
160 |
161 | ],
162 |
163 | /*
164 | |--------------------------------------------------------------------------
165 | | Class Aliases
166 | |--------------------------------------------------------------------------
167 | |
168 | | This array of class aliases will be registered when this application
169 | | is started. However, feel free to register as many as you wish as
170 | | the aliases are "lazy" loaded so they don't hinder performance.
171 | |
172 | */
173 |
174 | 'aliases' => [
175 |
176 | 'App' => Illuminate\Support\Facades\App::class,
177 | 'Artisan' => Illuminate\Support\Facades\Artisan::class,
178 | 'Auth' => Illuminate\Support\Facades\Auth::class,
179 | 'Blade' => Illuminate\Support\Facades\Blade::class,
180 | 'Cache' => Illuminate\Support\Facades\Cache::class,
181 | 'Config' => Illuminate\Support\Facades\Config::class,
182 | 'Cookie' => Illuminate\Support\Facades\Cookie::class,
183 | 'Crypt' => Illuminate\Support\Facades\Crypt::class,
184 | 'DB' => Illuminate\Support\Facades\DB::class,
185 | 'Eloquent' => Illuminate\Database\Eloquent\Model::class,
186 | 'Event' => Illuminate\Support\Facades\Event::class,
187 | 'File' => Illuminate\Support\Facades\File::class,
188 | 'Gate' => Illuminate\Support\Facades\Gate::class,
189 | 'Hash' => Illuminate\Support\Facades\Hash::class,
190 | 'Lang' => Illuminate\Support\Facades\Lang::class,
191 | 'Log' => Illuminate\Support\Facades\Log::class,
192 | 'Mail' => Illuminate\Support\Facades\Mail::class,
193 | 'Password' => Illuminate\Support\Facades\Password::class,
194 | 'Queue' => Illuminate\Support\Facades\Queue::class,
195 | 'Redirect' => Illuminate\Support\Facades\Redirect::class,
196 | 'Redis' => Illuminate\Support\Facades\Redis::class,
197 | 'Request' => Illuminate\Support\Facades\Request::class,
198 | 'Response' => Illuminate\Support\Facades\Response::class,
199 | 'Route' => Illuminate\Support\Facades\Route::class,
200 | 'Schema' => Illuminate\Support\Facades\Schema::class,
201 | 'Session' => Illuminate\Support\Facades\Session::class,
202 | 'Storage' => Illuminate\Support\Facades\Storage::class,
203 | 'URL' => Illuminate\Support\Facades\URL::class,
204 | 'Validator' => Illuminate\Support\Facades\Validator::class,
205 | 'View' => Illuminate\Support\Facades\View::class,
206 |
207 | ],
208 |
209 | ];
210 |
--------------------------------------------------------------------------------