105 |
106 |
--------------------------------------------------------------------------------
/config/app.php:
--------------------------------------------------------------------------------
1 | env('APP_NAME', 'Laravel'),
19 |
20 | /*
21 | |--------------------------------------------------------------------------
22 | | Application Environment
23 | |--------------------------------------------------------------------------
24 | |
25 | | This value determines the "environment" your application is currently
26 | | running in. This may determine how you prefer to configure various
27 | | services the application utilizes. Set this in your ".env" file.
28 | |
29 | */
30 |
31 | 'env' => env('APP_ENV', 'production'),
32 |
33 | /*
34 | |--------------------------------------------------------------------------
35 | | Application Debug Mode
36 | |--------------------------------------------------------------------------
37 | |
38 | | When your application is in debug mode, detailed error messages with
39 | | stack traces will be shown on every error that occurs within your
40 | | application. If disabled, a simple generic error page is shown.
41 | |
42 | */
43 |
44 | 'debug' => (bool) env('APP_DEBUG', false),
45 |
46 | /*
47 | |--------------------------------------------------------------------------
48 | | Application URL
49 | |--------------------------------------------------------------------------
50 | |
51 | | This URL is used by the console to properly generate URLs when using
52 | | the Artisan command line tool. You should set this to the root of
53 | | your application so that it is used when running Artisan tasks.
54 | |
55 | */
56 |
57 | 'url' => env('APP_URL', 'http://localhost'),
58 |
59 | 'asset_url' => env('ASSET_URL'),
60 |
61 | /*
62 | |--------------------------------------------------------------------------
63 | | Application Timezone
64 | |--------------------------------------------------------------------------
65 | |
66 | | Here you may specify the default timezone for your application, which
67 | | will be used by the PHP date and date-time functions. We have gone
68 | | ahead and set this to a sensible default for you out of the box.
69 | |
70 | */
71 |
72 | 'timezone' => 'UTC',
73 |
74 | /*
75 | |--------------------------------------------------------------------------
76 | | Application Locale Configuration
77 | |--------------------------------------------------------------------------
78 | |
79 | | The application locale determines the default locale that will be used
80 | | by the translation service provider. You are free to set this value
81 | | to any of the locales which will be supported by the application.
82 | |
83 | */
84 |
85 | 'locale' => 'en',
86 |
87 | /*
88 | |--------------------------------------------------------------------------
89 | | Application Fallback Locale
90 | |--------------------------------------------------------------------------
91 | |
92 | | The fallback locale determines the locale to use when the current one
93 | | is not available. You may change the value to correspond to any of
94 | | the language folders that are provided through your application.
95 | |
96 | */
97 |
98 | 'fallback_locale' => 'en',
99 |
100 | /*
101 | |--------------------------------------------------------------------------
102 | | Faker Locale
103 | |--------------------------------------------------------------------------
104 | |
105 | | This locale will be used by the Faker PHP library when generating fake
106 | | data for your database seeds. For example, this will be used to get
107 | | localized telephone numbers, street address information and more.
108 | |
109 | */
110 |
111 | 'faker_locale' => 'en_US',
112 |
113 | /*
114 | |--------------------------------------------------------------------------
115 | | Encryption Key
116 | |--------------------------------------------------------------------------
117 | |
118 | | This key is used by the Illuminate encrypter service and should be set
119 | | to a random, 32 character string, otherwise these encrypted strings
120 | | will not be safe. Please do this before deploying an application!
121 | |
122 | */
123 |
124 | 'key' => env('APP_KEY'),
125 |
126 | 'cipher' => 'AES-256-CBC',
127 |
128 | /*
129 | |--------------------------------------------------------------------------
130 | | Maintenance Mode Driver
131 | |--------------------------------------------------------------------------
132 | |
133 | | These configuration options determine the driver used to determine and
134 | | manage Laravel's "maintenance mode" status. The "cache" driver will
135 | | allow maintenance mode to be controlled across multiple machines.
136 | |
137 | | Supported drivers: "file", "cache"
138 | |
139 | */
140 |
141 | 'maintenance' => [
142 | 'driver' => 'file',
143 | // 'store' => 'redis',
144 | ],
145 |
146 | /*
147 | |--------------------------------------------------------------------------
148 | | Autoloaded Service Providers
149 | |--------------------------------------------------------------------------
150 | |
151 | | The service providers listed here will be automatically loaded on the
152 | | request to your application. Feel free to add your own services to
153 | | this array to grant expanded functionality to your applications.
154 | |
155 | */
156 |
157 | 'providers' => [
158 |
159 | /*
160 | * Laravel Framework Service Providers...
161 | */
162 | Illuminate\Auth\AuthServiceProvider::class,
163 | Illuminate\Broadcasting\BroadcastServiceProvider::class,
164 | Illuminate\Bus\BusServiceProvider::class,
165 | Illuminate\Cache\CacheServiceProvider::class,
166 | Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class,
167 | Illuminate\Cookie\CookieServiceProvider::class,
168 | Illuminate\Database\DatabaseServiceProvider::class,
169 | Illuminate\Encryption\EncryptionServiceProvider::class,
170 | Illuminate\Filesystem\FilesystemServiceProvider::class,
171 | Illuminate\Foundation\Providers\FoundationServiceProvider::class,
172 | Illuminate\Hashing\HashServiceProvider::class,
173 | Illuminate\Mail\MailServiceProvider::class,
174 | Illuminate\Notifications\NotificationServiceProvider::class,
175 | Illuminate\Pagination\PaginationServiceProvider::class,
176 | Illuminate\Pipeline\PipelineServiceProvider::class,
177 | Illuminate\Queue\QueueServiceProvider::class,
178 | Illuminate\Redis\RedisServiceProvider::class,
179 | Illuminate\Auth\Passwords\PasswordResetServiceProvider::class,
180 | Illuminate\Session\SessionServiceProvider::class,
181 | Illuminate\Translation\TranslationServiceProvider::class,
182 | Illuminate\Validation\ValidationServiceProvider::class,
183 | Illuminate\View\ViewServiceProvider::class,
184 |
185 | /*
186 | * Package Service Providers...
187 | */
188 |
189 | /*
190 | * Application Service Providers...
191 | */
192 | App\Providers\AppServiceProvider::class,
193 | App\Providers\AuthServiceProvider::class,
194 | // App\Providers\BroadcastServiceProvider::class,
195 | App\Providers\EventServiceProvider::class,
196 | App\Providers\RouteServiceProvider::class,
197 |
198 | ],
199 |
200 | /*
201 | |--------------------------------------------------------------------------
202 | | Class Aliases
203 | |--------------------------------------------------------------------------
204 | |
205 | | This array of class aliases will be registered when this application
206 | | is started. However, feel free to register as many as you wish as
207 | | the aliases are "lazy" loaded so they don't hinder performance.
208 | |
209 | */
210 |
211 | 'aliases' => Facade::defaultAliases()->merge([
212 | // 'ExampleClass' => App\Example\ExampleClass::class,
213 | ])->toArray(),
214 |
215 | ];
216 |
--------------------------------------------------------------------------------
/lang/en/validation.php:
--------------------------------------------------------------------------------
1 | 'The :attribute must be accepted.',
17 | 'accepted_if' => 'The :attribute must be accepted when :other is :value.',
18 | 'active_url' => 'The :attribute is not a valid URL.',
19 | 'after' => 'The :attribute must be a date after :date.',
20 | 'after_or_equal' => 'The :attribute must be a date after or equal to :date.',
21 | 'alpha' => 'The :attribute must only contain letters.',
22 | 'alpha_dash' => 'The :attribute must only contain letters, numbers, dashes and underscores.',
23 | 'alpha_num' => 'The :attribute must only contain letters and numbers.',
24 | 'array' => 'The :attribute must be an array.',
25 | 'ascii' => 'The :attribute must only contain single-byte alphanumeric characters and symbols.',
26 | 'before' => 'The :attribute must be a date before :date.',
27 | 'before_or_equal' => 'The :attribute must be a date before or equal to :date.',
28 | 'between' => [
29 | 'array' => 'The :attribute must have between :min and :max items.',
30 | 'file' => 'The :attribute must be between :min and :max kilobytes.',
31 | 'numeric' => 'The :attribute must be between :min and :max.',
32 | 'string' => 'The :attribute must be between :min and :max characters.',
33 | ],
34 | 'boolean' => 'The :attribute field must be true or false.',
35 | 'confirmed' => 'The :attribute confirmation does not match.',
36 | 'current_password' => 'The password is incorrect.',
37 | 'date' => 'The :attribute is not a valid date.',
38 | 'date_equals' => 'The :attribute must be a date equal to :date.',
39 | 'date_format' => 'The :attribute does not match the format :format.',
40 | 'decimal' => 'The :attribute must have :decimal decimal places.',
41 | 'declined' => 'The :attribute must be declined.',
42 | 'declined_if' => 'The :attribute must be declined when :other is :value.',
43 | 'different' => 'The :attribute and :other must be different.',
44 | 'digits' => 'The :attribute must be :digits digits.',
45 | 'digits_between' => 'The :attribute must be between :min and :max digits.',
46 | 'dimensions' => 'The :attribute has invalid image dimensions.',
47 | 'distinct' => 'The :attribute field has a duplicate value.',
48 | 'doesnt_end_with' => 'The :attribute may not end with one of the following: :values.',
49 | 'doesnt_start_with' => 'The :attribute may not start with one of the following: :values.',
50 | 'email' => 'The :attribute must be a valid email address.',
51 | 'ends_with' => 'The :attribute must end with one of the following: :values.',
52 | 'enum' => 'The selected :attribute is invalid.',
53 | 'exists' => 'The selected :attribute is invalid.',
54 | 'file' => 'The :attribute must be a file.',
55 | 'filled' => 'The :attribute field must have a value.',
56 | 'gt' => [
57 | 'array' => 'The :attribute must have more than :value items.',
58 | 'file' => 'The :attribute must be greater than :value kilobytes.',
59 | 'numeric' => 'The :attribute must be greater than :value.',
60 | 'string' => 'The :attribute must be greater than :value characters.',
61 | ],
62 | 'gte' => [
63 | 'array' => 'The :attribute must have :value items or more.',
64 | 'file' => 'The :attribute must be greater than or equal to :value kilobytes.',
65 | 'numeric' => 'The :attribute must be greater than or equal to :value.',
66 | 'string' => 'The :attribute must be greater than or equal to :value characters.',
67 | ],
68 | 'image' => 'The :attribute must be an image.',
69 | 'in' => 'The selected :attribute is invalid.',
70 | 'in_array' => 'The :attribute field does not exist in :other.',
71 | 'integer' => 'The :attribute must be an integer.',
72 | 'ip' => 'The :attribute must be a valid IP address.',
73 | 'ipv4' => 'The :attribute must be a valid IPv4 address.',
74 | 'ipv6' => 'The :attribute must be a valid IPv6 address.',
75 | 'json' => 'The :attribute must be a valid JSON string.',
76 | 'lowercase' => 'The :attribute must be lowercase.',
77 | 'lt' => [
78 | 'array' => 'The :attribute must have less than :value items.',
79 | 'file' => 'The :attribute must be less than :value kilobytes.',
80 | 'numeric' => 'The :attribute must be less than :value.',
81 | 'string' => 'The :attribute must be less than :value characters.',
82 | ],
83 | 'lte' => [
84 | 'array' => 'The :attribute must not have more than :value items.',
85 | 'file' => 'The :attribute must be less than or equal to :value kilobytes.',
86 | 'numeric' => 'The :attribute must be less than or equal to :value.',
87 | 'string' => 'The :attribute must be less than or equal to :value characters.',
88 | ],
89 | 'mac_address' => 'The :attribute must be a valid MAC address.',
90 | 'max' => [
91 | 'array' => 'The :attribute must not have more than :max items.',
92 | 'file' => 'The :attribute must not be greater than :max kilobytes.',
93 | 'numeric' => 'The :attribute must not be greater than :max.',
94 | 'string' => 'The :attribute must not be greater than :max characters.',
95 | ],
96 | 'max_digits' => 'The :attribute must not have more than :max digits.',
97 | 'mimes' => 'The :attribute must be a file of type: :values.',
98 | 'mimetypes' => 'The :attribute must be a file of type: :values.',
99 | 'min' => [
100 | 'array' => 'The :attribute must have at least :min items.',
101 | 'file' => 'The :attribute must be at least :min kilobytes.',
102 | 'numeric' => 'The :attribute must be at least :min.',
103 | 'string' => 'The :attribute must be at least :min characters.',
104 | ],
105 | 'min_digits' => 'The :attribute must have at least :min digits.',
106 | 'missing' => 'The :attribute field must be missing.',
107 | 'missing_if' => 'The :attribute field must be missing when :other is :value.',
108 | 'missing_unless' => 'The :attribute field must be missing unless :other is :value.',
109 | 'missing_with' => 'The :attribute field must be missing when :values is present.',
110 | 'missing_with_all' => 'The :attribute field must be missing when :values are present.',
111 | 'multiple_of' => 'The :attribute must be a multiple of :value.',
112 | 'not_in' => 'The selected :attribute is invalid.',
113 | 'not_regex' => 'The :attribute format is invalid.',
114 | 'numeric' => 'The :attribute must be a number.',
115 | 'password' => [
116 | 'letters' => 'The :attribute must contain at least one letter.',
117 | 'mixed' => 'The :attribute must contain at least one uppercase and one lowercase letter.',
118 | 'numbers' => 'The :attribute must contain at least one number.',
119 | 'symbols' => 'The :attribute must contain at least one symbol.',
120 | 'uncompromised' => 'The given :attribute has appeared in a data leak. Please choose a different :attribute.',
121 | ],
122 | 'present' => 'The :attribute field must be present.',
123 | 'prohibited' => 'The :attribute field is prohibited.',
124 | 'prohibited_if' => 'The :attribute field is prohibited when :other is :value.',
125 | 'prohibited_unless' => 'The :attribute field is prohibited unless :other is in :values.',
126 | 'prohibits' => 'The :attribute field prohibits :other from being present.',
127 | 'regex' => 'The :attribute format is invalid.',
128 | 'required' => 'The :attribute field is required.',
129 | 'required_array_keys' => 'The :attribute field must contain entries for: :values.',
130 | 'required_if' => 'The :attribute field is required when :other is :value.',
131 | 'required_if_accepted' => 'The :attribute field is required when :other is accepted.',
132 | 'required_unless' => 'The :attribute field is required unless :other is in :values.',
133 | 'required_with' => 'The :attribute field is required when :values is present.',
134 | 'required_with_all' => 'The :attribute field is required when :values are present.',
135 | 'required_without' => 'The :attribute field is required when :values is not present.',
136 | 'required_without_all' => 'The :attribute field is required when none of :values are present.',
137 | 'same' => 'The :attribute and :other must match.',
138 | 'size' => [
139 | 'array' => 'The :attribute must contain :size items.',
140 | 'file' => 'The :attribute must be :size kilobytes.',
141 | 'numeric' => 'The :attribute must be :size.',
142 | 'string' => 'The :attribute must be :size characters.',
143 | ],
144 | 'starts_with' => 'The :attribute must start with one of the following: :values.',
145 | 'string' => 'The :attribute must be a string.',
146 | 'timezone' => 'The :attribute must be a valid timezone.',
147 | 'unique' => 'The :attribute has already been taken.',
148 | 'uploaded' => 'The :attribute failed to upload.',
149 | 'uppercase' => 'The :attribute must be uppercase.',
150 | 'url' => 'The :attribute must be a valid URL.',
151 | 'ulid' => 'The :attribute must be a valid ULID.',
152 | 'uuid' => 'The :attribute must be a valid UUID.',
153 |
154 | /*
155 | |--------------------------------------------------------------------------
156 | | Custom Validation Language Lines
157 | |--------------------------------------------------------------------------
158 | |
159 | | Here you may specify custom validation messages for attributes using the
160 | | convention "attribute.rule" to name the lines. This makes it quick to
161 | | specify a specific custom language line for a given attribute rule.
162 | |
163 | */
164 |
165 | 'custom' => [
166 | 'attribute-name' => [
167 | 'rule-name' => 'custom-message',
168 | ],
169 | ],
170 |
171 | /*
172 | |--------------------------------------------------------------------------
173 | | Custom Validation Attributes
174 | |--------------------------------------------------------------------------
175 | |
176 | | The following language lines are used to swap our attribute placeholder
177 | | with something more reader friendly such as "E-Mail Address" instead
178 | | of "email". This simply helps us make our message more expressive.
179 | |
180 | */
181 |
182 | 'attributes' => [],
183 |
184 | ];
185 |
--------------------------------------------------------------------------------
/resources/views/welcome.blade.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Laravel
8 |
9 |
10 |
11 |
12 |
13 |
16 |
17 |
22 |
23 |
24 |
58 | Laravel has wonderful, thorough documentation covering every aspect of the framework. Whether you are new to the framework or have previous experience with Laravel, we recommend reading all of the documentation from beginning to end.
59 |
71 | Laracasts offers thousands of video tutorials on Laravel, PHP, and JavaScript development. Check them out, see for yourself, and massively level up your development skills in the process.
72 |
84 | Laravel News is a community driven portal and newsletter aggregating all of the latest and most important news in the Laravel ecosystem, including new package releases and tutorials.
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
Vibrant Ecosystem
93 |
94 |
95 |
96 |
97 | Laravel's robust library of first-party tools and libraries, such as Forge, Vapor, Nova, and Envoyer help you take your projects to the next level. Pair them with powerful open source libraries like Cashier, Dusk, Echo, Horizon, Sanctum, Telescope, and more.
98 |