generator-folklore 3.0.5 → 3.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (135) hide show
  1. package/lib/generators/build/index.js +1 -1
  2. package/lib/generators/eslint/index.js +1 -1
  3. package/lib/generators/intl/index.js +93 -0
  4. package/lib/generators/laravel-mediatheque/index.js +151 -0
  5. package/lib/generators/laravel-mediatheque/instructions/ServiceProvider.php +26 -0
  6. package/lib/generators/laravel-mediatheque/templates/app/Models/Media.php +9 -0
  7. package/lib/generators/laravel-mediatheque/templates/app/Models/MediaFile.php +9 -0
  8. package/lib/generators/laravel-panneau/index.js +89 -28
  9. package/lib/generators/laravel-panneau/instructions/ServiceProvider.php +21 -0
  10. package/lib/generators/laravel-panneau/instructions/config.php +13 -0
  11. package/lib/generators/laravel-panneau/templates/app/Contracts/Repositories/Pages.php +19 -0
  12. package/lib/generators/laravel-panneau/templates/app/Contracts/Resources/Blocks/Image.php +15 -0
  13. package/lib/generators/laravel-panneau/templates/app/Contracts/Resources/Blocks/Text.php +12 -0
  14. package/lib/generators/laravel-panneau/templates/app/Contracts/Resources/Page.php +10 -0
  15. package/lib/generators/laravel-panneau/templates/app/Contracts/Resources/Pages/Home.php +9 -0
  16. package/lib/generators/laravel-panneau/templates/app/Http/Resources/BlockResource.php +37 -0
  17. package/lib/generators/laravel-panneau/templates/app/Http/Resources/BlocksCollection.php +8 -0
  18. package/lib/generators/laravel-panneau/templates/app/Http/Resources/PageResource.php +47 -0
  19. package/lib/generators/laravel-panneau/templates/app/Http/Resources/PagesCollection.php +10 -0
  20. package/lib/generators/laravel-panneau/templates/app/Models/Block.php +4 -13
  21. package/lib/generators/laravel-panneau/templates/app/Models/Page.php +3 -60
  22. package/lib/generators/laravel-panneau/templates/app/Panneau/Composers/AppComposer.php +50 -0
  23. package/lib/generators/laravel-panneau/templates/app/{Schemas → Panneau}/Fields/.gitkeep +0 -0
  24. package/lib/generators/laravel-panneau/templates/app/Panneau/Http/Controllers/AccountController.php +41 -0
  25. package/lib/generators/laravel-panneau/templates/app/Panneau/Http/Controllers/Controller.php +19 -0
  26. package/lib/generators/laravel-panneau/templates/app/Panneau/Http/Controllers/HomeController.php +16 -0
  27. package/lib/generators/laravel-panneau/templates/app/Panneau/Http/Controllers/PagesController.php +24 -0
  28. package/lib/generators/laravel-panneau/templates/app/Panneau/Http/Controllers/UploadController.php +27 -0
  29. package/lib/generators/laravel-panneau/templates/app/Panneau/Http/Controllers/UsersController.php +32 -0
  30. package/lib/generators/laravel-panneau/templates/app/Panneau/Http/Requests/AccountUpdateRequest.php +29 -0
  31. package/lib/generators/laravel-panneau/templates/app/Panneau/Http/Requests/UploadRequest.php +29 -0
  32. package/lib/generators/laravel-panneau/templates/app/Panneau/Http/Resources/BlockResource.php +39 -0
  33. package/lib/generators/laravel-panneau/templates/app/Panneau/Http/Resources/BlocksCollection.php +10 -0
  34. package/lib/generators/laravel-panneau/templates/app/Panneau/Http/Resources/PageResource.php +56 -0
  35. package/lib/generators/laravel-panneau/templates/app/Panneau/Http/Resources/PagesCollection.php +10 -0
  36. package/lib/generators/laravel-panneau/templates/app/Panneau/Http/Resources/UserResource.php +24 -0
  37. package/lib/generators/laravel-panneau/templates/app/Panneau/Http/Resources/UsersCollection.php +10 -0
  38. package/lib/generators/laravel-panneau/templates/app/Panneau/PanneauServiceProvider.php +74 -0
  39. package/lib/generators/laravel-panneau/templates/app/Panneau/Policies/PanneauPolicy.php +32 -0
  40. package/lib/generators/laravel-panneau/templates/app/Panneau/Resources/Blocks/ImageBlock.php +30 -0
  41. package/lib/generators/laravel-panneau/templates/app/Panneau/Resources/Blocks/TextBlock.php +28 -0
  42. package/lib/generators/laravel-panneau/templates/app/Panneau/Resources/Blocks.php +45 -0
  43. package/lib/generators/laravel-panneau/templates/app/Panneau/Resources/Pages/Page.php +28 -0
  44. package/lib/generators/laravel-panneau/templates/app/Panneau/Resources/Pages.php +92 -0
  45. package/lib/generators/laravel-panneau/templates/app/Panneau/Resources/Users.php +57 -0
  46. package/lib/generators/laravel-panneau/templates/app/Repositories/Pages.php +42 -0
  47. package/lib/generators/laravel-panneau/templates/app/Resources/Blocks/ImageBlock.php +27 -0
  48. package/lib/generators/laravel-panneau/templates/app/Resources/Blocks/TextBlock.php +19 -0
  49. package/lib/generators/laravel-panneau/templates/app/Resources/Page.php +10 -0
  50. package/lib/generators/laravel-panneau/templates/app/Resources/Pages/HomePage.php +10 -0
  51. package/lib/generators/laravel-panneau/templates/app.blade.php +8 -0
  52. package/lib/generators/laravel-panneau/templates/config.php +29 -0
  53. package/lib/generators/laravel-panneau/templates/index.js +32 -0
  54. package/lib/generators/laravel-panneau/templates/lang/en/panneau.php +66 -0
  55. package/lib/generators/laravel-panneau/templates/lang/fr/panneau.php +66 -0
  56. package/lib/generators/laravel-panneau/templates/layout.blade.php +17 -48
  57. package/lib/generators/laravel-panneau/templates/resources/assets/js/components/Panneau.jsx +68 -0
  58. package/lib/generators/laravel-panneau/templates/resources/assets/js/components/panneau/fields/PageSlug.jsx +68 -0
  59. package/lib/generators/laravel-panneau/templates/resources/assets/js/components/panneau/fields/PageSlugLocalized.jsx +43 -0
  60. package/lib/generators/laravel-panneau/templates/resources/assets/js/components/panneau/fields/index.js +2 -0
  61. package/lib/generators/laravel-panneau/templates/resources/assets/styles/panneau.scss +2 -0
  62. package/lib/generators/laravel-panneau/templates/routes.php +30 -0
  63. package/lib/generators/laravel-project/index.js +519 -0
  64. package/lib/generators/laravel-project/templates/env +41 -0
  65. package/lib/generators/laravel-project/templates/laravel/app/Composers/AppComposer.php +48 -0
  66. package/lib/generators/laravel-project/templates/laravel/app/Composers/IntlComposer.php +10 -0
  67. package/lib/generators/laravel-project/templates/laravel/app/Composers/MetaComposer.php +48 -0
  68. package/lib/generators/laravel-project/templates/laravel/app/Composers/RoutesComposer.php +19 -0
  69. package/lib/generators/laravel-project/templates/laravel/app/Contracts/Repositories/Users.php +17 -0
  70. package/lib/generators/laravel-project/templates/laravel/app/Contracts/Resources/User.php +10 -0
  71. package/lib/generators/laravel-project/templates/laravel/app/Http/Controllers/HomeController.php +18 -0
  72. package/lib/generators/laravel-project/templates/laravel/app/Http/Middleware/TrustProxies.php +28 -0
  73. package/lib/generators/laravel-project/templates/laravel/app/Http/Resources/UserResource.php +21 -0
  74. package/lib/generators/laravel-project/templates/laravel/app/Models/User.php +20 -0
  75. package/lib/generators/laravel-project/templates/laravel/app/Providers/AppServiceProvider.php +120 -0
  76. package/lib/generators/laravel-project/templates/laravel/app/Providers/RouteServiceProvider.php +64 -0
  77. package/lib/generators/laravel-project/templates/laravel/app/Providers/ViewServiceProvider.php +33 -0
  78. package/lib/generators/laravel-project/templates/laravel/app/Repositories/Users.php +37 -0
  79. package/lib/generators/laravel-project/templates/laravel/app/Resources/User.php +11 -0
  80. package/lib/generators/laravel-project/templates/laravel/config/app.php +216 -0
  81. package/lib/generators/laravel-project/templates/laravel/config/auth.php +116 -0
  82. package/lib/generators/laravel-project/templates/laravel/config/image.php +204 -0
  83. package/lib/generators/laravel-project/templates/laravel/config/services.php +39 -0
  84. package/lib/generators/laravel-project/templates/laravel/lang/en/content.php +5 -0
  85. package/lib/generators/laravel-project/templates/laravel/lang/en/errors.php +17 -0
  86. package/lib/generators/laravel-project/templates/laravel/lang/en/meta.php +11 -0
  87. package/lib/generators/laravel-project/templates/laravel/lang/en/routes.php +4 -0
  88. package/lib/generators/laravel-project/templates/laravel/lang/fr/auth.php +19 -0
  89. package/lib/generators/laravel-project/templates/laravel/lang/fr/content.php +5 -0
  90. package/lib/generators/laravel-project/templates/laravel/lang/fr/errors.php +17 -0
  91. package/lib/generators/laravel-project/templates/laravel/lang/fr/meta.php +11 -0
  92. package/lib/generators/laravel-project/templates/laravel/lang/fr/pagination.php +19 -0
  93. package/lib/generators/laravel-project/templates/laravel/lang/fr/passwords.php +22 -0
  94. package/lib/generators/laravel-project/templates/laravel/lang/fr/routes.php +12 -0
  95. package/lib/generators/laravel-project/templates/laravel/lang/fr/validation.php +146 -0
  96. package/lib/generators/laravel-project/templates/laravel/resources/assets/fonts/.gitkeep +0 -0
  97. package/lib/generators/laravel-project/templates/laravel/resources/assets/img/.gitkeep +0 -0
  98. package/lib/generators/laravel-project/templates/laravel/resources/assets/img/folklore.png +0 -0
  99. package/lib/generators/laravel-project/templates/laravel/resources/views/analytics/body.blade.php +3 -0
  100. package/lib/generators/laravel-project/templates/laravel/resources/views/analytics/gpt.blade.php +16 -0
  101. package/lib/generators/laravel-project/templates/laravel/resources/views/analytics/head.blade.php +1 -0
  102. package/lib/generators/laravel-project/templates/laravel/resources/views/app.blade.php +8 -0
  103. package/lib/generators/laravel-project/templates/laravel/resources/views/errors/401.blade.php +8 -0
  104. package/lib/generators/laravel-project/templates/laravel/resources/views/errors/403.blade.php +8 -0
  105. package/lib/generators/laravel-project/templates/laravel/resources/views/errors/404.blade.php +8 -0
  106. package/lib/generators/laravel-project/templates/laravel/resources/views/errors/500.blade.php +8 -0
  107. package/lib/generators/laravel-project/templates/laravel/resources/views/layout.blade.php +33 -0
  108. package/lib/generators/laravel-project/templates/laravel/resources/views/meta/all.blade.php +4 -0
  109. package/lib/generators/laravel-project/templates/laravel/resources/views/meta/base.blade.php +11 -0
  110. package/lib/generators/laravel-project/templates/laravel/resources/views/meta/facebook.blade.php +4 -0
  111. package/lib/generators/laravel-project/templates/laravel/resources/views/meta/opengraph.blade.php +9 -0
  112. package/lib/generators/laravel-project/templates/laravel/resources/views/meta/twitter.blade.php +5 -0
  113. package/lib/generators/laravel-project/templates/laravel/routes/web.php +12 -0
  114. package/lib/generators/prettier/index.js +1 -1
  115. package/lib/generators/react-app/index.js +2 -2
  116. package/lib/generators/react-app/templates/src/components/App.jsx +3 -2
  117. package/lib/generators/react-app/templates/src/components/pages/Error.jsx +2 -2
  118. package/lib/generators/stylelint/index.js +1 -1
  119. package/lib/lib/generator.js +9 -0
  120. package/package.json +5 -4
  121. package/lib/generators/laravel-panneau/templates/_composer.json +0 -6
  122. package/lib/generators/laravel-panneau/templates/_package.json +0 -11
  123. package/lib/generators/laravel-panneau/templates/app/Http/Controllers/Panneau/HomeController.php +0 -14
  124. package/lib/generators/laravel-panneau/templates/app/Http/Controllers/Panneau/PagesController.php +0 -11
  125. package/lib/generators/laravel-panneau/templates/app/Models/Mediatheque/File.php +0 -13
  126. package/lib/generators/laravel-panneau/templates/app/Models/Mediatheque/Picture.php +0 -13
  127. package/lib/generators/laravel-panneau/templates/app/Models/Mediatheque/Video.php +0 -34
  128. package/lib/generators/laravel-panneau/templates/app/Providers/PanneauServiceProvider.php +0 -23
  129. package/lib/generators/laravel-panneau/templates/app/Reducers/SlugExtractReducer.php +0 -18
  130. package/lib/generators/laravel-panneau/templates/app/Resources/Pages.php +0 -54
  131. package/lib/generators/laravel-panneau/templates/app/Schemas/Blocks/Base.php +0 -22
  132. package/lib/generators/laravel-panneau/templates/app/Schemas/Bubbles/Base.php +0 -22
  133. package/lib/generators/laravel-panneau/templates/app/Schemas/Pages/Base.php +0 -36
  134. package/lib/generators/laravel-panneau/templates/resources/lang/en/panneau.php +0 -12
  135. package/lib/generators/laravel-panneau/templates/resources/lang/fr/panneau.php +0 -12
@@ -0,0 +1,116 @@
1
+ <?php
2
+
3
+ return [
4
+
5
+ /*
6
+ |--------------------------------------------------------------------------
7
+ | Authentication Defaults
8
+ |--------------------------------------------------------------------------
9
+ |
10
+ | This option controls the default authentication "guard" and password
11
+ | reset options for your application. You may change these defaults
12
+ | as required, but they're a perfect start for most applications.
13
+ |
14
+ */
15
+
16
+ 'defaults' => [
17
+ 'guard' => 'web',
18
+ 'passwords' => 'users',
19
+ ],
20
+
21
+ /*
22
+ |--------------------------------------------------------------------------
23
+ | Authentication Guards
24
+ |--------------------------------------------------------------------------
25
+ |
26
+ | Next, you may define every authentication guard for your application.
27
+ | Of course, a great default configuration has been defined for you
28
+ | here which uses session storage and the Eloquent user provider.
29
+ |
30
+ | All authentication drivers have a user provider. This defines how the
31
+ | users are actually retrieved out of your database or other storage
32
+ | mechanisms used by this application to persist your user's data.
33
+ |
34
+ | Supported: "session"
35
+ |
36
+ */
37
+
38
+ 'guards' => [
39
+ 'web' => [
40
+ 'driver' => 'session',
41
+ 'provider' => 'users',
42
+ ],
43
+ ],
44
+
45
+ /*
46
+ |--------------------------------------------------------------------------
47
+ | User Providers
48
+ |--------------------------------------------------------------------------
49
+ |
50
+ | All authentication drivers have a user provider. This defines how the
51
+ | users are actually retrieved out of your database or other storage
52
+ | mechanisms used by this application to persist your user's data.
53
+ |
54
+ | If you have multiple user tables or models you may configure multiple
55
+ | sources which represent each model / table. These sources may then
56
+ | be assigned to any extra authentication guards you have defined.
57
+ |
58
+ | Supported: "database", "eloquent"
59
+ |
60
+ */
61
+
62
+ 'providers' => [
63
+ 'users' => [
64
+ 'driver' => 'repository',
65
+ 'repository' => Folklore\Contracts\Repositories\Users::class,
66
+ ],
67
+
68
+ // 'users' => [
69
+ // 'driver' => 'eloquent',
70
+ // 'model' => App\Models\User::class,
71
+ // ],
72
+
73
+ // 'users' => [
74
+ // 'driver' => 'database',
75
+ // 'table' => 'users',
76
+ // ],
77
+ ],
78
+
79
+ /*
80
+ |--------------------------------------------------------------------------
81
+ | Resetting Passwords
82
+ |--------------------------------------------------------------------------
83
+ |
84
+ | You may specify multiple password reset configurations if you have more
85
+ | than one user table or model in the application and you want to have
86
+ | separate password reset settings based on the specific user types.
87
+ |
88
+ | The expire time is the number of minutes that each reset token will be
89
+ | considered valid. This security feature keeps tokens short-lived so
90
+ | they have less time to be guessed. You may change this as needed.
91
+ |
92
+ */
93
+
94
+ 'passwords' => [
95
+ 'users' => [
96
+ 'provider' => 'users',
97
+ 'table' => 'password_resets',
98
+ 'expire' => 60,
99
+ 'throttle' => 60,
100
+ ],
101
+ ],
102
+
103
+ /*
104
+ |--------------------------------------------------------------------------
105
+ | Password Confirmation Timeout
106
+ |--------------------------------------------------------------------------
107
+ |
108
+ | Here you may define the amount of seconds before a password confirmation
109
+ | times out and the user is prompted to re-enter their password via the
110
+ | confirmation screen. By default, the timeout lasts for three hours.
111
+ |
112
+ */
113
+
114
+ 'password_timeout' => 10800,
115
+
116
+ ];
@@ -0,0 +1,204 @@
1
+ <?php
2
+
3
+ return [
4
+
5
+ /*
6
+ |--------------------------------------------------------------------------
7
+ | Image sizes
8
+ |--------------------------------------------------------------------------
9
+ */
10
+ 'sizes' => [
11
+ [
12
+ 'id' => 'original',
13
+ ],
14
+ [
15
+ 'id' => 'thumbnail',
16
+ 'width' => 200,
17
+ 'height' => 200,
18
+ ],
19
+ [
20
+ 'id' => 'small',
21
+ 'maxWidth' => 500,
22
+ 'maxHeight' => 500,
23
+ ],
24
+ [
25
+ 'id' => 'medium',
26
+ 'maxWidth' => 800,
27
+ 'maxHeight' => 800,
28
+ ],
29
+ [
30
+ 'id' => 'large',
31
+ 'maxWidth' => 1600,
32
+ 'maxHeight' => 1600,
33
+ ],
34
+ ],
35
+
36
+ /*
37
+ |--------------------------------------------------------------------------
38
+ | Image Filters
39
+ |--------------------------------------------------------------------------
40
+ |
41
+ | The list of filters you can use when making an image or generating an url.
42
+ | There is some built-in filters, and you can add or replace any. It is also
43
+ | possible to declare a filter with an array or a closure instead of a Filter
44
+ | Class.
45
+ |
46
+ */
47
+ 'filters' => [
48
+ 'blur' => \Folklore\Image\Filters\Blur::class,
49
+ 'colorize' => \Folklore\Image\Filters\Colorize::class,
50
+ 'gamma' => \Folklore\Image\Filters\Gamma::class,
51
+ 'grayscale' => \Folklore\Image\Filters\Grayscale::class,
52
+ 'interlace' => \Folklore\Image\Filters\Interlace::class,
53
+ 'negative' => \Folklore\Image\Filters\Negative::class,
54
+ 'rotate' => \Folklore\Image\Filters\Rotate::class,
55
+ 'resize' => \Folklore\Image\Filters\Resize::class
56
+ ],
57
+
58
+ /*
59
+ |--------------------------------------------------------------------------
60
+ | Default Source
61
+ |--------------------------------------------------------------------------
62
+ |
63
+ | This option define the default source to be used by the Image facade. The
64
+ | source determine where the image files are read and saved.
65
+ |
66
+ */
67
+ 'source' => 'public',
68
+
69
+ /*
70
+ |--------------------------------------------------------------------------
71
+ | Sources
72
+ |--------------------------------------------------------------------------
73
+ |
74
+ | The list of sources where you store images.
75
+ |
76
+ | Supported driver: "local", "filesystem"
77
+ |
78
+ */
79
+ 'sources' => [
80
+
81
+ 'public' => [
82
+ // The local driver use a local path on the machine.
83
+ 'driver' => 'local',
84
+
85
+ // The path where the images are stored.
86
+ 'path' => public_path()
87
+ ],
88
+
89
+ 'cloud' => [
90
+ // The filesystem driver lets you use the filesystem from laravel.
91
+ 'driver' => 'filesystem',
92
+
93
+ // The filesystem disk where the images are stored.
94
+ 'disk' => 'public',
95
+
96
+ // The path on the disk where the images are stored. If set to null,
97
+ // it will start from the root.
98
+ 'path' => null,
99
+
100
+ // Cache the file on local machine. It can be useful for remote files.
101
+ 'cache' => true,
102
+
103
+ // The path where you want to put cached files
104
+ 'cache_path' => storage_path('image/cache')
105
+ ]
106
+
107
+ ],
108
+
109
+ /*
110
+ |--------------------------------------------------------------------------
111
+ | URL Generator
112
+ |--------------------------------------------------------------------------
113
+ |
114
+ | The URL Generator configuration is used when generating an image url
115
+ | and by the router to generate a pattern for catching image requests.
116
+ | These are the defaults values and you can overide it in each routes or
117
+ | when generating an url using the `pattern` parameter.
118
+ |
119
+ */
120
+ 'url' => [
121
+ // The format of the url that will be generated. The `{filters}` placeholder
122
+ // will be replaced by the filters according to the `filters_format`.
123
+ 'format' => '{dirname}/{basename}{filters}.{extension}',
124
+
125
+ // The format of the filters that will replace `{filters}` in the
126
+ // url `format` above. The `{filter}` placeholder will be replaced by
127
+ // each filter according to the `filter_format` and joined
128
+ // by the `filter_separator`.
129
+ 'filters_format' => '-filters({filter})',
130
+
131
+ // The format of a filter.
132
+ 'filter_format' => '{key}({value})',
133
+
134
+ // The separator for each filter
135
+ 'filter_separator' => '-',
136
+
137
+ // This is the regex that will replace any placeholders in the option 'format'.
138
+ // They are used when the route pattern is generated and added to the
139
+ // Laravel Router to match image request.
140
+ 'placeholders_patterns' => [
141
+ 'host' => '(.*?)?',
142
+ 'dirname' => '(.*?)?',
143
+ 'basename' => '([^\/\.]+?)',
144
+ 'filename' => '([^\/]+)',
145
+ 'extension' => '(jpeg|jpg|gif|png)',
146
+ ]
147
+ ],
148
+
149
+ /*
150
+ |--------------------------------------------------------------------------
151
+ | Routes
152
+ |--------------------------------------------------------------------------
153
+ |
154
+ | Default configuration for image routes. See routes/image.php
155
+ |
156
+ */
157
+ 'routes' => [
158
+ // Path to the routes file that will be automatically loaded. Set to null
159
+ // to prevent auto-loading of routes.
160
+ 'map' => base_path('routes/images.php'),
161
+
162
+ // Default domain for routes
163
+ 'domain' => null,
164
+
165
+ // Default namespace for controller
166
+ 'namespace' => null,
167
+
168
+ // Default middlewares for routes
169
+ 'middleware' => [],
170
+
171
+ // The controller serving the images
172
+ 'controller' => '\Folklore\Image\Http\ImageController@serve',
173
+
174
+ // The name of the pattern that will be added to the Laravel Router.
175
+ 'pattern_name' => 'image_pattern',
176
+
177
+ // The middleware used when a route as `cache` enabled
178
+ 'cache_middleware' => 'image.middleware.cache'
179
+ ],
180
+
181
+ /*
182
+ |--------------------------------------------------------------------------
183
+ | Image Driver
184
+ |--------------------------------------------------------------------------
185
+ |
186
+ | This option controls the default image "driver" used by Imagine library
187
+ | to manipulate images.
188
+ |
189
+ | Supported: "gd", "imagick", "gmagick"
190
+ |
191
+ */
192
+ 'driver' => 'gd',
193
+
194
+ /*
195
+ |--------------------------------------------------------------------------
196
+ | Memory limit
197
+ |--------------------------------------------------------------------------
198
+ |
199
+ | When manipulating an image, the memory limit is increased to this value
200
+ |
201
+ */
202
+ 'memory_limit' => '128M',
203
+
204
+ ];
@@ -0,0 +1,39 @@
1
+ <?php
2
+
3
+ return [
4
+
5
+ /*
6
+ |--------------------------------------------------------------------------
7
+ | Third Party Services
8
+ |--------------------------------------------------------------------------
9
+ |
10
+ | This file is for storing the credentials for third party services such
11
+ | as Mailgun, Postmark, AWS and more. This file provides the de facto
12
+ | location for this type of information, allowing packages to have
13
+ | a conventional file to locate the various service credentials.
14
+ |
15
+ */
16
+
17
+ 'mailgun' => [
18
+ 'domain' => env('MAILGUN_DOMAIN'),
19
+ 'secret' => env('MAILGUN_SECRET'),
20
+ 'endpoint' => env('MAILGUN_ENDPOINT', 'api.mailgun.net'),
21
+ 'scheme' => 'https',
22
+ ],
23
+
24
+ 'postmark' => [
25
+ 'token' => env('POSTMARK_TOKEN'),
26
+ ],
27
+
28
+ 'ses' => [
29
+ 'key' => env('AWS_ACCESS_KEY_ID'),
30
+ 'secret' => env('AWS_SECRET_ACCESS_KEY'),
31
+ 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
32
+ ],
33
+
34
+ 'google' => [
35
+ 'tagmanager_id' => env('GOOGLE_TAGMANAGER_ID'),
36
+ 'analytics_id' => env('GOOGLE_ANALYTICS_ID'),
37
+ ],
38
+
39
+ ];
@@ -0,0 +1,17 @@
1
+ <?php
2
+
3
+ return [
4
+ 'title_401' => 'Error 401',
5
+ 'description_401' => 'You are not authorized to access this page.',
6
+
7
+ 'title_403' => 'Error 403',
8
+ 'description_403' => 'Access to this page is forbidden',
9
+
10
+ 'title_404' => 'Error 404',
11
+ 'description_404' => 'This page doesn’t exists',
12
+
13
+ 'title_500' => 'Error 500',
14
+ 'description_500' => 'There was an error',
15
+
16
+ 'goto_home' => 'Go to home',
17
+ ];
@@ -0,0 +1,11 @@
1
+ <?php
2
+
3
+ return [
4
+ 'title' => 'Folklore',
5
+ 'description' => '',
6
+
7
+ 'title_401' => 'Not authorized',
8
+ 'title_403' => 'Forbidden',
9
+ 'title_404' => 'Page not found',
10
+ 'title_500' => 'Error'
11
+ ];
@@ -0,0 +1,19 @@
1
+ <?php
2
+
3
+ return [
4
+
5
+ /*
6
+ |--------------------------------------------------------------------------
7
+ | Authentication Language Lines
8
+ |--------------------------------------------------------------------------
9
+ |
10
+ | The following language lines are used during authentication for various
11
+ | messages that we need to display to the user. You are free to modify
12
+ | these language lines according to your application's requirements.
13
+ |
14
+ */
15
+
16
+ 'failed' => 'Les informations de connexion sont invalides.',
17
+ 'throttle' => 'Vous avez fait trop de tentatives de connexion. Réessayez dans :seconds secondes.',
18
+
19
+ ];
@@ -0,0 +1,17 @@
1
+ <?php
2
+
3
+ return [
4
+ 'title_401' => 'Accès non-autorisé',
5
+ 'description_401' => 'Vous n’êtes pas autorisé à accéder à cette page.',
6
+
7
+ 'title_403' => 'Accès interdit',
8
+ 'description_403' => 'Cette page n’est pas accessible.',
9
+
10
+ 'title_404' => 'Page non-trouvée',
11
+ 'description_404' => 'Cette page n’existe pas.',
12
+
13
+ 'title_500' => 'Erreur',
14
+ 'description_500' => 'Il s’est produit une erreur avec votre requête.',
15
+
16
+ 'goto_home' => 'Aller à la page d’accueil',
17
+ ];
@@ -0,0 +1,11 @@
1
+ <?php
2
+
3
+ return [
4
+ 'title' => 'Folklore',
5
+ 'description' => '',
6
+
7
+ 'title_401' => 'Accès non-autorisé',
8
+ 'title_403' => 'Accès interdit',
9
+ 'title_404' => 'Page non-trouvée',
10
+ 'title_500' => 'Erreur'
11
+ ];
@@ -0,0 +1,19 @@
1
+ <?php
2
+
3
+ return [
4
+
5
+ /*
6
+ |--------------------------------------------------------------------------
7
+ | Pagination Language Lines
8
+ |--------------------------------------------------------------------------
9
+ |
10
+ | The following language lines are used by the paginator library to build
11
+ | the simple pagination links. You are free to change them to anything
12
+ | you want to customize your views to better match your application.
13
+ |
14
+ */
15
+
16
+ 'previous' => '&laquo; Précédent',
17
+ 'next' => 'Suivant &raquo;',
18
+
19
+ ];
@@ -0,0 +1,22 @@
1
+ <?php
2
+
3
+ return [
4
+
5
+ /*
6
+ |--------------------------------------------------------------------------
7
+ | Password Reset Language Lines
8
+ |--------------------------------------------------------------------------
9
+ |
10
+ | The following language lines are the default lines which match reasons
11
+ | that are given by the password broker for a password update attempt
12
+ | has failed, such as for an invalid token or invalid new password.
13
+ |
14
+ */
15
+
16
+ 'password' => 'Le mot de passe doit contenir au minimum 6 caractères et être identique à la confirmation',
17
+ 'reset' => 'Votre mot de passe a été réinitialisé',
18
+ 'sent' => 'Nous vous avons envoyé un courriel pour réinitialiser votre mot de passe',
19
+ 'token' => 'Ce lien est invalide',
20
+ 'user' => 'Cette adresse courriel est invalide',
21
+
22
+ ];
@@ -0,0 +1,12 @@
1
+ <?php
2
+
3
+ return [
4
+ 'login' => 'connexion',
5
+ 'logout' => 'deconnexion',
6
+ 'password/reset' => 'mot-de-passe/reinitialiser',
7
+ 'password/email' => 'mot-de-passe/courriel',
8
+ 'password/reset/{token}' => 'mot-de-passe/reinitialiser/{token}',
9
+ 'verify' => 'verification',
10
+ 'verify/resend' => 'verification/reenvoyer',
11
+ 'verify/{id}' => 'verification/{id}',
12
+ ];
@@ -0,0 +1,146 @@
1
+ <?php
2
+
3
+ return [
4
+ /*
5
+ |--------------------------------------------------------------------------
6
+ | Validation Language Lines
7
+ |--------------------------------------------------------------------------
8
+ |
9
+ | The following language lines contain the default error messages used by
10
+ | the validator class. Some of these rules have multiple versions such
11
+ | as the size rules. Feel free to tweak each of these messages.
12
+ |
13
+ */
14
+
15
+ 'accepted' => 'Le champ :attribute doit être accepté.',
16
+ 'active_url' => "Le champ :attribute n'est pas une URL valide.",
17
+ 'after' => 'Le champ :attribute doit être une date postérieure au :date.',
18
+ 'after_or_equal' => 'Le champ :attribute doit être une date postérieure ou égale au :date.',
19
+ 'alpha' => 'Le champ :attribute doit contenir uniquement des lettres.',
20
+ 'alpha_dash' => 'Le champ :attribute doit contenir uniquement des lettres, des chiffres et des tirets.',
21
+ 'alpha_num' => 'Le champ :attribute doit contenir uniquement des chiffres et des lettres.',
22
+ 'array' => 'Le champ :attribute doit être un tableau.',
23
+ 'before' => 'Le champ :attribute doit être une date antérieure au :date.',
24
+ 'before_or_equal' => 'Le champ :attribute doit être une date antérieure ou égale au :date.',
25
+ 'between' => [
26
+ 'numeric' => 'La valeur de :attribute doit être comprise entre :min et :max.',
27
+ 'file' => 'La taille du fichier de :attribute doit être comprise entre :min et :max kilo-octets.',
28
+ 'string' => 'Le texte :attribute doit contenir entre :min et :max caractères.',
29
+ 'array' => 'Le tableau :attribute doit contenir entre :min et :max éléments.',
30
+ ],
31
+ 'boolean' => 'Le champ :attribute doit être vrai ou faux.',
32
+ 'confirmed' => 'Le champ de confirmation :attribute ne correspond pas.',
33
+ 'date' => "Le champ :attribute n'est pas une date valide.",
34
+ 'date_format' => 'Le champ :attribute ne correspond pas au format :format.',
35
+ 'different' => 'Les champs :attribute et :other doivent être différents.',
36
+ 'digits' => 'Le champ :attribute doit contenir :digits chiffres.',
37
+ 'digits_between' => 'Le champ :attribute doit contenir entre :min et :max chiffres.',
38
+ 'dimensions' => "La taille de l'image :attribute n'est pas conforme.",
39
+ 'distinct' => 'Le champ :attribute a une valeur en double.',
40
+ 'email' => 'Le champ :attribute doit être une adresse courriel valide.',
41
+ 'exists' => 'Le champ :attribute sélectionné est invalide.',
42
+ 'file' => 'Le champ :attribute doit être un fichier.',
43
+ 'filled' => 'Le champ :attribute doit avoir une valeur.',
44
+ 'gt' => [
45
+ 'numeric' => 'La valeur de :attribute doit être supérieure à :value.',
46
+ 'file' => 'La taille du fichier de :attribute doit être supérieure à :value kilo-octets.',
47
+ 'string' => 'Le texte :attribute doit contenir plus de :value caractères.',
48
+ 'array' => 'Le tableau :attribute doit contenir plus de :value éléments.',
49
+ ],
50
+ 'gte' => [
51
+ 'numeric' => 'La valeur de :attribute doit être supérieure ou égale à :value.',
52
+ 'file' => 'La taille du fichier de :attribute doit être supérieure ou égale à :value kilo-octets.',
53
+ 'string' => 'Le texte :attribute doit contenir au moins :value caractères.',
54
+ 'array' => 'Le tableau :attribute doit contenir au moins :value éléments.',
55
+ ],
56
+ 'image' => 'Le champ :attribute doit être une image.',
57
+ 'in' => 'Le champ :attribute est invalide.',
58
+ 'in_array' => "Le champ :attribute n'existe pas dans :other.",
59
+ 'integer' => 'Le champ :attribute doit être un entier.',
60
+ 'ip' => 'Le champ :attribute doit être une adresse IP valide.',
61
+ 'ipv4' => 'Le champ :attribute doit être une adresse IPv4 valide.',
62
+ 'ipv6' => 'Le champ :attribute doit être une adresse IPv6 valide.',
63
+ 'json' => 'Le champ :attribute doit être un document JSON valide.',
64
+ 'lt' => [
65
+ 'numeric' => 'La valeur de :attribute doit être inférieure à :value.',
66
+ 'file' => 'La taille du fichier de :attribute doit être inférieure à :value kilo-octets.',
67
+ 'string' => 'Le texte :attribute doit contenir moins de :value caractères.',
68
+ 'array' => 'Le tableau :attribute doit contenir moins de :value éléments.',
69
+ ],
70
+ 'lte' => [
71
+ 'numeric' => 'La valeur de :attribute doit être inférieure ou égale à :value.',
72
+ 'file' => 'La taille du fichier de :attribute doit être inférieure ou égale à :value kilo-octets.',
73
+ 'string' => 'Le texte :attribute doit contenir au plus :value caractères.',
74
+ 'array' => 'Le tableau :attribute doit contenir au plus :value éléments.',
75
+ ],
76
+ 'max' => [
77
+ 'numeric' => 'La valeur de :attribute ne peut être supérieure à :max.',
78
+ 'file' => 'La taille du fichier de :attribute ne peut pas dépasser :max kilo-octets.',
79
+ 'string' => 'Le texte de :attribute ne peut contenir plus de :max caractères.',
80
+ 'array' => 'Le tableau :attribute ne peut contenir plus de :max éléments.',
81
+ ],
82
+ 'mimes' => 'Le champ :attribute doit être un fichier de type : :values.',
83
+ 'mimetypes' => 'Le champ :attribute doit être un fichier de type : :values.',
84
+ 'min' => [
85
+ 'numeric' => 'La valeur de :attribute doit être supérieure ou égale à :min.',
86
+ 'file' => 'La taille du fichier de :attribute doit être supérieure à :min kilo-octets.',
87
+ 'string' => 'Le texte :attribute doit contenir au moins :min caractères.',
88
+ 'array' => 'Le tableau :attribute doit contenir au moins :min éléments.',
89
+ ],
90
+ 'not_in' => "Le champ :attribute sélectionné n'est pas valide.",
91
+ 'not_regex' => "Le format du champ :attribute n'est pas valide.",
92
+ 'numeric' => 'Le champ :attribute doit contenir un nombre.',
93
+ 'present' => 'Le champ :attribute doit être présent.',
94
+ 'regex' => 'Le format du champ :attribute est invalide.',
95
+ 'required' => 'Le champ :attribute est obligatoire.',
96
+ 'required_if' => 'Le champ :attribute est obligatoire quand la valeur de :other est :value.',
97
+ 'required_unless' => 'Le champ :attribute est obligatoire sauf si :other est :values.',
98
+ 'required_with' => 'Le champ :attribute est obligatoire quand :values est présent.',
99
+ 'required_with_all' => 'Le champ :attribute est obligatoire quand :values est présent.',
100
+ 'required_without' => "Le champ :attribute est obligatoire quand :values n'est pas présent.",
101
+ 'required_without_all' => "Le champ :attribute est requis quand aucun de :values n'est présent.",
102
+ 'same' => 'Les champs :attribute et :other doivent être identiques.',
103
+ 'size' => [
104
+ 'numeric' => 'La valeur de :attribute doit être :size.',
105
+ 'file' => 'La taille du fichier de :attribute doit être de :size kilo-octets.',
106
+ 'string' => 'Le texte de :attribute doit contenir :size caractères.',
107
+ 'array' => 'Le tableau :attribute doit contenir :size éléments.',
108
+ ],
109
+ 'string' => 'Le champ :attribute doit être une chaîne de caractères.',
110
+ 'timezone' => 'Le champ :attribute doit être un fuseau horaire valide.',
111
+ 'unique' => 'La valeur du champ :attribute est déjà utilisée.',
112
+ 'uploaded' => "Le fichier du champ :attribute n'a pu être téléversé.",
113
+ 'url' => "Le format de l'URL de :attribute n'est pas valide.",
114
+
115
+ /*
116
+ |--------------------------------------------------------------------------
117
+ | Custom Validation Language Lines
118
+ |--------------------------------------------------------------------------
119
+ |
120
+ | Here you may specify custom validation messages for attributes using the
121
+ | convention "attribute.rule" to name the lines. This makes it quick to
122
+ | specify a specific custom language line for a given attribute rule.
123
+ |
124
+ */
125
+
126
+ 'custom' => [
127
+ 'attribute-name' => [
128
+ 'rule-name' => 'custom-message',
129
+ ],
130
+ ],
131
+
132
+ /*
133
+ |--------------------------------------------------------------------------
134
+ | Custom Validation Attributes
135
+ |--------------------------------------------------------------------------
136
+ |
137
+ | The following language lines are used to swap attribute place-holders
138
+ | with something more reader friendly such as E-Mail Address instead
139
+ | of "email". This simply helps us make messages a little cleaner.
140
+ |
141
+ */
142
+
143
+ 'attributes' => [
144
+
145
+ ],
146
+ ];