Compare commits
50 Commits
Author | SHA1 | Date |
---|---|---|
|
33ac5e2f12 | ago%!(EXTRA string=2 days) |
|
45d3e1c948 | ago%!(EXTRA string=2 days) |
|
9338826e7f | ago%!(EXTRA string=2 days) |
|
41dccd395a | ago%!(EXTRA string=2 days) |
|
2385347434 | ago%!(EXTRA string=2 days) |
|
c9dfc0e325 | ago%!(EXTRA string=2 days) |
|
d396470fe5 | ago%!(EXTRA string=2 days) |
|
0939f24dff | ago%!(EXTRA string=3 days) |
|
e43d291bdf | ago%!(EXTRA string=3 days) |
|
a8fb1ee866 | ago%!(EXTRA string=3 days) |
|
5d36ac33c2 | ago%!(EXTRA string=3 days) |
|
20c511ce2b | ago%!(EXTRA string=3 days) |
|
7d8638ccc4 | ago%!(EXTRA string=2 months) |
|
5f6173b1df | ago%!(EXTRA string=2 months) |
|
5962544517 | ago%!(EXTRA string=3 months) |
|
c63e48188d | ago%!(EXTRA string=3 months) |
|
99a595108b | ago%!(EXTRA string=3 months) |
|
bdbb11b96a | ago%!(EXTRA string=3 months) |
|
2defe85c00 | ago%!(EXTRA string=3 months) |
|
2ba82e9c16 | ago%!(EXTRA string=3 months) |
|
2e8316d92c | ago%!(EXTRA string=3 months) |
|
e2316468f4 | ago%!(EXTRA string=3 months) |
|
22f9bf1687 | ago%!(EXTRA string=3 months) |
|
0f4d05e90f | ago%!(EXTRA string=3 months) |
|
f02fc26223 | ago%!(EXTRA string=3 months) |
|
8d5908cbd7 | ago%!(EXTRA string=3 months) |
|
f2cc3be866 | ago%!(EXTRA string=3 months) |
|
b743130e24 | ago%!(EXTRA string=3 months) |
|
7a6ccf97b4 | ago%!(EXTRA string=3 months) |
|
001e12807c | ago%!(EXTRA string=3 months) |
|
2d903684f1 | ago%!(EXTRA string=3 months) |
|
92e4b20b14 | ago%!(EXTRA string=3 months) |
|
17cefcaa30 | ago%!(EXTRA string=3 months) |
|
7d8a1e1450 | ago%!(EXTRA string=3 months) |
|
35be013ea0 | ago%!(EXTRA string=3 months) |
|
e76488335c | ago%!(EXTRA string=3 months) |
|
15b924a7df | ago%!(EXTRA string=3 months) |
|
fbe7d4cf3d | ago%!(EXTRA string=3 months) |
|
20e1eac2f1 | ago%!(EXTRA string=3 months) |
|
eeb47116a5 | ago%!(EXTRA string=3 months) |
|
c8135168ce | ago%!(EXTRA string=3 months) |
|
b1b42c92a2 | ago%!(EXTRA string=3 months) |
|
6feb7858de | ago%!(EXTRA string=3 months) |
|
e5e8960cbf | ago%!(EXTRA string=3 months) |
|
afe651e639 | ago%!(EXTRA string=3 months) |
|
175183e7bd | ago%!(EXTRA string=3 months) |
|
f53d0499d0 | ago%!(EXTRA string=3 months) |
|
248483d8c5 | ago%!(EXTRA string=3 months) |
|
4f17a9135b | ago%!(EXTRA string=3 months) |
|
9a3f2bd563 | ago%!(EXTRA string=7 months) |
@ -0,0 +1,18 @@ |
||||
root = true |
||||
|
||||
[*] |
||||
charset = utf-8 |
||||
end_of_line = lf |
||||
indent_size = 4 |
||||
indent_style = space |
||||
insert_final_newline = true |
||||
trim_trailing_whitespace = true |
||||
|
||||
[*.md] |
||||
trim_trailing_whitespace = false |
||||
|
||||
[*.{yml,yaml}] |
||||
indent_size = 2 |
||||
|
||||
[docker-compose.yml] |
||||
indent_size = 4 |
@ -0,0 +1,87 @@ |
||||
# Replace baslac with the name of your app from .lando.yml |
||||
name: baslac |
||||
recipe: laravel |
||||
config: |
||||
via: nginx |
||||
php: 8.2 |
||||
database: mysql:8.0 |
||||
webroot: public |
||||
services: |
||||
# If you want to manage the MySQL database |
||||
phpmyadmin: |
||||
name: phpmyadmin |
||||
type: phpmyadmin |
||||
# If you want to simulate an S3 storage locally |
||||
# > configure proxy below as well |
||||
minio: |
||||
type: lando |
||||
app_mount: false |
||||
ssl: true |
||||
services: |
||||
image: bitnami/minio |
||||
command: /opt/bitnami/scripts/minio/entrypoint.sh /opt/bitnami/scripts/minio/run.sh |
||||
volumes: |
||||
- minio_data:/bitnami/minio/data |
||||
environment: |
||||
- MINIO_ROOT_USER=minio |
||||
- MINIO_ROOT_PASSWORD=miniosecret |
||||
- MINIO_DEFAULT_BUCKETS=laravel |
||||
volumes: |
||||
minio_data: |
||||
driver: local |
||||
scanner: |
||||
okCodes: |
||||
- 200 |
||||
- 403 |
||||
# If you want to simulate mail sending locally |
||||
# > configure proxy below as well |
||||
mailpit: |
||||
name: mailpit |
||||
type: lando |
||||
app_mount: false |
||||
ssl: true |
||||
sslExpose: false |
||||
services: |
||||
image: axllent/mailpit |
||||
command: /mailpit |
||||
environment: |
||||
- MP_DATABASE=/data/mailpit.db |
||||
volumes: |
||||
- mailpit:/data |
||||
volumes: |
||||
mailpit: |
||||
driver: local |
||||
# If you want to use vite in your Laravel project |
||||
# > remove tooling below if you don't need it |
||||
node: |
||||
name: node |
||||
type: node:18 |
||||
ports: |
||||
- 5173:5173 # check that your port matches the one in vite.config.js |
||||
redis: |
||||
name: redis |
||||
type: redis |
||||
proxy: |
||||
minio: |
||||
- s3-baslac.lndo.site:9000 |
||||
- s3admin-baslac.lndo.site:9001 |
||||
mailpit: |
||||
- mailpit-baslac.lndo.site:8025 |
||||
# if you use node, these below will configure the shortcuts |
||||
# - lando dev => npm run dev in the node container |
||||
# - lando build => npm run build in the node container |
||||
tooling: |
||||
npmi: |
||||
service: node |
||||
cmd: npm install |
||||
dev: |
||||
service: node |
||||
cmd: npm run dev |
||||
build: |
||||
service: node |
||||
cmd: npm run build |
||||
# /!\ The clean operation is not configured by default |
||||
# in the package.json |
||||
clean: |
||||
service: node |
||||
cmd: npm run clean |
@ -0,0 +1,149 @@ |
||||
<?php |
||||
|
||||
namespace App\Http\Controllers; |
||||
|
||||
use App\Models\Album; |
||||
use App\Models\Photo; |
||||
use Illuminate\Http\Request; |
||||
use Illuminate\Support\Facades\Auth; |
||||
use Illuminate\Support\Facades\Storage; |
||||
use Inertia\Inertia; |
||||
use Illuminate\Support\Str; |
||||
|
||||
class AlbumController extends Controller |
||||
{ |
||||
/** |
||||
* Display a listing of the resource. |
||||
*/ |
||||
public function index() |
||||
{ |
||||
$total = Album::count(); |
||||
$pageSize = 12; |
||||
$page = 1; |
||||
return Inertia::render('Album/Index', [ |
||||
"lastPage" => ceil($total / $pageSize), |
||||
"albums" => Album::orderBy("created_at", "DESC")->offset($page * $pageSize - $pageSize)->limit($pageSize)->get()->jsonSerialize(), |
||||
]); |
||||
} |
||||
|
||||
/** |
||||
* Display the specified resource. |
||||
*/ |
||||
public function show(string $id) |
||||
{ |
||||
$album = Album::where("uuid", $id)->first(); |
||||
$total = $album->photos()->count(); |
||||
$pageSize = 12; |
||||
$page = 1; |
||||
return Inertia::render('Album/Show', [ |
||||
"album" => $album->jsonSerialize(), |
||||
"lastPage" => ceil($total / $pageSize), |
||||
"photos" => $album->photos()->orderBy("album_photo.created_at", "DESC")->offset($page * $pageSize - $pageSize)->limit($pageSize)->get()->jsonSerialize() |
||||
]); |
||||
} |
||||
|
||||
public function pages(Request $request) |
||||
{ |
||||
$total = Album::count(); |
||||
$pageSize = 12; |
||||
$page = $request->page ?? 2; |
||||
$page = $request->page <= ceil($total / $pageSize) ? $page : ceil($total / $pageSize); |
||||
return response()->json([ |
||||
"lastPage" => ceil($total / $pageSize), |
||||
"albums" => Album::orderBy("created_at", "DESC")->offset($page * $pageSize - $pageSize)->limit($pageSize)->get()->jsonSerialize(), |
||||
]); |
||||
} |
||||
|
||||
public function photoUuids(Request $request) |
||||
{ |
||||
$album = Album::where("uuid", $request->id)->first(); |
||||
$uuids = []; |
||||
foreach($album->photos as $photo) array_push($uuids, $photo->uuid); |
||||
return response()->json([ |
||||
"uuids" => $uuids, |
||||
]); |
||||
} |
||||
|
||||
public function photoPages(Request $request) |
||||
{ |
||||
$album = Album::where("uuid", $request->id)->first(); |
||||
$total = $album->photos()->count(); |
||||
$pageSize = 12; |
||||
$page = $request->page ?? 2; |
||||
$page = $request->page <= ceil($total / $pageSize) ? $page : ceil($total / $pageSize); |
||||
return response()->json([ |
||||
"lastPage" => ceil($total / $pageSize), |
||||
"photos" => $album->photos()->orderBy("album_photo.created_at", "DESC")->offset($page * $pageSize - $pageSize)->limit($pageSize)->get()->jsonSerialize(), |
||||
]); |
||||
} |
||||
|
||||
public function photoRemove(Request $request) |
||||
{ |
||||
$album = Album::where("uuid", $request->id)->first(); |
||||
$total = $album->photos()->detach(Photo::where("uuid", $request->photoId)->first()); |
||||
return redirect(route("album.show", [ "id" => $album->uuid ]))->with(["message" => "Photo supprimée avec success"]); |
||||
} |
||||
|
||||
/** |
||||
* Store a newly created resource in storage. |
||||
*/ |
||||
public function store(Request $request) |
||||
{ |
||||
$request->validate([ |
||||
"name" => "required|string|max:255", |
||||
"path" => "required|string", |
||||
]); |
||||
|
||||
if(!Storage::disk("s3")->exists($request->path)) |
||||
return redirect()->back()->withErrors(["path" => "Probleme with the file transfert"]); |
||||
|
||||
$uuid = Str::uuid(); |
||||
$path = "albums/" . $uuid . "-" . $request->name . "." . pathinfo($request->path, PATHINFO_EXTENSION); |
||||
Storage::disk("s3")->move($request->path, $path); |
||||
Album::create([ |
||||
"uuid" => $uuid, |
||||
"name" => $request->name, |
||||
"path" => $path, |
||||
"user_id" => Auth::user()->id |
||||
]); |
||||
return redirect(route("album.index"))->with(["message" => "Photo ajouté avec success"]); |
||||
} |
||||
|
||||
public function update(Request $request, string $id) |
||||
{ |
||||
$request->validate([ |
||||
"name" => "required|string|max:255", |
||||
]); |
||||
$album = Album::where("uuid", $request->id)->first(); |
||||
if(!$album) redirect()->back()->withErrors(["uuid" => "Album introuvable" ]); |
||||
$album->update([ |
||||
"name" => $request->name |
||||
]); |
||||
return redirect()->back()->with(["message" => "Album modifié avec success"]); |
||||
} |
||||
|
||||
public function addPhotos(Request $request) |
||||
{ |
||||
$album = Album::where("uuid", $request->id)->first(); |
||||
if(!$album) redirect()->back()->withErrors(["uuid" => "Album introuvable" ]); |
||||
foreach($request->uuids as $uuid) { |
||||
$photo = Photo::where("uuid", $uuid)->first(); |
||||
if(!$photo) redirect()->back()->withErrors(["uuid" => "Photo introuvable" ]); |
||||
$album->photos()->attach($photo); |
||||
} |
||||
return redirect()->back(); |
||||
} |
||||
|
||||
/** |
||||
* Remove the specified resource from storage. |
||||
*/ |
||||
public function destroy(string $id) |
||||
{ |
||||
$album = Album::where("uuid", $id)->first(); |
||||
if(!$album) redirect()->back()->withErrors(["uuid" => "Album introuvable" ]); |
||||
$album->photos()->detach(); |
||||
Storage::disk("s3")->delete($album->path); |
||||
$album->delete(); |
||||
return redirect(route("album.index"))->with(["message" => "Album supprimée avec success"]); |
||||
} |
||||
} |
@ -0,0 +1,52 @@ |
||||
<?php |
||||
|
||||
namespace App\Http\Controllers\Auth; |
||||
|
||||
use App\Http\Controllers\Controller; |
||||
use App\Http\Requests\Auth\LoginRequest; |
||||
use Illuminate\Http\RedirectResponse; |
||||
use Illuminate\Http\Request; |
||||
use Illuminate\Support\Facades\Auth; |
||||
use Illuminate\Support\Facades\Route; |
||||
use Inertia\Inertia; |
||||
use Inertia\Response; |
||||
|
||||
class AuthenticatedSessionController extends Controller |
||||
{ |
||||
/** |
||||
* Display the login view. |
||||
*/ |
||||
public function create(): Response |
||||
{ |
||||
return Inertia::render('Auth/Login', [ |
||||
'canResetPassword' => Route::has('password.request'), |
||||
'status' => session('status'), |
||||
]); |
||||
} |
||||
|
||||
/** |
||||
* Handle an incoming authentication request. |
||||
*/ |
||||
public function store(LoginRequest $request): RedirectResponse |
||||
{ |
||||
$request->authenticate(); |
||||
|
||||
$request->session()->regenerate(); |
||||
|
||||
return redirect()->intended(route('photo.index', absolute: false)); |
||||
} |
||||
|
||||
/** |
||||
* Destroy an authenticated session. |
||||
*/ |
||||
public function destroy(Request $request): RedirectResponse |
||||
{ |
||||
Auth::guard('web')->logout(); |
||||
|
||||
$request->session()->invalidate(); |
||||
|
||||
$request->session()->regenerateToken(); |
||||
|
||||
return redirect('/'); |
||||
} |
||||
} |
@ -0,0 +1,41 @@ |
||||
<?php |
||||
|
||||
namespace App\Http\Controllers\Auth; |
||||
|
||||
use App\Http\Controllers\Controller; |
||||
use Illuminate\Http\RedirectResponse; |
||||
use Illuminate\Http\Request; |
||||
use Illuminate\Support\Facades\Auth; |
||||
use Illuminate\Validation\ValidationException; |
||||
use Inertia\Inertia; |
||||
use Inertia\Response; |
||||
|
||||
class ConfirmablePasswordController extends Controller |
||||
{ |
||||
/** |
||||
* Show the confirm password view. |
||||
*/ |
||||
public function show(): Response |
||||
{ |
||||
return Inertia::render('Auth/ConfirmPassword'); |
||||
} |
||||
|
||||
/** |
||||
* Confirm the user's password. |
||||
*/ |
||||
public function store(Request $request): RedirectResponse |
||||
{ |
||||
if (! Auth::guard('web')->validate([ |
||||
'email' => $request->user()->email, |
||||
'password' => $request->password, |
||||
])) { |
||||
throw ValidationException::withMessages([ |
||||
'password' => __('auth.password'), |
||||
]); |
||||
} |
||||
|
||||
$request->session()->put('auth.password_confirmed_at', time()); |
||||
|
||||
return redirect()->intended(route('photo.index', absolute: false)); |
||||
} |
||||
} |
@ -0,0 +1,24 @@ |
||||
<?php |
||||
|
||||
namespace App\Http\Controllers\Auth; |
||||
|
||||
use App\Http\Controllers\Controller; |
||||
use Illuminate\Http\RedirectResponse; |
||||
use Illuminate\Http\Request; |
||||
|
||||
class EmailVerificationNotificationController extends Controller |
||||
{ |
||||
/** |
||||
* Send a new email verification notification. |
||||
*/ |
||||
public function store(Request $request): RedirectResponse |
||||
{ |
||||
if ($request->user()->hasVerifiedEmail()) { |
||||
return redirect()->intended(route('photo.index', absolute: false)); |
||||
} |
||||
|
||||
$request->user()->sendEmailVerificationNotification(); |
||||
|
||||
return back()->with('status', 'verification-link-sent'); |
||||
} |
||||
} |
@ -0,0 +1,22 @@ |
||||
<?php |
||||
|
||||
namespace App\Http\Controllers\Auth; |
||||
|
||||
use App\Http\Controllers\Controller; |
||||
use Illuminate\Http\RedirectResponse; |
||||
use Illuminate\Http\Request; |
||||
use Inertia\Inertia; |
||||
use Inertia\Response; |
||||
|
||||
class EmailVerificationPromptController extends Controller |
||||
{ |
||||
/** |
||||
* Display the email verification prompt. |
||||
*/ |
||||
public function __invoke(Request $request): RedirectResponse|Response |
||||
{ |
||||
return $request->user()->hasVerifiedEmail() |
||||
? redirect()->intended(route('home', absolute: false)) |
||||
: Inertia::render('Auth/VerifyEmail', ['status' => session('status')]); |
||||
} |
||||
} |
@ -0,0 +1,70 @@ |
||||
<?php |
||||
|
||||
namespace App\Http\Controllers\Auth; |
||||
|
||||
use App\Http\Controllers\Controller; |
||||
use App\Models\User; |
||||
use Carbon\Carbon; |
||||
use DateTime; |
||||
use Illuminate\Auth\Events\PasswordReset; |
||||
use Illuminate\Http\RedirectResponse; |
||||
use Illuminate\Http\Request; |
||||
use Illuminate\Support\Facades\DB; |
||||
use Illuminate\Support\Facades\Hash; |
||||
use Illuminate\Support\Facades\Password; |
||||
use Illuminate\Support\Str; |
||||
use Illuminate\Validation\Rules; |
||||
use Illuminate\Validation\ValidationException; |
||||
use Inertia\Inertia; |
||||
use Inertia\Response; |
||||
|
||||
class NewPasswordController extends Controller |
||||
{ |
||||
/** |
||||
* Display the password reset view. |
||||
*/ |
||||
public function create(Request $request) |
||||
{ |
||||
$reset = DB::table("password_reset_tokens")->where("token", $request->token)->whereDate("created_at", '>=', (new DateTime())->modify('-1 day')->format("Y-m-d H:i:s"))->first(); |
||||
if(!$reset || !$reset->email) return redirect(route("login"))->withErrors(["email" => "Le lien de réinitialisation n'est plus valide ou a été corrompu."]); |
||||
return Inertia::render('Auth/ResetPassword', [ |
||||
'email' => $reset->email, |
||||
'token' => $request->route('token'), |
||||
]); |
||||
} |
||||
|
||||
/** |
||||
* Handle an incoming new password request. |
||||
* |
||||
* @throws \Illuminate\Validation\ValidationException |
||||
*/ |
||||
public function store(Request $request): RedirectResponse |
||||
{ |
||||
$request->validate([ |
||||
'token' => 'required', |
||||
'email' => 'required|email', |
||||
'password' => 'required|confirmed', |
||||
]); |
||||
|
||||
$reset = DB::table("password_reset_tokens") |
||||
->where("token", $request->token) |
||||
->whereDate("created_at", '>=', (new DateTime())->modify('-1 day') |
||||
->format("Y-m-d H:i:s"))->first(); |
||||
|
||||
if(!$reset || !$reset->email) |
||||
return redirect(route("login"))->withErrors(["email" => "Le lien de réinitialisation n'est plus valide ou a été corrompu."]); |
||||
|
||||
User::where("email", $reset->email)->update([ |
||||
'password' => bcrypt($request->password), |
||||
'remember_token' => Str::random(60), |
||||
]); |
||||
DB::table("password_reset_tokens") |
||||
->where("token", $request->token)->delete(); |
||||
|
||||
// If the password was successfully reset, we will redirect the user back to |
||||
// the application's home authenticated view. If there is an error we can |
||||
// redirect them back to where they came from with their error message. |
||||
|
||||
return redirect()->route('login')->with('status', 'Mot de passe réinisialisé succès'); |
||||
} |
||||
} |
@ -0,0 +1,29 @@ |
||||
<?php |
||||
|
||||
namespace App\Http\Controllers\Auth; |
||||
|
||||
use App\Http\Controllers\Controller; |
||||
use Illuminate\Http\RedirectResponse; |
||||
use Illuminate\Http\Request; |
||||
use Illuminate\Support\Facades\Hash; |
||||
use Illuminate\Validation\Rules\Password; |
||||
|
||||
class PasswordController extends Controller |
||||
{ |
||||
/** |
||||
* Update the user's password. |
||||
*/ |
||||
public function update(Request $request): RedirectResponse |
||||
{ |
||||
$validated = $request->validate([ |
||||
'current_password' => ['required', 'current_password'], |
||||
'password' => ['required', Password::defaults(), 'confirmed'], |
||||
]); |
||||
|
||||
$request->user()->update([ |
||||
'password' => Hash::make($validated['password']), |
||||
]); |
||||
|
||||
return back(); |
||||
} |
||||
} |
@ -0,0 +1,50 @@ |
||||
<?php |
||||
|
||||
namespace App\Http\Controllers\Auth; |
||||
|
||||
use App\Http\Controllers\Controller; |
||||
use App\Models\User; |
||||
use App\Utils\Mail; |
||||
use App\Utils\Token; |
||||
use Illuminate\Http\RedirectResponse; |
||||
use Illuminate\Http\Request; |
||||
use Illuminate\Support\Facades\DB; |
||||
use Illuminate\Support\Facades\Password; |
||||
use Illuminate\Validation\ValidationException; |
||||
use Inertia\Inertia; |
||||
use Inertia\Response; |
||||
|
||||
class PasswordResetLinkController extends Controller |
||||
{ |
||||
/** |
||||
* Display the password reset link request view. |
||||
*/ |
||||
public function create(): Response |
||||
{ |
||||
return Inertia::render('Auth/ForgotPassword', [ |
||||
'status' => session('status'), |
||||
]); |
||||
} |
||||
|
||||
/** |
||||
* Handle an incoming password reset link request. |
||||
* |
||||
* @throws \Illuminate\Validation\ValidationException |
||||
*/ |
||||
public function store(Request $request): RedirectResponse |
||||
{ |
||||
$request->validate([ |
||||
"email" => "required|string|email|max:255" |
||||
]); |
||||
$user = User::where("email", $request->email)->firstOrFail(); |
||||
DB::table("password_reset_tokens")->where("email", $user->email)->delete(); |
||||
$token = Token::create($user->email); |
||||
Mail::send((object)[ |
||||
"user" => $user, |
||||
"template" => "email.auth.reset", |
||||
"data" => [ "token" => $token ], |
||||
"subject" => "Mot de passe oublié." |
||||
]); |
||||
return back()->with('status',"Nous vous avons envoyé par email le lien de réinitialisation du mot de passe !"); |
||||
} |
||||
} |
@ -0,0 +1,51 @@ |
||||
<?php |
||||
|
||||
namespace App\Http\Controllers\Auth; |
||||
|
||||
use App\Http\Controllers\Controller; |
||||
use App\Models\User; |
||||
use Illuminate\Auth\Events\Registered; |
||||
use Illuminate\Http\RedirectResponse; |
||||
use Illuminate\Http\Request; |
||||
use Illuminate\Support\Facades\Auth; |
||||
use Illuminate\Support\Facades\Hash; |
||||
use Illuminate\Validation\Rules; |
||||
use Inertia\Inertia; |
||||
use Inertia\Response; |
||||
|
||||
class RegisteredUserController extends Controller |
||||
{ |
||||
/** |
||||
* Display the registration view. |
||||
*/ |
||||
public function create(): Response |
||||
{ |
||||
return Inertia::render('Auth/Register'); |
||||
} |
||||
|
||||
/** |
||||
* Handle an incoming registration request. |
||||
* |
||||
* @throws \Illuminate\Validation\ValidationException |
||||
*/ |
||||
public function store(Request $request): RedirectResponse |
||||
{ |
||||
$request->validate([ |
||||
'name' => 'required|string|max:255', |
||||
'email' => 'required|string|lowercase|email|max:255|unique:'.User::class, |
||||
'password' => ['required', 'confirmed', Rules\Password::defaults()], |
||||
]); |
||||
|
||||
$user = User::create([ |
||||
'name' => $request->name, |
||||
'email' => $request->email, |
||||
'password' => Hash::make($request->password), |
||||
]); |
||||
|
||||
event(new Registered($user)); |
||||
|
||||
Auth::login($user); |
||||
|
||||
return redirect(route('photo.index', absolute: false)); |
||||
} |
||||
} |
@ -0,0 +1,55 @@ |
||||
<?php |
||||
|
||||
namespace App\Http\Controllers\Auth; |
||||
|
||||
use App\Http\Controllers\Controller; |
||||
use App\Models\Entreprise; |
||||
use Laravel\Socialite\Facades\Socialite; |
||||
use App\Models\User; |
||||
use Illuminate\Support\Str; |
||||
use Illuminate\Support\Carbon; |
||||
use Illuminate\Support\Facades\Auth; |
||||
use Exception; |
||||
use Illuminate\Support\Facades\Hash; |
||||
|
||||
class SocialiteController extends Controller |
||||
{ |
||||
protected $providers = [ "google" ]; |
||||
|
||||
public function redirect($provider) |
||||
{ |
||||
if(in_array($provider, $this->providers)) |
||||
{ |
||||
return Socialite::driver($provider)->redirect(); |
||||
} |
||||
return response("", 404); |
||||
} |
||||
|
||||
public function callback($provider) |
||||
{ |
||||
if(in_array($provider, $this->providers)) |
||||
{ |
||||
$user = null; |
||||
try { |
||||
$user = Socialite::driver($provider)->user(); |
||||
} catch(Exception $e) { |
||||
return redirect('/login')->withErrors([ |
||||
"message" => "Erreur durant l'authentification avec " . $provider |
||||
]); |
||||
} |
||||
$email = $user->getEmail(); |
||||
$name = $user->getName(); |
||||
|
||||
$user = User::where("email", $email)->first(); |
||||
if(!$user) |
||||
{ |
||||
return redirect(route("login")); |
||||
} |
||||
|
||||
Auth::login($user); |
||||
if (Auth::check()) return redirect('/'); |
||||
} |
||||
return response("", 404); |
||||
} |
||||
} |
||||
|
@ -0,0 +1,27 @@ |
||||
<?php |
||||
|
||||
namespace App\Http\Controllers\Auth; |
||||
|
||||
use App\Http\Controllers\Controller; |
||||
use Illuminate\Auth\Events\Verified; |
||||
use Illuminate\Foundation\Auth\EmailVerificationRequest; |
||||
use Illuminate\Http\RedirectResponse; |
||||
|
||||
class VerifyEmailController extends Controller |
||||
{ |
||||
/** |
||||
* Mark the authenticated user's email address as verified. |
||||
*/ |
||||
public function __invoke(EmailVerificationRequest $request): RedirectResponse |
||||
{ |
||||
if ($request->user()->hasVerifiedEmail()) { |
||||
return redirect()->intended(route('home', absolute: false)); |
||||
} |
||||
|
||||
if ($request->user()->markEmailAsVerified()) { |
||||
event(new Verified($request->user())); |
||||
} |
||||
|
||||
return redirect()->intended(route('photo.index', absolute: false)); |
||||
} |
||||
} |
@ -0,0 +1,65 @@ |
||||
<?php |
||||
|
||||
namespace App\Http\Controllers; |
||||
|
||||
use App\Models\Document; |
||||
use Illuminate\Http\Request; |
||||
|
||||
class DocumentController extends Controller |
||||
{ |
||||
/** |
||||
* Display a listing of the resource. |
||||
*/ |
||||
public function index() |
||||
{ |
||||
// |
||||
} |
||||
|
||||
/** |
||||
* Show the form for creating a new resource. |
||||
*/ |
||||
public function create() |
||||
{ |
||||
// |
||||
} |
||||
|
||||
/** |
||||
* Store a newly created resource in storage. |
||||
*/ |
||||
public function store(Request $request) |
||||
{ |
||||
// |
||||
} |
||||
|
||||
/** |
||||
* Display the specified resource. |
||||
*/ |
||||
public function show(Document $document) |
||||
{ |
||||
// |
||||
} |
||||
|
||||
/** |
||||
* Show the form for editing the specified resource. |
||||
*/ |
||||
public function edit(Document $document) |
||||
{ |
||||
// |
||||
} |
||||
|
||||
/** |
||||
* Update the specified resource in storage. |
||||
*/ |
||||
public function update(Request $request, Document $document) |
||||
{ |
||||
// |
||||
} |
||||
|
||||
/** |
||||
* Remove the specified resource from storage. |
||||
*/ |
||||
public function destroy(Document $document) |
||||
{ |
||||
// |
||||
} |
||||
} |
@ -0,0 +1,139 @@ |
||||
<?php |
||||
|
||||
namespace App\Http\Controllers; |
||||
|
||||
use App\Models\Photo; |
||||
use Illuminate\Http\Request; |
||||
use Illuminate\Support\Facades\Auth; |
||||
use Illuminate\Support\Facades\Storage; |
||||
use Inertia\Inertia; |
||||
use Illuminate\Support\Str; |
||||
|
||||
class PhotoController extends Controller |
||||
{ |
||||
/** |
||||
* Display a listing of the resource. |
||||
*/ |
||||
public function index(Request $request) |
||||
{ |
||||
$total = Photo::count(); |
||||
$pageSize = 12; |
||||
$page = 1; |
||||
return Inertia::render('Photo/Index', [ |
||||
"lastPage" => ceil($total / $pageSize), |
||||
"photos" => Photo::orderBy("created_at", "DESC")->offset($page * $pageSize - $pageSize)->limit($pageSize)->get()->jsonSerialize(), |
||||
]); |
||||
} |
||||
|
||||
public function pages(Request $request) |
||||
{ |
||||
$pageSize = 12; |
||||
$total = Photo::count(); |
||||
$page = $request->page ?? 2; |
||||
$page = $request->page <= ceil($total / $pageSize) ? $page : ceil($total / $pageSize); |
||||
return response()->json([ |
||||
"lastPage" => ceil($total / $pageSize), |
||||
"photos" => Photo::orderBy("created_at", "DESC")->offset($page * $pageSize - $pageSize)->limit($pageSize)->get()->jsonSerialize(), |
||||
]); |
||||
} |
||||
/** |
||||
* Show the form for creating a new resource. |
||||
*/ |
||||
public function create() |
||||
{ |
||||
return Inertia::render('Photo/Create'); |
||||
} |
||||
|
||||
/** |
||||
* Store a newly created resource in storage. |
||||
*/ |
||||
public function store(Request $request) |
||||
{ |
||||
$request->validate([ |
||||
"name" => "required|string|max:255", |
||||
"path" => "required|string", |
||||
]); |
||||
|
||||
if(!Storage::disk("s3")->exists($request->path)) |
||||
return redirect()->back()->withErrors(["path" => "Probleme with the file transfert"]); |
||||
|
||||
$uuid = Str::uuid(); |
||||
$path = "photos/" . $uuid . "-" . $request->name . "." . pathinfo($request->path, PATHINFO_EXTENSION); |
||||
Storage::disk("s3")->move($request->path, $path); |
||||
$photo = Photo::create([ |
||||
"uuid" => $uuid, |
||||
"name" => $request->name, |
||||
"path" => $path, |
||||
"user_id" => Auth::user()->id |
||||
]); |
||||
if($request->redirect) { |
||||
return redirect()->back(); |
||||
} |
||||
return response()->json([ |
||||
"uuid" => $photo->uuid |
||||
]); |
||||
} |
||||
|
||||
|
||||
/** |
||||
* Store a newly created resource in storage. |
||||
*/ |
||||
public function stores(Request $request) |
||||
{ |
||||
$request->validate([ |
||||
"files" => "required" |
||||
]); |
||||
|
||||
$redirect = $request->redirect ?? true; |
||||
$uuids = []; |
||||
foreach($request["files"] as $file) { |
||||
$file = (object)$file; |
||||
if(!Storage::disk("s3")->exists($file->path)) |
||||
return redirect()->back()->withErrors(["path" => "Probleme with the file transfert"]); |
||||
$uuid = Str::uuid(); |
||||
$path = "photos/" . $uuid . "-" . $file->name . "." . pathinfo($file->path, PATHINFO_EXTENSION); |
||||
Storage::disk("s3")->move($file->path, $path); |
||||
$photo = Photo::create([ |
||||
"uuid" => $uuid, |
||||
"name" => $file->name, |
||||
"path" => $path, |
||||
"user_id" => Auth::user()->id |
||||
]); |
||||
array_push($uuids, $photo->uuid); |
||||
} |
||||
if($redirect) { |
||||
return redirect()->back(); |
||||
} |
||||
return response()->json([ |
||||
"uuids" => $uuids |
||||
]); |
||||
} |
||||
/** |
||||
* Update the specified resource in storage. |
||||
*/ |
||||
public function update(Request $request, string $id) |
||||
{ |
||||
$request->validate([ |
||||
"name" => "required|string|max:255", |
||||
]); |
||||
$photo = Photo::where("uuid", $request->id)->first(); |
||||
if(!$photo) redirect()->back()->withErrors(["uuid" => "Photo introuvable" ]); |
||||
$photo->update([ |
||||
"name" => $request->name |
||||
]); |
||||
return redirect(route("photo.index"))->with(["message" => "Nom de la photo modifié avec success"]); |
||||
} |
||||
|
||||
/** |
||||
* Remove the specified resource from storage. |
||||
*/ |
||||
public function destroy(string $id) |
||||
{ |
||||
$photo = Photo::where("uuid", $id)->first(); |
||||
if(!$photo) redirect()->back()->withErrors(["uuid" => "Photo introuvable" ]); |
||||
$photo->albums()->detach(); |
||||
Storage::disk("s3")->delete($photo->path); |
||||
$photo->delete(); |
||||
return redirect(route("photo.index"))->with(["message" => "Photo supprimée avec success"]); |
||||
} |
||||
} |
@ -0,0 +1,49 @@ |
||||
<?php |
||||
|
||||
namespace App\Http\Controllers; |
||||
|
||||
use App\Http\Requests\ProfileUpdateRequest; |
||||
use App\Models\User; |
||||
use Illuminate\Contracts\Auth\MustVerifyEmail; |
||||
use Illuminate\Http\RedirectResponse; |
||||
use Illuminate\Http\Request; |
||||
use Illuminate\Support\Facades\Auth; |
||||
use Illuminate\Support\Str; |
||||
use Illuminate\Support\Facades\Redirect; |
||||
use Illuminate\Support\Facades\Storage; |
||||
use Inertia\Inertia; |
||||
use Inertia\Response; |
||||
|
||||
class ProfileController extends Controller |
||||
{ |
||||
/** |
||||
* Display the user's profile form. |
||||
*/ |
||||
public function edit(Request $request): Response |
||||
{ |
||||
return Inertia::render('Profile/Edit', [ |
||||
'mustVerifyEmail' => $request->user() instanceof MustVerifyEmail, |
||||
'status' => session('status'), |
||||
])->with("user", ((object)Auth::user())->jsonSerialize()); |
||||
} |
||||
|
||||
/** |
||||
* Update the user's profile information. |
||||
*/ |
||||
public function update(ProfileUpdateRequest $request): RedirectResponse |
||||
{ |
||||
$request->validated(); |
||||
$user = User::find(Auth::user()->id); |
||||
$file = 'profiles/'. Str::random(8) . "_" . pathinfo($request->path, PATHINFO_BASENAME); |
||||
Storage::disk("s3")->move($request->path, $file); |
||||
$user->update([ |
||||
"name" => $request->name, |
||||
"totem" => $request->totem ?? "", |
||||
"tel" => $request->tel ?? "", |
||||
"contactable" => intval($request->contactable), |
||||
"path" => $file ?? "profiles/none.webp", |
||||
]); |
||||
|
||||
return redirect(route('profile.edit')); |
||||
} |
||||
} |
@ -0,0 +1,117 @@ |
||||
<?php |
||||
|
||||
namespace App\Http\Controllers; |
||||
|
||||
use App\Utils\S3; |
||||
use Carbon\Carbon; |
||||
use Illuminate\Http\Request; |
||||
use Illuminate\Support\Facades\Auth; |
||||
use Illuminate\Support\Str; |
||||
use Illuminate\Support\Facades\Http; |
||||
use Illuminate\Support\Facades\Storage; |
||||
use Normalizer; |
||||
|
||||
|
||||
class S3Controller extends Controller |
||||
{ |
||||
private $bucket; |
||||
|
||||
public function __construct() { |
||||
$this->bucket = config("filesystems.disks.s3.bucket"); |
||||
} |
||||
|
||||
private static function NormalizeName($name) { |
||||
// Normalize the filename according to the NFC convention |
||||
// Requires php-intl module |
||||
// More info: https://www.php.net/manual/en/class.normalizer.php |
||||
if (class_exists('Normalizer')) { |
||||
$normalized_filename = Normalizer::normalize($name, Normalizer::FORM_C); |
||||
if ($normalized_filename !== false) { |
||||
return $normalized_filename; |
||||
} |
||||
} else { |
||||
// If Normalizer is not installed, we transform the text into an |
||||
// ASCII representation without diacritics. |
||||
return iconv('UTF-8', 'ASCII//TRANSLIT//IGNORE', $name); |
||||
} |
||||
|
||||
return $name; |
||||
} |
||||
|
||||
|
||||
public function GeneratePresignedUrl(Request $request) |
||||
{ |
||||
return response()->json([ "url" => S3::signUrl($request->key) ]); |
||||
} |
||||
|
||||
public function StartMultipartUpload(Request $request) |
||||
{ |
||||
$filename = "tmp/" . Str::random(10) . "_" . Str::replace(" ", "_", $request->filename); |
||||
$client = ((object)Storage::disk("s3"))->getClient(); |
||||
$result = $client->createMultipartUpload([ |
||||
"Bucket" => $this->bucket, |
||||
"Key" => $filename, |
||||
'ContentDisposition' => 'inline', |
||||
]); |
||||
return response()->json([ |
||||
"uploadId" => $result["UploadId"], |
||||
"key" => $filename, |
||||
]); |
||||
} |
||||
|
||||
public function GeneratePresignedMultipartUrl(Request $request) |
||||
{ |
||||
$client = ((object)Storage::disk("s3"))->getClient(); |
||||
$command = $client->getCommand('UploadPart', [ |
||||
"Bucket" => $this->bucket, |
||||
"Key" => $request->key, |
||||
"UploadId" => $request->uploadId, |
||||
"ContentLength" => $request->partLength, |
||||
"PartNumber" => $request->partNumber, |
||||
]); |
||||
$preSignedUrl = $client->createPresignedRequest($command, Carbon::tomorrow()); |
||||
return response()->json([ "url" => (string)$preSignedUrl->getUri() ]); |
||||
} |
||||
|
||||
public function CompleteMultipartUpload(Request $request) |
||||
{ |
||||
$client = ((object)Storage::disk("s3"))->getClient(); |
||||
$result = $client->completeMultipartUpload([ |
||||
"Bucket" => $this->bucket, |
||||
"Key" => $request->key, |
||||
"UploadId" => $request->uploadId, |
||||
"MultipartUpload" => [ |
||||
"Parts" => $request->parts |
||||
] |
||||
]); |
||||
return response()->json([ "message" => "Upload completed", "Location" => $result["Location"] ]); |
||||
} |
||||
|
||||
public function ProxyS3(Request $request) |
||||
{ |
||||
$response = Http::withBody($request->getContent(), "binary/octet-stream")->withHeaders([ "Content-Length" => $request->header("Content-Length") ])->put($request->header("X-SignedUrl")); |
||||
$ETag = $response->getHeader("ETag") ? $response->getHeader("ETag")[0] : dd($response); |
||||
return response(json_encode([ |
||||
"ETag" => $ETag |
||||
]), $response->status()); |
||||
} |
||||
|
||||
public function Download(Request $request) |
||||
{ |
||||
if(!$request->key) return redirect()->back()->withErrors("error", "Aucun fichier a été télécharger."); |
||||
$url = $request->key; |
||||
$filename = pathinfo($request->key, PATHINFO_BASENAME); |
||||
if(!Storage::disk("s3")->exists($url)) return redirect()->back()->withErrors("error", "Fichier introuvable."); |
||||
$path = pathinfo($url, PATHINFO_DIRNAME); |
||||
return response()->streamDownload(function() use ($url) { |
||||
$stream = Storage::disk('s3')->readStream($url); |
||||
while (!feof($stream)) { |
||||
echo fread($stream, 256 * 1024); |
||||
flush(); |
||||
} |
||||
fclose($stream); |
||||
}, $filename, ['Cache-Control' => "max-age=86400" ]); |
||||
} |
||||
|
||||
} |
||||
|
@ -0,0 +1,93 @@ |
||||
<?php |
||||
|
||||
namespace App\Http\Controllers; |
||||
|
||||
use App\Models\User; |
||||
use App\Utils\Mail; |
||||
use App\Utils\Token; |
||||
use Carbon\Carbon; |
||||
use Illuminate\Http\Request; |
||||
use Illuminate\Support\Facades\Hash; |
||||
use Illuminate\Support\Str; |
||||
use Inertia\Inertia; |
||||
|
||||
class UserController extends Controller |
||||
{ |
||||
/** |
||||
* Display a listing of the resource. |
||||
*/ |
||||
public function index() |
||||
{ |
||||
return Inertia::render('Admin/User/Index', [ |
||||
"users" => User::orderBy("created_at", "DESC")->get()->jsonSerialize(), |
||||
]); |
||||
} |
||||
|
||||
/** |
||||
* Show the form for creating a new resource. |
||||
*/ |
||||
public function create() |
||||
{ |
||||
return Inertia::render('Admin/User/Create'); |
||||
} |
||||
|
||||
/** |
||||
* Store a newly created resource in storage. |
||||
*/ |
||||
public function store(Request $request) |
||||
{ |
||||
$request->validate([ |
||||
"name" => "required|string|max:255", |
||||
"email" => "required|string|email|max:255|unique:users" |
||||
]); |
||||
|
||||
$user = User::create([ |
||||
"password" => bcrypt(Str::Random(10)), |
||||
"email" => $request->email, |
||||
"name" => $request->name, |
||||
"totem" => $request->totem, |
||||
"email_verified_at" => Carbon::now(), |
||||
]); |
||||
|
||||
$token = Token::create($user->email); |
||||
Mail::send((object)[ |
||||
"user" => $user, |
||||
"template" => "email.auth.reset", |
||||
"data" => [ "token" => $token ], |
||||
"subject" => "Nouveau compte" |
||||
]); |
||||
return redirect(route("admin.user.index")); |
||||
} |
||||
|
||||
/** |
||||
* Display the specified resource. |
||||
*/ |
||||
public function show(string $id) |
||||
{ |
||||
// |
||||
} |
||||
|
||||
/** |
||||
* Show the form for editing the specified resource. |
||||
*/ |
||||
public function edit(string $id) |
||||
{ |
||||
// |
||||
} |
||||
|
||||
/** |
||||
* Update the specified resource in storage. |
||||
*/ |
||||
public function update(Request $request, string $id) |
||||
{ |
||||
// |
||||
} |
||||
|
||||
/** |
||||
* Remove the specified resource from storage. |
||||
*/ |
||||
public function destroy(string $id) |
||||
{ |
||||
// |
||||
} |
||||
} |
@ -0,0 +1,41 @@ |
||||
<?php |
||||
|
||||
namespace App\Http\Middleware; |
||||
|
||||
use App\Models\User; |
||||
use Illuminate\Http\Request; |
||||
use Inertia\Middleware; |
||||
|
||||
class HandleInertiaRequests extends Middleware |
||||
{ |
||||
/** |
||||
* The root template that is loaded on the first page visit. |
||||
* |
||||
* @var string |
||||
*/ |
||||
protected $rootView = 'app'; |
||||
|
||||
/** |
||||
* Determine the current asset version. |
||||
*/ |
||||
public function version(Request $request): ?string |
||||
{ |
||||
return parent::version($request); |
||||
} |
||||
|
||||
/** |
||||
* Define the props that are shared by default. |
||||
* |
||||
* @return array<string, mixed> |
||||
*/ |
||||
public function share(Request $request): array |
||||
{ |
||||
return [ |
||||
...parent::share($request), |
||||
'user' => $request->user() ? User::find($request->user()->id)->jsonSerialize() : null, |
||||
'auth' => [ |
||||
'user' => $request->user(), |
||||
], |
||||
]; |
||||
} |
||||
} |
@ -0,0 +1,85 @@ |
||||
<?php |
||||
|
||||
namespace App\Http\Requests\Auth; |
||||
|
||||
use Illuminate\Auth\Events\Lockout; |
||||
use Illuminate\Foundation\Http\FormRequest; |
||||
use Illuminate\Support\Facades\Auth; |
||||
use Illuminate\Support\Facades\RateLimiter; |
||||
use Illuminate\Support\Str; |
||||
use Illuminate\Validation\ValidationException; |
||||
|
||||
class LoginRequest extends FormRequest |
||||
{ |
||||
/** |
||||
* Determine if the user is authorized to make this request. |
||||
*/ |
||||
public function authorize(): bool |
||||
{ |
||||
return true; |
||||
} |
||||
|
||||
/** |
||||
* Get the validation rules that apply to the request. |
||||
* |
||||
* @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string> |
||||
*/ |
||||
public function rules(): array |
||||
{ |
||||
return [ |
||||
'email' => ['required', 'string', 'email'], |
||||
'password' => ['required', 'string'], |
||||
]; |
||||
} |
||||
|
||||
/** |
||||
* Attempt to authenticate the request's credentials. |
||||
* |
||||
* @throws \Illuminate\Validation\ValidationException |
||||
*/ |
||||
public function authenticate(): void |
||||
{ |
||||
$this->ensureIsNotRateLimited(); |
||||
|
||||
if (! Auth::attempt($this->only('email', 'password'), $this->boolean('remember'))) { |
||||
RateLimiter::hit($this->throttleKey()); |
||||
|
||||
throw ValidationException::withMessages([ |
||||
'email' => trans('auth.failed'), |
||||
]); |
||||
} |
||||
|
||||
RateLimiter::clear($this->throttleKey()); |
||||
} |
||||
|
||||
/** |
||||
* Ensure the login request is not rate limited. |
||||
* |
||||
* @throws \Illuminate\Validation\ValidationException |
||||
*/ |
||||
public function ensureIsNotRateLimited(): void |
||||
{ |
||||
if (! RateLimiter::tooManyAttempts($this->throttleKey(), 5)) { |
||||
return; |
||||
} |
||||
|
||||
event(new Lockout($this)); |
||||
|
||||
$seconds = RateLimiter::availableIn($this->throttleKey()); |
||||
|
||||
throw ValidationException::withMessages([ |
||||
'email' => trans('auth.throttle', [ |
||||
'seconds' => $seconds, |
||||
'minutes' => ceil($seconds / 60), |
||||
]), |
||||
]); |
||||
} |
||||
|
||||
/** |
||||
* Get the rate limiting throttle key for the request. |
||||
*/ |
||||
public function throttleKey(): string |
||||
{ |
||||
return Str::transliterate(Str::lower($this->string('email')).'|'.$this->ip()); |
||||
} |
||||
} |
@ -0,0 +1,22 @@ |
||||
<?php |
||||
|
||||
namespace App\Http\Requests; |
||||
|
||||
use App\Models\User; |
||||
use Illuminate\Foundation\Http\FormRequest; |
||||
use Illuminate\Validation\Rule; |
||||
|
||||
class ProfileUpdateRequest extends FormRequest |
||||
{ |
||||
/** |
||||
* Get the validation rules that apply to the request. |
||||
* |
||||
* @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string> |
||||
*/ |
||||
public function rules(): array |
||||
{ |
||||
return [ |
||||
'name' => ['required', 'string', 'max:255'], |
||||
]; |
||||
} |
||||
} |
@ -0,0 +1,59 @@ |
||||
<?php |
||||
|
||||
namespace App\Mail; |
||||
|
||||
use Illuminate\Bus\Queueable; |
||||
use Illuminate\Contracts\Queue\ShouldQueue; |
||||
use Illuminate\Mail\Mailable; |
||||
use Illuminate\Mail\Mailables\Content; |
||||
use Illuminate\Mail\Mailables\Envelope; |
||||
use Illuminate\Queue\SerializesModels; |
||||
|
||||
class Communication extends Mailable |
||||
{ |
||||
use Queueable, SerializesModels; |
||||
|
||||
protected $template; |
||||
protected $user; |
||||
protected $data; |
||||
protected $annexes; |
||||
/** |
||||
* Create a new message instance. |
||||
* |
||||
* @return void |
||||
*/ |
||||
public function __construct($data) |
||||
{ |
||||
$this->template = $data->template; |
||||
$this->user = $data->user; |
||||
$this->subject = $data->subject; |
||||
$this->annexes = $data->annexes ?? []; |
||||
$this->data = $data->data; |
||||
} |
||||
|
||||
public function content(): Content |
||||
{ |
||||
return new Content( |
||||
view: $this->template, |
||||
text: $this->template . "-text", |
||||
with: $this->data, |
||||
); |
||||
} |
||||
|
||||
/** |
||||
* Build the message. |
||||
* |
||||
* @return $this |
||||
*/ |
||||
public function build() |
||||
{ |
||||
$mail = $this; |
||||
if(count($this->annexes)) { |
||||
foreach($this->annexes as $annexe) { |
||||
$mail = $mail->attachData($annexe->data, $annexe->name, [ "mime" => $annexe->type ]); |
||||
} |
||||
} |
||||
return $mail->content(); |
||||
} |
||||
|
||||
} |
@ -0,0 +1,43 @@ |
||||
<?php |
||||
|
||||
namespace App\Models; |
||||
|
||||
use App\Utils\S3; |
||||
use Illuminate\Database\Eloquent\Model; |
||||
|
||||
class Album extends Model |
||||
{ |
||||
protected $fillable = [ |
||||
'name', |
||||
'path', |
||||
'uuid', |
||||
'user_id' |
||||
]; |
||||
|
||||
public function jsonSerialize():array |
||||
{ |
||||
return [ |
||||
'uuid' => $this->uuid, |
||||
'name' => $this->name, |
||||
'path' => $this->path, |
||||
'image' => $this->path, |
||||
'user' => $this->user, |
||||
'created_at' => date("d.m.Y", strtotime($this->created_at)), |
||||
]; |
||||
} |
||||
|
||||
public function user() |
||||
{ |
||||
return $this->belongsTo(User::class); |
||||
} |
||||
|
||||
public function photos() |
||||
{ |
||||
return $this->belongsToMany(Photo::class)->withTimestamps(); |
||||
} |
||||
|
||||
public function tags() |
||||
{ |
||||
return $this->belongsToMany(Tag::class)->withTimestamps(); |
||||
} |
||||
} |
@ -0,0 +1,39 @@ |
||||
<?php |
||||
|
||||
namespace App\Models; |
||||
|
||||
use Illuminate\Database\Eloquent\Model; |
||||
|
||||
class Document extends Model |
||||
{ |
||||
protected $fillable = [ |
||||
'uuid', |
||||
'title', |
||||
'html', |
||||
'json', |
||||
'document_state_id', |
||||
'user_id' |
||||
]; |
||||
|
||||
public function jsonSerialize():array |
||||
{ |
||||
return [ |
||||
'uuid' => $this->uuid, |
||||
'title' => $this->title, |
||||
'html' => $this->html, |
||||
'json' => $this->json, |
||||
'state' => $this->state, |
||||
'user' => $this->user, |
||||
]; |
||||
} |
||||
|
||||
public function state() |
||||
{ |
||||
return $this->belongsTo(DocumentState::class); |
||||
} |
||||
|
||||
public function user() |
||||
{ |
||||
return $this->belongsTo(User::class); |
||||
} |
||||
} |
@ -0,0 +1,26 @@ |
||||
<?php |
||||
|
||||
namespace App\Models; |
||||
|
||||
use Illuminate\Database\Eloquent\Model; |
||||
|
||||
class DocumentState extends Model |
||||
{ |
||||
protected $fillable = [ |
||||
'id', |
||||
'name', |
||||
]; |
||||
|
||||
public function jsonSerialize():array |
||||
{ |
||||
return [ |
||||
'id' => $this->uuid, |
||||
'name' => $this->name, |
||||
]; |
||||
} |
||||
|
||||
public function documents() |
||||
{ |
||||
return $this->hasMany(Document::class); |
||||
} |
||||
} |
@ -0,0 +1,39 @@ |
||||
<?php |
||||
|
||||
namespace App\Models; |
||||
|
||||
use App\Utils\S3; |
||||
|
||||
use Illuminate\Database\Eloquent\Model; |
||||
|
||||
class Photo extends Model |
||||
{ |
||||
protected $fillable = [ |
||||
'name', |
||||
'path', |
||||
'uuid', |
||||
'user_id' |
||||
]; |
||||
|
||||
public function jsonSerialize():array |
||||
{ |
||||
return [ |
||||
'uuid' => $this->uuid, |
||||
'name' => $this->name, |
||||
'path' => $this->path, |
||||
'user' => $this->user, |
||||
'created_at' => date("d.m.Y", strtotime($this->created_at)), |
||||
]; |
||||
} |
||||
|
||||
public function user() |
||||
{ |
||||
return $this->belongsTo(User::class); |
||||
} |
||||
|
||||
public function albums() |
||||
{ |
||||
return $this->belongsToMany(Album::class)->withTimestamps(); |
||||
} |
||||
|
||||
} |
@ -0,0 +1,18 @@ |
||||
<?php |
||||
|
||||
namespace App\Models; |
||||
|
||||
use Illuminate\Database\Eloquent\Model; |
||||
|
||||
class Tag extends Model |
||||
{ |
||||
protected $fillable = [ |
||||
'name', |
||||
'uuid', |
||||
]; |
||||
|
||||
public function albums() |
||||
{ |
||||
return $this->belongsToMany(Album::class)->withTimestamps(); |
||||
} |
||||
} |
@ -0,0 +1,16 @@ |
||||
<?php |
||||
|
||||
namespace App\Utils; |
||||
|
||||
use App\Mail\Communication; |
||||
use Illuminate\Support\Facades\Mail as FacMail; |
||||
|
||||
|
||||
class Mail |
||||
{ |
||||
public static function send($data) |
||||
{ |
||||
FacMail::to($data->user->email) |
||||
->send(new Communication($data)); |
||||
} |
||||
} |
@ -0,0 +1,25 @@ |
||||
<?php |
||||
|
||||
namespace App\Utils; |
||||
|
||||
use Carbon\Carbon; |
||||
use Illuminate\Support\Facades\Storage; |
||||
|
||||
class S3 |
||||
{ |
||||
public static function encodeURI($str) |
||||
{ |
||||
$revert = ['%21'=>'!', '%2A'=>'*', '%27'=>"'", '%28'=>'(', '%29'=>')', '%2F'=>'/']; |
||||
return strtr(rawurlencode($str), $revert); |
||||
} |
||||
|
||||
public static function signUrl($key){ |
||||
$client = ((object)Storage::disk("s3"))->getClient(); |
||||
$bucket = config("filesystems.disks.s3.bucket"); |
||||
$command = $client->getCommand('GetObject', [ |
||||
"Bucket" => $bucket, |
||||
"Key" => $key |
||||
]); |
||||
return (string)$client->createPresignedRequest($command, Carbon::tomorrow())->getUri(); |
||||
} |
||||
} |
@ -0,0 +1,21 @@ |
||||
<?php |
||||
|
||||
namespace App\Utils; |
||||
|
||||
use Illuminate\Support\Facades\DB; |
||||
use Illuminate\Support\Str; |
||||
use Carbon\Carbon; |
||||
|
||||
class Token |
||||
{ |
||||
public static function create($email){ |
||||
$token = Str::random(64); |
||||
DB::table('password_reset_tokens')->insert([ |
||||
'email' => $email, |
||||
'token' => $token, |
||||
'created_at' => Carbon::now() |
||||
]); |
||||
return $token; |
||||
} |
||||
} |
||||
|
@ -1,26 +0,0 @@ |
||||
<?php |
||||
|
||||
namespace App\View\Components; |
||||
|
||||
use Closure; |
||||
use Illuminate\Contracts\View\View; |
||||
use Illuminate\View\Component; |
||||
|
||||
class layout extends Component |
||||
{ |
||||
/** |
||||
* Create a new component instance. |
||||
*/ |
||||
public function __construct() |
||||
{ |
||||
// |
||||
} |
||||
|
||||
/** |
||||
* Get the view / contents that represent the component. |
||||
*/ |
||||
public function render(): View|Closure|string |
||||
{ |
||||
return view('components.layout'); |
||||
} |
||||
} |
@ -1,83 +0,0 @@ |
||||
<?php |
||||
|
||||
use Laravel\Sanctum\Sanctum; |
||||
|
||||
return [ |
||||
|
||||
/* |
||||
|-------------------------------------------------------------------------- |
||||
| Stateful Domains |
||||
|-------------------------------------------------------------------------- |
||||
| |
||||
| Requests from the following domains / hosts will receive stateful API |
||||
| authentication cookies. Typically, these should include your local |
||||
| and production domains which access your API via a frontend SPA. |
||||
| |
||||
*/ |
||||
|
||||
'stateful' => explode(',', env('SANCTUM_STATEFUL_DOMAINS', sprintf( |
||||
'%s%s', |
||||
'localhost,localhost:3000,127.0.0.1,127.0.0.1:8000,::1', |
||||
Sanctum::currentApplicationUrlWithPort() |
||||
))), |
||||
|
||||
/* |
||||
|-------------------------------------------------------------------------- |
||||
| Sanctum Guards |
||||
|-------------------------------------------------------------------------- |
||||
| |
||||
| This array contains the authentication guards that will be checked when |
||||
| Sanctum is trying to authenticate a request. If none of these guards |
||||
| are able to authenticate the request, Sanctum will use the bearer |
||||
| token that's present on an incoming request for authentication. |
||||
| |
||||
*/ |
||||
|
||||
'guard' => ['web'], |
||||
|
||||
/* |
||||
|-------------------------------------------------------------------------- |
||||
| Expiration Minutes |
||||
|-------------------------------------------------------------------------- |
||||
| |
||||
| This value controls the number of minutes until an issued token will be |
||||
| considered expired. This will override any values set in the token's |
||||
| "expires_at" attribute, but first-party sessions are not affected. |
||||
| |
||||
*/ |
||||
|
||||
'expiration' => null, |
||||
|
||||
/* |
||||
|-------------------------------------------------------------------------- |
||||
| Token Prefix |
||||
|-------------------------------------------------------------------------- |
||||
| |
||||
| Sanctum can prefix new tokens in order to take advantage of numerous |
||||
| security scanning initiatives maintained by open source platforms |
||||
| that notify developers if they commit tokens into repositories. |
||||
| |
||||
| See: https://docs.github.com/en/code-security/secret-scanning/about-secret-scanning |
||||
| |
||||
*/ |
||||
|
||||
'token_prefix' => env('SANCTUM_TOKEN_PREFIX', ''), |
||||
|
||||
/* |
||||
|-------------------------------------------------------------------------- |
||||
| Sanctum Middleware |
||||
|-------------------------------------------------------------------------- |
||||
| |
||||
| When authenticating your first-party SPA with Sanctum you may need to |
||||
| customize some of the middleware Sanctum uses while processing the |
||||
| request. You may change the middleware listed below as required. |
||||
| |
||||
*/ |
||||
|
||||
'middleware' => [ |
||||
'authenticate_session' => Laravel\Sanctum\Http\Middleware\AuthenticateSession::class, |
||||
'encrypt_cookies' => Illuminate\Cookie\Middleware\EncryptCookies::class, |
||||
'validate_csrf_token' => Illuminate\Foundation\Http\Middleware\ValidateCsrfToken::class, |
||||
], |
||||
|
||||
]; |
@ -1,33 +0,0 @@ |
||||
<?php |
||||
|
||||
use Illuminate\Database\Migrations\Migration; |
||||
use Illuminate\Database\Schema\Blueprint; |
||||
use Illuminate\Support\Facades\Schema; |
||||
|
||||
return new class extends Migration |
||||
{ |
||||
/** |
||||
* Run the migrations. |
||||
*/ |
||||
public function up(): void |
||||
{ |
||||
Schema::create('personal_access_tokens', function (Blueprint $table) { |
||||
$table->id(); |
||||
$table->morphs('tokenable'); |
||||
$table->string('name'); |
||||
$table->string('token', 64)->unique(); |
||||
$table->text('abilities')->nullable(); |
||||
$table->timestamp('last_used_at')->nullable(); |
||||
$table->timestamp('expires_at')->nullable(); |
||||
$table->timestamps(); |
||||
}); |
||||
} |
||||
|
||||
/** |
||||
* Reverse the migrations. |
||||
*/ |
||||
public function down(): void |
||||
{ |
||||
Schema::dropIfExists('personal_access_tokens'); |
||||
} |
||||
}; |
@ -0,0 +1,29 @@ |
||||
<?php |
||||
|
||||
use Illuminate\Database\Migrations\Migration; |
||||
use Illuminate\Database\Schema\Blueprint; |
||||
use Illuminate\Support\Facades\Schema; |
||||
|
||||
return new class extends Migration |
||||
{ |
||||
/** |
||||
* Run the migrations. |
||||
*/ |
||||
public function up(): void |
||||
{ |
||||
Schema::create('photos', function (Blueprint $table) { |
||||
$table->id(); |
||||
$table->string("name", 255); |
||||
$table->string("path", 511); |
||||
$table->timestamps(); |
||||
}); |
||||
} |
||||
|
||||
/** |
||||
* Reverse the migrations. |
||||
*/ |
||||
public function down(): void |
||||
{ |
||||
Schema::dropIfExists('photos'); |
||||
} |
||||
}; |
@ -0,0 +1,28 @@ |
||||
<?php |
||||
|
||||
use Illuminate\Database\Migrations\Migration; |
||||
use Illuminate\Database\Schema\Blueprint; |
||||
use Illuminate\Support\Facades\Schema; |
||||
|
||||
return new class extends Migration |
||||
{ |
||||
/** |
||||
* Run the migrations. |
||||
*/ |
||||
public function up(): void |
||||
{ |
||||
Schema::table('photos', function (Blueprint $table) { |
||||
$table->uuid('uuid')->unique()->after('id'); |
||||
}); |
||||
} |
||||
|
||||
/** |
||||
* Reverse the migrations. |
||||
*/ |
||||
public function down(): void |
||||
{ |
||||
Schema::table('photos', function (Blueprint $table) { |
||||
$table->dropColumn("uuid"); |
||||
}); |
||||
} |
||||
}; |
@ -0,0 +1,32 @@ |
||||
<?php |
||||
|
||||
use Illuminate\Database\Migrations\Migration; |
||||
use Illuminate\Database\Schema\Blueprint; |
||||
use Illuminate\Support\Facades\Schema; |
||||
|
||||
return new class extends Migration |
||||
{ |
||||
/** |
||||
* Run the migrations. |
||||
*/ |
||||
public function up(): void |
||||
{ |
||||
Schema::table("users", function (Blueprint $table) { |
||||
$table->string("totem", 100)->default(""); |
||||
$table->string("tel", 25)->default(""); |
||||
$table->string("role", 255)->default(""); |
||||
$table->tinyInteger("contactable")->default(0); |
||||
$table->string("path")->default("profiles/none.png"); |
||||
}); |
||||
} |
||||
|
||||
/** |
||||
* Reverse the migrations. |
||||
*/ |
||||
public function down(): void |
||||
{ |
||||
Schema::table("users", function (Blueprint $table) { |
||||
$table->dropColumns(["totem", "tel", "role"]); |
||||
}); |
||||
} |
||||
}; |
@ -0,0 +1,27 @@ |
||||
<?php |
||||
|
||||
use Illuminate\Database\Migrations\Migration; |
||||
use Illuminate\Database\Schema\Blueprint; |
||||
use Illuminate\Support\Facades\Schema; |
||||
|
||||
return new class extends Migration |
||||
{ |
||||
/** |
||||
* Run the migrations. |
||||
*/ |
||||
public function up(): void |
||||
{ |
||||
Schema::table("photos", function (Blueprint $table) { |
||||
$table->unsignedBigInteger("user_id"); |
||||
$table->foreign("user_id")->references("id")->on("users"); |
||||
}); |
||||
} |
||||
|
||||
/** |
||||
* Reverse the migrations. |
||||
*/ |
||||
public function down(): void |
||||
{ |
||||
// |
||||
} |
||||
}; |
@ -0,0 +1,33 @@ |
||||
<?php |
||||
|
||||
use Illuminate\Database\Migrations\Migration; |
||||
use Illuminate\Database\Schema\Blueprint; |
||||
use Illuminate\Support\Facades\Schema; |
||||
|
||||
return new class extends Migration |
||||
{ |
||||
/** |
||||
* Run the migrations. |
||||
*/ |
||||
public function up(): void |
||||
{ |
||||
Schema::create('albums', function (Blueprint $table) { |
||||
$table->id(); |
||||
$table->uuid('uuid')->unique(); |
||||
$table->string("path", 511)->default("albums/none.svg"); |
||||
$table->string("name"); |
||||
$table->unsignedBigInteger("user_id"); |
||||
$table->timestamps(); |
||||
|
||||
$table->foreign("user_id")->references("id")->on("users"); |
||||
}); |
||||
} |
||||
|
||||
/** |
||||
* Reverse the migrations. |
||||
*/ |
||||
public function down(): void |
||||
{ |
||||
Schema::dropIfExists('albums'); |
||||
} |
||||
}; |
@ -0,0 +1,29 @@ |
||||
<?php |
||||
|
||||
use Illuminate\Database\Migrations\Migration; |
||||
use Illuminate\Database\Schema\Blueprint; |
||||
use Illuminate\Support\Facades\Schema; |
||||
|
||||
return new class extends Migration |
||||
{ |
||||
/** |
||||
* Run the migrations. |
||||
*/ |
||||
public function up(): void |
||||
{ |
||||
Schema::create('tags', function (Blueprint $table) { |
||||
$table->id(); |
||||
$table->uuid('uuid')->unique(); |
||||
$table->string("name"); |
||||
$table->timestamps(); |
||||
}); |
||||
} |
||||
|
||||
/** |
||||
* Reverse the migrations. |
||||
*/ |
||||
public function down(): void |
||||
{ |
||||
Schema::dropIfExists('tags'); |
||||
} |
||||
}; |
@ -0,0 +1,32 @@ |
||||
<?php |
||||
|
||||
use Illuminate\Database\Migrations\Migration; |
||||
use Illuminate\Database\Schema\Blueprint; |
||||
use Illuminate\Support\Facades\Schema; |
||||
|
||||
return new class extends Migration |
||||
{ |
||||
/** |
||||
* Run the migrations. |
||||
*/ |
||||
public function up(): void |
||||
{ |
||||
Schema::create('tags_albums', function (Blueprint $table) { |
||||
$table->id(); |
||||
$table->unsignedBigInteger("tag_id"); |
||||
$table->unsignedBigInteger("album_id"); |
||||
$table->timestamps(); |
||||
|
||||
$table->foreign("tag_id")->references("id")->on("tags"); |
||||
$table->foreign("album_id")->references("id")->on("albums"); |
||||
}); |
||||
} |
||||
|
||||
/** |
||||
* Reverse the migrations. |
||||
*/ |
||||
public function down(): void |
||||
{ |
||||
Schema::dropIfExists('tags_albums'); |
||||
} |
||||
}; |
@ -0,0 +1,32 @@ |
||||
<?php |
||||
|
||||
use Illuminate\Database\Migrations\Migration; |
||||
use Illuminate\Database\Schema\Blueprint; |
||||
use Illuminate\Support\Facades\Schema; |
||||
|
||||
return new class extends Migration |
||||
{ |
||||
/** |
||||
* Run the migrations. |
||||
*/ |
||||
public function up(): void |
||||
{ |
||||
Schema::create('albums_photos', function (Blueprint $table) { |
||||
$table->id(); |
||||
$table->unsignedBigInteger("photo_id"); |
||||
$table->unsignedBigInteger("album_id"); |
||||
$table->timestamps(); |
||||
|
||||
$table->foreign("photo_id")->references("id")->on("photos"); |
||||
$table->foreign("album_id")->references("id")->on("albums"); |
||||
}); |
||||
} |
||||
|
||||
/** |
||||
* Reverse the migrations. |
||||
*/ |
||||
public function down(): void |
||||
{ |
||||
Schema::dropIfExists('albums_photos'); |
||||
} |
||||
}; |
@ -0,0 +1,26 @@ |
||||
<?php |
||||
|
||||
use Illuminate\Database\Migrations\Migration; |
||||
use Illuminate\Database\Schema\Blueprint; |
||||
use Illuminate\Support\Facades\Schema; |
||||
|
||||
return new class extends Migration |
||||
{ |
||||
/** |
||||
* Run the migrations. |
||||
*/ |
||||
public function up(): void |
||||
{ |
||||
Schema::rename("albums_photos", "album_photo"); |
||||
Schema::rename("tags_albums", "album_tag"); |
||||
} |
||||
|
||||
/** |
||||
* Reverse the migrations. |
||||
*/ |
||||
public function down(): void |
||||
{ |
||||
Schema::rename("album_photo", "albums_photos"); |
||||
Schema::rename("album_tag", "tags_albums"); |
||||
} |
||||
}; |
@ -0,0 +1,31 @@ |
||||
<?php |
||||
|
||||
use Illuminate\Database\Migrations\Migration; |
||||
use Illuminate\Database\Schema\Blueprint; |
||||
use Illuminate\Support\Facades\DB; |
||||
use Illuminate\Support\Facades\Schema; |
||||
|
||||
return new class extends Migration |
||||
{ |
||||
/** |
||||
* Run the migrations. |
||||
*/ |
||||
public function up(): void |
||||
{ |
||||
$aps = DB::table("album_photo")->get(); |
||||
foreach($aps as $ap) { |
||||
$photo = DB::table("photos")->where("id", $ap->photo_id)->first(); |
||||
DB::table("album_photo")->where("id", $ap->id)->update([ |
||||
"created_at" => $photo->created_at |
||||
]); |
||||
} |
||||
} |
||||
|
||||
/** |
||||
* Reverse the migrations. |
||||
*/ |
||||
public function down(): void |
||||
{ |
||||
// |
||||
} |
||||
}; |
@ -0,0 +1,34 @@ |
||||
<?php |
||||
|
||||
use Illuminate\Database\Migrations\Migration; |
||||
use Illuminate\Database\Schema\Blueprint; |
||||
use Illuminate\Support\Facades\DB; |
||||
use Illuminate\Support\Facades\Schema; |
||||
|
||||
return new class extends Migration |
||||
{ |
||||
/** |
||||
* Run the migrations. |
||||
*/ |
||||
public function up(): void |
||||
{ |
||||
DB::table("users")->where("path", "profiles/none.png")->update([ |
||||
"path" => "profiles/none.webp" |
||||
]); |
||||
$anulax = DB::table("users")->where("email", "anulax1225@icloud.com")->first(); |
||||
$gmail = DB::table("users")->where("email", "vinayakambigapathy@gmail.com")->first(); |
||||
if($anulax && $gmail){ |
||||
DB::table("photos")->where("user_id", $anulax->id)->update([ "user_id" => $gmail->id ]); |
||||
DB::table("albums")->where("user_id", $anulax->id)->update([ "user_id" => $gmail->id ]); |
||||
DB::table("users")->where("id", $anulax->id)->delete(); |
||||
} |
||||
} |
||||
|
||||
/** |
||||
* Reverse the migrations. |
||||
*/ |
||||
public function down(): void |
||||
{ |
||||
|
||||
} |
||||
}; |
@ -0,0 +1,35 @@ |
||||
<?php |
||||
|
||||
use App\Models\Document; |
||||
use App\Models\DocumentState; |
||||
use Illuminate\Database\Migrations\Migration; |
||||
use Illuminate\Database\Schema\Blueprint; |
||||
use Illuminate\Support\Facades\Schema; |
||||
use Illumite\Support\Facades\DB; |
||||
|
||||
return new class extends Migration |
||||
{ |
||||
/** |
||||
* Run the migrations. |
||||
*/ |
||||
public function up(): void |
||||
{ |
||||
Schema::create('document_states', function (Blueprint $table) { |
||||
$table->id(); |
||||
$table->string("name"); |
||||
$table->timestamps(); |
||||
}); |
||||
|
||||
DocumentState::create(["name"=> "Brouillon"]); |
||||
DocumentState::create(["name"=> "Public"]); |
||||
DocumentState::create(["name"=> "Privé"]); |
||||
} |
||||
|
||||
/** |
||||
* Reverse the migrations. |
||||
*/ |
||||
public function down(): void |
||||
{ |
||||
Schema::dropIfExists('document_states'); |
||||
} |
||||
}; |
@ -0,0 +1,36 @@ |
||||
<?php |
||||
|
||||
use Illuminate\Database\Migrations\Migration; |
||||
use Illuminate\Database\Schema\Blueprint; |
||||
use Illuminate\Support\Facades\Schema; |
||||
|
||||
return new class extends Migration |
||||
{ |
||||
/** |
||||
* Run the migrations. |
||||
*/ |
||||
public function up(): void |
||||
{ |
||||
Schema::create('documents', function (Blueprint $table) { |
||||
$table->id(); |
||||
$table->uuid('uuid')->unique(); |
||||
$table->string("title"); |
||||
$table->text("html"); |
||||
$table->json("json"); |
||||
$table->unsignedBigInteger("document_state_id"); |
||||
$table->unsignedBigInteger("user_id"); |
||||
$table->timestamps(); |
||||
|
||||
$table->foreign("user_id")->references("id")->on("users"); |
||||
$table->foreign("document_state_id")->references("id")->on("document_states"); |
||||
}); |
||||
} |
||||
|
||||
/** |
||||
* Reverse the migrations. |
||||
*/ |
||||
public function down(): void |
||||
{ |
||||
Schema::dropIfExists('documents'); |
||||
} |
||||
}; |
@ -0,0 +1,10 @@ |
||||
{ |
||||
"compilerOptions": { |
||||
"baseUrl": ".", |
||||
"paths": { |
||||
"@/*": ["resources/js/*"], |
||||
"ziggy-js": ["./vendor/tightenco/ziggy"] |
||||
} |
||||
}, |
||||
"exclude": ["node_modules", "public"] |
||||
} |
@ -0,0 +1,263 @@ |
||||
{ |
||||
"(and :count more error)": "(and :count more error)", |
||||
"(and :count more errors)": "(and :count more error)|(and :count more errors)|(and :count more errors)", |
||||
"A decryption key is required.": "A decryption key is required.", |
||||
"A new verification link has been sent to the email address you provided during registration.": "A new verification link has been sent to the email address you provided during registration.", |
||||
"A new verification link has been sent to your email address.": "A new verification link has been sent to your email address.", |
||||
"A Timeout Occurred": "A Timeout Occurred", |
||||
"Accept": "Accept", |
||||
"Accepted": "Accepted", |
||||
"Action": "Action", |
||||
"Actions": "Actions", |
||||
"Add": "Add", |
||||
"Add :name": "Add :name", |
||||
"Admin": "Admin", |
||||
"Agree": "Agree", |
||||
"All rights reserved.": "All rights reserved.", |
||||
"Already registered?": "Already registered?", |
||||
"Already Reported": "Already Reported", |
||||
"Archive": "Archive", |
||||
"Are you sure you want to delete your account?": "Are you sure you want to delete your account?", |
||||
"Assign": "Assign", |
||||
"Associate": "Associate", |
||||
"Attach": "Attach", |
||||
"Bad Gateway": "Bad Gateway", |
||||
"Bad Request": "Bad Request", |
||||
"Bandwidth Limit Exceeded": "Bandwidth Limit Exceeded", |
||||
"Browse": "Browse", |
||||
"Cancel": "Cancel", |
||||
"Choose": "Choose", |
||||
"Choose :name": "Choose :name", |
||||
"Choose File": "Choose File", |
||||
"Choose Image": "Choose Image", |
||||
"Click here to re-send the verification email.": "Click here to re-send the verification email.", |
||||
"Click to copy": "Click to copy", |
||||
"Client Closed Request": "Client Closed Request", |
||||
"Close": "Close", |
||||
"Collapse": "Collapse", |
||||
"Collapse All": "Collapse All", |
||||
"Comment": "Comment", |
||||
"Confirm": "Confirm", |
||||
"Confirm Password": "Confirm Password", |
||||
"Conflict": "Conflict", |
||||
"Connect": "Connect", |
||||
"Connection Closed Without Response": "Connection Closed Without Response", |
||||
"Connection Timed Out": "Connection Timed Out", |
||||
"Continue": "Continue", |
||||
"Create": "Create", |
||||
"Create :name": "Create :name", |
||||
"Created": "Created", |
||||
"Current Password": "Current Password", |
||||
"Dashboard": "Dashboard", |
||||
"Delete": "Delete", |
||||
"Delete :name": "Delete :name", |
||||
"Delete Account": "Delete Account", |
||||
"Detach": "Detach", |
||||
"Details": "Details", |
||||
"Disable": "Disable", |
||||
"Discard": "Discard", |
||||
"Done": "Done", |
||||
"Down": "Down", |
||||
"Duplicate": "Duplicate", |
||||
"Duplicate :name": "Duplicate :name", |
||||
"Edit": "Edit", |
||||
"Edit :name": "Edit :name", |
||||
"Email": "Email", |
||||
"email": "The :attribute field must be a valid email address.", |
||||
"Email Password Reset Link": "Email Password Reset Link", |
||||
"Enable": "Enable", |
||||
"Encrypted environment file already exists.": "Encrypted environment file already exists.", |
||||
"Encrypted environment file not found.": "Encrypted environment file not found.", |
||||
"Ensure your account is using a long, random password to stay secure.": "Ensure your account is using a long, random password to stay secure.", |
||||
"Environment file already exists.": "Environment file already exists.", |
||||
"Environment file not found.": "Environment file not found.", |
||||
"errors": "errors", |
||||
"Expand": "Expand", |
||||
"Expand All": "Expand All", |
||||
"Expectation Failed": "Expectation Failed", |
||||
"Explanation": "Explanation", |
||||
"Export": "Export", |
||||
"Export :name": "Export :name", |
||||
"Failed Dependency": "Failed Dependency", |
||||
"File": "File", |
||||
"Files": "Files", |
||||
"Forbidden": "Forbidden", |
||||
"Forgot your password?": "Forgot your password?", |
||||
"Forgot your password? No problem. Just let us know your email address and we will email you a password reset link that will allow you to choose a new one.": "Forgot your password? No problem. Just let us know your email address and we will email you a password reset link that will allow you to choose a new one.", |
||||
"Found": "Found", |
||||
"Gateway Timeout": "Gateway Timeout", |
||||
"Go Home": "Go Home", |
||||
"Go to page :page": "Go to page :page", |
||||
"Gone": "Gone", |
||||
"Hello!": "Hello!", |
||||
"Hide": "Hide", |
||||
"Hide :name": "Hide :name", |
||||
"Home": "Home", |
||||
"HTTP Version Not Supported": "HTTP Version Not Supported", |
||||
"I'm a teapot": "I'm a teapot", |
||||
"If you did not create an account, no further action is required.": "If you did not create an account, no further action is required.", |
||||
"If you did not request a password reset, no further action is required.": "If you did not request a password reset, no further action is required.", |
||||
"If you're having trouble clicking the \":actionText\" button, copy and paste the URL below\ninto your web browser:": "If you're having trouble clicking the \":actionText\" button, copy and paste the URL below\ninto your web browser:", |
||||
"IM Used": "IM Used", |
||||
"Image": "Image", |
||||
"Impersonate": "Impersonate", |
||||
"Impersonation": "Impersonation", |
||||
"Import": "Import", |
||||
"Import :name": "Import :name", |
||||
"Insufficient Storage": "Insufficient Storage", |
||||
"Internal Server Error": "Internal Server Error", |
||||
"Introduction": "Introduction", |
||||
"Invalid filename.": "Invalid filename.", |
||||
"Invalid JSON was returned from the route.": "Invalid JSON was returned from the route.", |
||||
"Invalid SSL Certificate": "Invalid SSL Certificate", |
||||
"length": "length", |
||||
"Length Required": "Length Required", |
||||
"Like": "Like", |
||||
"Load": "Load", |
||||
"Localize": "Localize", |
||||
"Location": "Location", |
||||
"Locked": "Locked", |
||||
"Log In": "Log In", |
||||
"Log in": "Log in", |
||||
"Log Out": "Log Out", |
||||
"Login": "Login", |
||||
"Logout": "Logout", |
||||
"Loop Detected": "Loop Detected", |
||||
"Maintenance Mode": "Maintenance Mode", |
||||
"Method Not Allowed": "Method Not Allowed", |
||||
"Misdirected Request": "Misdirected Request", |
||||
"Moved Permanently": "Moved Permanently", |
||||
"Multi-Status": "Multi-Status", |
||||
"Multiple Choices": "Multiple Choices", |
||||
"Name": "Name", |
||||
"name": "name", |
||||
"Network Authentication Required": "Network Authentication Required", |
||||
"Network Connect Timeout Error": "Network Connect Timeout Error", |
||||
"Network Read Timeout Error": "Network Read Timeout Error", |
||||
"New": "New", |
||||
"New :name": "New :name", |
||||
"New Password": "New Password", |
||||
"No": "No", |
||||
"No Content": "No Content", |
||||
"Non-Authoritative Information": "Non-Authoritative Information", |
||||
"Not Acceptable": "Not Acceptable", |
||||
"Not Extended": "Not Extended", |
||||
"Not Found": "Not Found", |
||||
"Not Implemented": "Not Implemented", |
||||
"Not Modified": "Not Modified", |
||||
"of": "of", |
||||
"OK": "OK", |
||||
"Once your account is deleted, all of its resources and data will be permanently deleted. Before deleting your account, please download any data or information that you wish to retain.": "Once your account is deleted, all of its resources and data will be permanently deleted. Before deleting your account, please download any data or information that you wish to retain.", |
||||
"Once your account is deleted, all of its resources and data will be permanently deleted. Please enter your password to confirm you would like to permanently delete your account.": "Once your account is deleted, all of its resources and data will be permanently deleted. Please enter your password to confirm you would like to permanently delete your account.", |
||||
"Open": "Open", |
||||
"Open in a current window": "Open in a current window", |
||||
"Open in a new window": "Open in a new window", |
||||
"Open in a parent frame": "Open in a parent frame", |
||||
"Open in the topmost frame": "Open in the topmost frame", |
||||
"Open on the website": "Open on the website", |
||||
"Origin Is Unreachable": "Origin Is Unreachable", |
||||
"Page Expired": "Page Expired", |
||||
"Pagination Navigation": "Pagination Navigation", |
||||
"Partial Content": "Partial Content", |
||||
"Password": "Password", |
||||
"password": "The provided password is incorrect.", |
||||
"Payload Too Large": "Payload Too Large", |
||||
"Payment Required": "Payment Required", |
||||
"Permanent Redirect": "Permanent Redirect", |
||||
"Please click the button below to verify your email address.": "Please click the button below to verify your email address.", |
||||
"Precondition Failed": "Precondition Failed", |
||||
"Precondition Required": "Precondition Required", |
||||
"Preview": "Preview", |
||||
"Price": "Price", |
||||
"Processing": "Processing", |
||||
"Profile": "Profile", |
||||
"Profile Information": "Profile Information", |
||||
"Proxy Authentication Required": "Proxy Authentication Required", |
||||
"Railgun Error": "Railgun Error", |
||||
"Range Not Satisfiable": "Range Not Satisfiable", |
||||
"Record": "Record", |
||||
"Regards,": "Regards,", |
||||
"Register": "Register", |
||||
"Remember me": "Remember me", |
||||
"Request Header Fields Too Large": "Request Header Fields Too Large", |
||||
"Request Timeout": "Request Timeout", |
||||
"Resend Verification Email": "Resend Verification Email", |
||||
"Reset Content": "Reset Content", |
||||
"Reset Password": "Reset Password", |
||||
"Reset Password Notification": "Reset Password Notification", |
||||
"Restore": "Restore", |
||||
"Restore :name": "Restore :name", |
||||
"results": "results", |
||||
"Retry With": "Retry With", |
||||
"Save": "Save", |
||||
"Save & Close": "Save & Close", |
||||
"Save & Return": "Save & Return", |
||||
"Save :name": "Save :name", |
||||
"Saved.": "Saved.", |
||||
"Search": "Search", |
||||
"Search :name": "Search :name", |
||||
"See Other": "See Other", |
||||
"Select": "Select", |
||||
"Select All": "Select All", |
||||
"Send": "Send", |
||||
"Server Error": "Server Error", |
||||
"Service Unavailable": "Service Unavailable", |
||||
"Session Has Expired": "Session Has Expired", |
||||
"Settings": "Settings", |
||||
"Show": "Show", |
||||
"Show :name": "Show :name", |
||||
"Show All": "Show All", |
||||
"Showing": "Showing", |
||||
"Sign In": "Sign In", |
||||
"Solve": "Solve", |
||||
"SSL Handshake Failed": "SSL Handshake Failed", |
||||
"Start": "Start", |
||||
"Stop": "Stop", |
||||
"Submit": "Submit", |
||||
"Subscribe": "Subscribe", |
||||
"Switch": "Switch", |
||||
"Switch To Role": "Switch To Role", |
||||
"Switching Protocols": "Switching Protocols", |
||||
"Tag": "Tag", |
||||
"Tags": "Tags", |
||||
"Temporary Redirect": "Temporary Redirect", |
||||
"Thanks for signing up! Before getting started, could you verify your email address by clicking on the link we just emailed to you? If you didn't receive the email, we will gladly send you another.": "Thanks for signing up! Before getting started, could you verify your email address by clicking on the link we just emailed to you? If you didn't receive the email, we will gladly send you another.", |
||||
"The given data was invalid.": "The given data was invalid.", |
||||
"The response is not a streamed response.": "The response is not a streamed response.", |
||||
"The response is not a view.": "The response is not a view.", |
||||
"This action is unauthorized.": "This action is unauthorized.", |
||||
"This is a secure area of the application. Please confirm your password before continuing.": "This is a secure area of the application. Please confirm your password before continuing.", |
||||
"This password reset link will expire in :count minutes.": "This password reset link will expire in :count minutes.", |
||||
"to": "to", |
||||
"Toggle navigation": "Toggle navigation", |
||||
"Too Early": "Too Early", |
||||
"Too Many Requests": "Too Many Requests", |
||||
"Translate": "Translate", |
||||
"Translate It": "Translate It", |
||||
"Unauthorized": "Unauthorized", |
||||
"Unavailable For Legal Reasons": "Unavailable For Legal Reasons", |
||||
"Unknown Error": "Unknown Error", |
||||
"Unpack": "Unpack", |
||||
"Unprocessable Entity": "Unprocessable Entity", |
||||
"Unsubscribe": "Unsubscribe", |
||||
"Unsupported Media Type": "Unsupported Media Type", |
||||
"Up": "Up", |
||||
"Update": "Update", |
||||
"Update :name": "Update :name", |
||||
"Update Password": "Update Password", |
||||
"Update your account's profile information and email address.": "Update your account's profile information and email address.", |
||||
"Upgrade Required": "Upgrade Required", |
||||
"URI Too Long": "URI Too Long", |
||||
"Use Proxy": "Use Proxy", |
||||
"User": "User", |
||||
"Variant Also Negotiates": "Variant Also Negotiates", |
||||
"Verify Email Address": "Verify Email Address", |
||||
"View": "View", |
||||
"View :name": "View :name", |
||||
"Web Server is Down": "Web Server is Down", |
||||
"Whoops!": "Whoops!", |
||||
"Yes": "Yes", |
||||
"You are receiving this email because we received a password reset request for your account.": "You are receiving this email because we received a password reset request for your account.", |
||||
"You're logged in!": "You're logged in!", |
||||
"Your email address is unverified.": "Your email address is unverified." |
||||
} |
@ -0,0 +1,119 @@ |
||||
<?php |
||||
|
||||
declare(strict_types=1); |
||||
|
||||
return [ |
||||
'accept' => 'Accept', |
||||
'action' => 'Action', |
||||
'actions' => 'Actions', |
||||
'add' => 'Add', |
||||
'admin' => 'Admin', |
||||
'agree' => 'Agree', |
||||
'archive' => 'Archive', |
||||
'assign' => 'Assign', |
||||
'associate' => 'Associate', |
||||
'attach' => 'Attach', |
||||
'browse' => 'Browse', |
||||
'cancel' => 'Cancel', |
||||
'choose' => 'Choose', |
||||
'choose_file' => 'Choose File', |
||||
'choose_image' => 'Choose Image', |
||||
'click_to_copy' => 'Click to copy', |
||||
'close' => 'Close', |
||||
'collapse' => 'Collapse', |
||||
'collapse_all' => 'Collapse All', |
||||
'comment' => 'Comment', |
||||
'confirm' => 'Confirm', |
||||
'connect' => 'Connect', |
||||
'create' => 'Create', |
||||
'delete' => 'Delete', |
||||
'detach' => 'Detach', |
||||
'details' => 'Details', |
||||
'disable' => 'Disable', |
||||
'discard' => 'Discard', |
||||
'done' => 'Done', |
||||
'down' => 'Down', |
||||
'duplicate' => 'Duplicate', |
||||
'edit' => 'Edit', |
||||
'enable' => 'Enable', |
||||
'expand' => 'Expand', |
||||
'expand_all' => 'Expand All', |
||||
'explanation' => 'Explanation', |
||||
'export' => 'Export', |
||||
'file' => 'File', |
||||
'files' => 'Files', |
||||
'go_home' => 'Go Home', |
||||
'hide' => 'Hide', |
||||
'home' => 'Home', |
||||
'image' => 'Image', |
||||
'impersonate' => 'Impersonate', |
||||
'impersonation' => 'Impersonation', |
||||
'import' => 'Import', |
||||
'introduction' => 'Introduction', |
||||
'like' => 'Like', |
||||
'load' => 'Load', |
||||
'localize' => 'Localize', |
||||
'log_in' => 'Log In', |
||||
'log_out' => 'Log Out', |
||||
'named' => [ |
||||
'add' => 'Add :name', |
||||
'choose' => 'Choose :name', |
||||
'create' => 'Create :name', |
||||
'delete' => 'Delete :name', |
||||
'duplicate' => 'Duplicate :name', |
||||
'edit' => 'Edit :name', |
||||
'export' => 'Export :name', |
||||
'hide' => 'Hide :name', |
||||
'import' => 'Import :name', |
||||
'new' => 'New :name', |
||||
'restore' => 'Restore :name', |
||||
'save' => 'Save :name', |
||||
'search' => 'Search :name', |
||||
'show' => 'Show :name', |
||||
'update' => 'Update :name', |
||||
'view' => 'View :name', |
||||
], |
||||
'new' => 'New', |
||||
'no' => 'No', |
||||
'open' => 'Open', |
||||
'open_website' => 'Open on the website', |
||||
'preview' => 'Preview', |
||||
'price' => 'Price', |
||||
'record' => 'Record', |
||||
'restore' => 'Restore', |
||||
'save' => 'Save', |
||||
'save_and_close' => 'Save & Close', |
||||
'save_and_return' => 'Save & Return', |
||||
'search' => 'Search', |
||||
'select' => 'Select', |
||||
'select_all' => 'Select All', |
||||
'send' => 'Send', |
||||
'settings' => 'Settings', |
||||
'show' => 'Show', |
||||
'show_all' => 'Show All', |
||||
'sign_in' => 'Sign In', |
||||
'solve' => 'Solve', |
||||
'start' => 'Start', |
||||
'stop' => 'Stop', |
||||
'submit' => 'Submit', |
||||
'subscribe' => 'Subscribe', |
||||
'switch' => 'Switch', |
||||
'switch_to_role' => 'Switch To Role', |
||||
'tag' => 'Tag', |
||||
'tags' => 'Tags', |
||||
'target_link' => [ |
||||
'blank' => 'Open in a new window', |
||||
'parent' => 'Open in a parent frame', |
||||
'self' => 'Open in a current window', |
||||
'top' => 'Open in the topmost frame', |
||||
], |
||||
'translate' => 'Translate', |
||||
'translate_it' => 'Translate It', |
||||
'unpack' => 'Unpack', |
||||
'unsubscribe' => 'Unsubscribe', |
||||
'up' => 'Up', |
||||
'update' => 'Update', |
||||
'user' => 'User', |
||||
'view' => 'View', |
||||
'yes' => 'Yes', |
||||
]; |
@ -0,0 +1,9 @@ |
||||
<?php |
||||
|
||||
declare(strict_types=1); |
||||
|
||||
return [ |
||||
'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.', |
||||
]; |
@ -0,0 +1,84 @@ |
||||
<?php |
||||
|
||||
declare(strict_types=1); |
||||
|
||||
return [ |
||||
'0' => 'Unknown Error', |
||||
'100' => 'Continue', |
||||
'101' => 'Switching Protocols', |
||||
'102' => 'Processing', |
||||
'200' => 'OK', |
||||
'201' => 'Created', |
||||
'202' => 'Accepted', |
||||
'203' => 'Non-Authoritative Information', |
||||
'204' => 'No Content', |
||||
'205' => 'Reset Content', |
||||
'206' => 'Partial Content', |
||||
'207' => 'Multi-Status', |
||||
'208' => 'Already Reported', |
||||
'226' => 'IM Used', |
||||
'300' => 'Multiple Choices', |
||||
'301' => 'Moved Permanently', |
||||
'302' => 'Found', |
||||
'303' => 'See Other', |
||||
'304' => 'Not Modified', |
||||
'305' => 'Use Proxy', |
||||
'307' => 'Temporary Redirect', |
||||
'308' => 'Permanent Redirect', |
||||
'400' => 'Bad Request', |
||||
'401' => 'Unauthorized', |
||||
'402' => 'Payment Required', |
||||
'403' => 'Forbidden', |
||||
'404' => 'Not Found', |
||||
'405' => 'Method Not Allowed', |
||||
'406' => 'Not Acceptable', |
||||
'407' => 'Proxy Authentication Required', |
||||
'408' => 'Request Timeout', |
||||
'409' => 'Conflict', |
||||
'410' => 'Gone', |
||||
'411' => 'Length Required', |
||||
'412' => 'Precondition Failed', |
||||
'413' => 'Payload Too Large', |
||||
'414' => 'URI Too Long', |
||||
'415' => 'Unsupported Media Type', |
||||
'416' => 'Range Not Satisfiable', |
||||
'417' => 'Expectation Failed', |
||||
'418' => 'I\'m a teapot', |
||||
'419' => 'Session Has Expired', |
||||
'421' => 'Misdirected Request', |
||||
'422' => 'Unprocessable Entity', |
||||
'423' => 'Locked', |
||||
'424' => 'Failed Dependency', |
||||
'425' => 'Too Early', |
||||
'426' => 'Upgrade Required', |
||||
'428' => 'Precondition Required', |
||||
'429' => 'Too Many Requests', |
||||
'431' => 'Request Header Fields Too Large', |
||||
'444' => 'Connection Closed Without Response', |
||||
'449' => 'Retry With', |
||||
'451' => 'Unavailable For Legal Reasons', |
||||
'499' => 'Client Closed Request', |
||||
'500' => 'Internal Server Error', |
||||
'501' => 'Not Implemented', |
||||
'502' => 'Bad Gateway', |
||||
'503' => 'Maintenance Mode', |
||||
'504' => 'Gateway Timeout', |
||||
'505' => 'HTTP Version Not Supported', |
||||
'506' => 'Variant Also Negotiates', |
||||
'507' => 'Insufficient Storage', |
||||
'508' => 'Loop Detected', |
||||
'509' => 'Bandwidth Limit Exceeded', |
||||
'510' => 'Not Extended', |
||||
'511' => 'Network Authentication Required', |
||||
'520' => 'Unknown Error', |
||||
'521' => 'Web Server is Down', |
||||
'522' => 'Connection Timed Out', |
||||
'523' => 'Origin Is Unreachable', |
||||
'524' => 'A Timeout Occurred', |
||||
'525' => 'SSL Handshake Failed', |
||||
'526' => 'Invalid SSL Certificate', |
||||
'527' => 'Railgun Error', |
||||
'598' => 'Network Read Timeout Error', |
||||
'599' => 'Network Connect Timeout Error', |
||||
'unknownError' => 'Unknown Error', |
||||
]; |
@ -0,0 +1,8 @@ |
||||
<?php |
||||
|
||||
declare(strict_types=1); |
||||
|
||||
return [ |
||||
'next' => 'Next »', |
||||
'previous' => '« Previous', |
||||
]; |
@ -0,0 +1,11 @@ |
||||
<?php |
||||
|
||||
declare(strict_types=1); |
||||
|
||||
return [ |
||||
'reset' => 'Your password has been reset.', |
||||
'sent' => 'We have emailed your password reset link.', |
||||
'throttled' => 'Please wait before retrying.', |
||||
'token' => 'This password reset token is invalid.', |
||||
'user' => 'We can\'t find a user with that email address.', |
||||
]; |
@ -0,0 +1,280 @@ |
||||
<?php |
||||
|
||||
declare(strict_types=1); |
||||
|
||||
return [ |
||||
'accepted' => 'The :attribute field must be accepted.', |
||||
'accepted_if' => 'The :attribute field must be accepted when :other is :value.', |
||||
'active_url' => 'The :attribute field must be a valid URL.', |
||||
'after' => 'The :attribute field must be a date after :date.', |
||||
'after_or_equal' => 'The :attribute field must be a date after or equal to :date.', |
||||
'alpha' => 'The :attribute field must only contain letters.', |
||||
'alpha_dash' => 'The :attribute field must only contain letters, numbers, dashes, and underscores.', |
||||
'alpha_num' => 'The :attribute field must only contain letters and numbers.', |
||||
'array' => 'The :attribute field must be an array.', |
||||
'ascii' => 'The :attribute field must only contain single-byte alphanumeric characters and symbols.', |
||||
'before' => 'The :attribute field must be a date before :date.', |
||||
'before_or_equal' => 'The :attribute field must be a date before or equal to :date.', |
||||
'between' => [ |
||||
'array' => 'The :attribute field must have between :min and :max items.', |
||||
'file' => 'The :attribute field must be between :min and :max kilobytes.', |
||||
'numeric' => 'The :attribute field must be between :min and :max.', |
||||
'string' => 'The :attribute field must be between :min and :max characters.', |
||||
], |
||||
'boolean' => 'The :attribute field must be true or false.', |
||||
'can' => 'The :attribute field contains an unauthorized value.', |
||||
'confirmed' => 'The :attribute field confirmation does not match.', |
||||
'contains' => 'The :attribute field is missing a required value.', |
||||
'current_password' => 'The password is incorrect.', |
||||
'date' => 'The :attribute field must be a valid date.', |
||||
'date_equals' => 'The :attribute field must be a date equal to :date.', |
||||
'date_format' => 'The :attribute field must match the format :format.', |
||||
'decimal' => 'The :attribute field must have :decimal decimal places.', |
||||
'declined' => 'The :attribute field must be declined.', |
||||
'declined_if' => 'The :attribute field must be declined when :other is :value.', |
||||
'different' => 'The :attribute field and :other must be different.', |
||||
'digits' => 'The :attribute field must be :digits digits.', |
||||
'digits_between' => 'The :attribute field must be between :min and :max digits.', |
||||
'dimensions' => 'The :attribute field has invalid image dimensions.', |
||||
'distinct' => 'The :attribute field has a duplicate value.', |
||||
'doesnt_end_with' => 'The :attribute field must not end with one of the following: :values.', |
||||
'doesnt_start_with' => 'The :attribute field must not start with one of the following: :values.', |
||||
'email' => 'The :attribute field must be a valid email address.', |
||||
'ends_with' => 'The :attribute field must end with one of the following: :values.', |
||||
'enum' => 'The selected :attribute is invalid.', |
||||
'exists' => 'The selected :attribute is invalid.', |
||||
'extensions' => 'The :attribute field must have one of the following extensions: :values.', |
||||
'file' => 'The :attribute field must be a file.', |
||||
'filled' => 'The :attribute field must have a value.', |
||||
'gt' => [ |
||||
'array' => 'The :attribute field must have more than :value items.', |
||||
'file' => 'The :attribute field must be greater than :value kilobytes.', |
||||
'numeric' => 'The :attribute field must be greater than :value.', |
||||
'string' => 'The :attribute field must be greater than :value characters.', |
||||
], |
||||
'gte' => [ |
||||
'array' => 'The :attribute field must have :value items or more.', |
||||
'file' => 'The :attribute field must be greater than or equal to :value kilobytes.', |
||||
'numeric' => 'The :attribute field must be greater than or equal to :value.', |
||||
'string' => 'The :attribute field must be greater than or equal to :value characters.', |
||||
], |
||||
'hex_color' => 'The :attribute field must be a valid hexadecimal color.', |
||||
'image' => 'The :attribute field must be an image.', |
||||
'in' => 'The selected :attribute is invalid.', |
||||
'in_array' => 'The :attribute field must exist in :other.', |
||||
'integer' => 'The :attribute field must be an integer.', |
||||
'ip' => 'The :attribute field must be a valid IP address.', |
||||
'ipv4' => 'The :attribute field must be a valid IPv4 address.', |
||||
'ipv6' => 'The :attribute field must be a valid IPv6 address.', |
||||
'json' => 'The :attribute field must be a valid JSON string.', |
||||
'list' => 'The :attribute field must be a list.', |
||||
'lowercase' => 'The :attribute field must be lowercase.', |
||||
'lt' => [ |
||||
'array' => 'The :attribute field must have less than :value items.', |
||||
'file' => 'The :attribute field must be less than :value kilobytes.', |
||||
'numeric' => 'The :attribute field must be less than :value.', |
||||
'string' => 'The :attribute field must be less than :value characters.', |
||||
], |
||||
'lte' => [ |
||||
'array' => 'The :attribute field must not have more than :value items.', |
||||
'file' => 'The :attribute field must be less than or equal to :value kilobytes.', |
||||
'numeric' => 'The :attribute field must be less than or equal to :value.', |
||||
'string' => 'The :attribute field must be less than or equal to :value characters.', |
||||
], |
||||
'mac_address' => 'The :attribute field must be a valid MAC address.', |
||||
'max' => [ |
||||
'array' => 'The :attribute field must not have more than :max items.', |
||||
'file' => 'The :attribute field must not be greater than :max kilobytes.', |
||||
'numeric' => 'The :attribute field must not be greater than :max.', |
||||
'string' => 'The :attribute field must not be greater than :max characters.', |
||||
], |
||||
'max_digits' => 'The :attribute field must not have more than :max digits.', |
||||
'mimes' => 'The :attribute field must be a file of type: :values.', |
||||
'mimetypes' => 'The :attribute field must be a file of type: :values.', |
||||
'min' => [ |
||||
'array' => 'The :attribute field must have at least :min items.', |
||||
'file' => 'The :attribute field must be at least :min kilobytes.', |
||||
'numeric' => 'The :attribute field must be at least :min.', |
||||
'string' => 'The :attribute field must be at least :min characters.', |
||||
], |
||||
'min_digits' => 'The :attribute field must have at least :min digits.', |
||||
'missing' => 'The :attribute field must be missing.', |
||||
'missing_if' => 'The :attribute field must be missing when :other is :value.', |
||||
'missing_unless' => 'The :attribute field must be missing unless :other is :value.', |
||||
'missing_with' => 'The :attribute field must be missing when :values is present.', |
||||
'missing_with_all' => 'The :attribute field must be missing when :values are present.', |
||||
'multiple_of' => 'The :attribute field must be a multiple of :value.', |
||||
'not_in' => 'The selected :attribute is invalid.', |
||||
'not_regex' => 'The :attribute field format is invalid.', |
||||
'numeric' => 'The :attribute field must be a number.', |
||||
'password' => [ |
||||
'letters' => 'The :attribute field must contain at least one letter.', |
||||
'mixed' => 'The :attribute field must contain at least one uppercase and one lowercase letter.', |
||||
'numbers' => 'The :attribute field must contain at least one number.', |
||||
'symbols' => 'The :attribute field must contain at least one symbol.', |
||||
'uncompromised' => 'The given :attribute has appeared in a data leak. Please choose a different :attribute.', |
||||
], |
||||
'present' => 'The :attribute field must be present.', |
||||
'present_if' => 'The :attribute field must be present when :other is :value.', |
||||
'present_unless' => 'The :attribute field must be present unless :other is :value.', |
||||
'present_with' => 'The :attribute field must be present when :values is present.', |
||||
'present_with_all' => 'The :attribute field must be present when :values are 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 field 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_if_accepted' => 'The :attribute field is required when :other is accepted.', |
||||
'required_if_declined' => 'The :attribute field is required when :other is declined.', |
||||
'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.', |
||||
'same' => 'The :attribute field must match :other.', |
||||
'size' => [ |
||||
'array' => 'The :attribute field must contain :size items.', |
||||
'file' => 'The :attribute field must be :size kilobytes.', |
||||
'numeric' => 'The :attribute field must be :size.', |
||||
'string' => 'The :attribute field must be :size characters.', |
||||
], |
||||
'starts_with' => 'The :attribute field must start with one of the following: :values.', |
||||
'string' => 'The :attribute field must be a string.', |
||||
'timezone' => 'The :attribute field must be a valid timezone.', |
||||
'ulid' => 'The :attribute field must be a valid ULID.', |
||||
'unique' => 'The :attribute has already been taken.', |
||||
'uploaded' => 'The :attribute failed to upload.', |
||||
'uppercase' => 'The :attribute field must be uppercase.', |
||||
'url' => 'The :attribute field must be a valid URL.', |
||||
'uuid' => 'The :attribute field must be a valid UUID.', |
||||
'attributes' => [ |
||||
'address' => 'address', |
||||
'affiliate_url' => 'affiliate URL', |
||||
'age' => 'age', |
||||
'amount' => 'amount', |
||||
'announcement' => 'announcement', |
||||
'area' => 'area', |
||||
'audience_prize' => 'audience prize', |
||||
'audience_winner' => 'audience winner', |
||||
'available' => 'available', |
||||
'birthday' => 'birthday', |
||||
'body' => 'body', |
||||
'city' => 'city', |
||||
'company' => 'company', |
||||
'compilation' => 'compilation', |
||||
'concept' => 'concept', |
||||
'conditions' => 'conditions', |
||||
'content' => 'content', |
||||
'contest' => 'contest', |
||||
'country' => 'country', |
||||
'cover' => 'cover', |
||||
'created_at' => 'created at', |
||||
'creator' => 'creator', |
||||
'currency' => 'currency', |
||||
'current_password' => 'current password', |
||||
'customer' => 'customer', |
||||
'date' => 'date', |
||||
'date_of_birth' => 'date of birth', |
||||
'dates' => 'dates', |
||||
'day' => 'day', |
||||
'deleted_at' => 'deleted at', |
||||
'description' => 'description', |
||||
'display_type' => 'display type', |
||||
'district' => 'district', |
||||
'duration' => 'duration', |
||||
'email' => 'email', |
||||
'excerpt' => 'excerpt', |
||||
'filter' => 'filter', |
||||
'finished_at' => 'finished at', |
||||
'first_name' => 'first name', |
||||
'gender' => 'gender', |
||||
'grand_prize' => 'grand prize', |
||||
'group' => 'group', |
||||
'hour' => 'hour', |
||||
'image' => 'image', |
||||
'image_desktop' => 'desktop image', |
||||
'image_main' => 'main image', |
||||
'image_mobile' => 'mobile image', |
||||
'images' => 'images', |
||||
'is_audience_winner' => 'is audience winner', |
||||
'is_hidden' => 'is hidden', |
||||
'is_subscribed' => 'is subscribed', |
||||
'is_visible' => 'is visible', |
||||
'is_winner' => 'is winner', |
||||
'items' => 'items', |
||||
'key' => 'key', |
||||
'last_name' => 'last name', |
||||
'lesson' => 'lesson', |
||||
'line_address_1' => 'line address 1', |
||||
'line_address_2' => 'line address 2', |
||||
'login' => 'login', |
||||
'message' => 'message', |
||||
'middle_name' => 'middle name', |
||||
'minute' => 'minute', |
||||
'mobile' => 'mobile', |
||||
'month' => 'month', |
||||
'name' => 'name', |
||||
'national_code' => 'national code', |
||||
'number' => 'number', |
||||
'password' => 'password', |
||||
'password_confirmation' => 'password confirmation', |
||||
'phone' => 'phone', |
||||
'photo' => 'photo', |
||||
'portfolio' => 'portfolio', |
||||
'postal_code' => 'postal code', |
||||
'preview' => 'preview', |
||||
'price' => 'price', |
||||
'product_id' => 'product ID', |
||||
'product_uid' => 'product UID', |
||||
'product_uuid' => 'product UUID', |
||||
'promo_code' => 'promo code', |
||||
'province' => 'province', |
||||
'quantity' => 'quantity', |
||||
'reason' => 'reason', |
||||
'recaptcha_response_field' => 'recaptcha response field', |
||||
'referee' => 'referee', |
||||
'referees' => 'referees', |
||||
'reject_reason' => 'reject reason', |
||||
'remember' => 'remember', |
||||
'restored_at' => 'restored at', |
||||
'result_text_under_image' => 'result text under image', |
||||
'role' => 'role', |
||||
'rule' => 'rule', |
||||
'rules' => 'rules', |
||||
'second' => 'second', |
||||
'sex' => 'sex', |
||||
'shipment' => 'shipment', |
||||
'short_text' => 'short text', |
||||
'size' => 'size', |
||||
'skills' => 'skills', |
||||
'slug' => 'slug', |
||||
'specialization' => 'specialization', |
||||
'started_at' => 'started at', |
||||
'state' => 'state', |
||||
'status' => 'status', |
||||
'street' => 'street', |
||||
'student' => 'student', |
||||
'subject' => 'subject', |
||||
'tag' => 'tag', |
||||
'tags' => 'tags', |
||||
'teacher' => 'teacher', |
||||
'terms' => 'terms', |
||||
'test_description' => 'test description', |
||||
'test_locale' => 'test locale', |
||||
'test_name' => 'test name', |
||||
'text' => 'text', |
||||
'time' => 'time', |
||||
'title' => 'title', |
||||
'type' => 'type', |
||||
'updated_at' => 'updated at', |
||||
'user' => 'user', |
||||
'username' => 'username', |
||||
'value' => 'value', |
||||
'winner' => 'winner', |
||||
'work' => 'work', |
||||
'year' => 'year', |
||||
], |
||||
]; |
@ -0,0 +1,263 @@ |
||||
{ |
||||
"(and :count more error)": "(et :count erreur en plus)", |
||||
"(and :count more errors)": "(et :count erreur en plus)|(et :count erreurs en plus)|(et :count erreurs en plus)", |
||||
"A decryption key is required.": "A decryption key is required.", |
||||
"A new verification link has been sent to the email address you provided during registration.": "Un nouveau lien de vérification a été envoyé à l'adresse e-mail que vous avez indiquée lors de votre inscription.", |
||||
"A new verification link has been sent to your email address.": "Un nouveau lien de vérification a été envoyé à votre adresse e-mail.", |
||||
"A Timeout Occurred": "Temps d'attente dépassé", |
||||
"Accept": "Accepter", |
||||
"Accepted": "Accepté", |
||||
"Action": "Action", |
||||
"Actions": "Actions", |
||||
"Add": "Ajouter", |
||||
"Add :name": "Ajouter :name", |
||||
"Admin": "Administrateur", |
||||
"Agree": "Accepter", |
||||
"All rights reserved.": "Tous droits réservés.", |
||||
"Already registered?": "Déjà inscrit·e ?", |
||||
"Already Reported": "Déjà rapporté", |
||||
"Archive": "Archive", |
||||
"Are you sure you want to delete your account?": "Êtes-vous sûr·e de vouloir supprimer votre compte ?", |
||||
"Assign": "Attribuer", |
||||
"Associate": "Associé", |
||||
"Attach": "Attacher", |
||||
"Bad Gateway": "Passerelle invalide", |
||||
"Bad Request": "Requête erronée", |
||||
"Bandwidth Limit Exceeded": "Limite de bande passante dépassée", |
||||
"Browse": "Parcourir", |
||||
"Cancel": "Annuler", |
||||
"Choose": "Choisir", |
||||
"Choose :name": "Choisir :name", |
||||
"Choose File": "Choisir le fichier", |
||||
"Choose Image": "Choisir une image", |
||||
"Click here to re-send the verification email.": "Cliquez ici pour renvoyer l'e-mail de vérification.", |
||||
"Click to copy": "Cliquer pour copier", |
||||
"Client Closed Request": "Demande fermée par le client", |
||||
"Close": "Fermer", |
||||
"Collapse": "Réduire", |
||||
"Collapse All": "Réduire tout", |
||||
"Comment": "Commentaire", |
||||
"Confirm": "Confirmer", |
||||
"Confirm Password": "Confirmer le mot de passe", |
||||
"Conflict": "Conflit", |
||||
"Connect": "Connecter", |
||||
"Connection Closed Without Response": "Connexion fermée sans réponse", |
||||
"Connection Timed Out": "La connexion a expiré", |
||||
"Continue": "Continuer", |
||||
"Create": "Créer", |
||||
"Create :name": "Créer :name", |
||||
"Created": "Créé", |
||||
"Current Password": "Mot de passe actuel", |
||||
"Dashboard": "Tableau de bord", |
||||
"Delete": "Supprimer", |
||||
"Delete :name": "Supprimer :name", |
||||
"Delete Account": "Supprimer le compte", |
||||
"Detach": "Détacher", |
||||
"Details": "Détails", |
||||
"Disable": "Désactiver", |
||||
"Discard": "Jeter", |
||||
"Done": "Fait", |
||||
"Down": "Descendre", |
||||
"Duplicate": "Dupliquer", |
||||
"Duplicate :name": "Dupliquer :name", |
||||
"Edit": "Éditer", |
||||
"Edit :name": "Modifier :name", |
||||
"Email": "E-mail", |
||||
"email": "Le champ :attribute doit être une adresse e-mail valide.", |
||||
"Email Password Reset Link": "Lien de réinitialisation du mot de passe", |
||||
"Enable": "Activer", |
||||
"Encrypted environment file already exists.": "Encrypted environment file already exists.", |
||||
"Encrypted environment file not found.": "Encrypted environment file not found.", |
||||
"Ensure your account is using a long, random password to stay secure.": "Assurez-vous d'utiliser un mot de passe long et aléatoire pour sécuriser votre compte.", |
||||
"Environment file already exists.": "Environment file already exists.", |
||||
"Environment file not found.": "Environment file not found.", |
||||
"errors": "les erreurs", |
||||
"Expand": "Développer", |
||||
"Expand All": "Développer tout", |
||||
"Expectation Failed": "Comportement attendu insatisfaisant", |
||||
"Explanation": "Explication", |
||||
"Export": "Exporter", |
||||
"Export :name": "Exporter :name", |
||||
"Failed Dependency": "Dépendance échouée", |
||||
"File": "Déposer", |
||||
"Files": "Des dossiers", |
||||
"Forbidden": "Interdit", |
||||
"Forgot your password?": "Mot de passe oublié ?", |
||||
"Forgot your password? No problem. Just let us know your email address and we will email you a password reset link that will allow you to choose a new one.": "Mot de passe oublié ? Pas de soucis. Veuillez nous indiquer votre adresse e-mail et nous vous enverrons un lien de réinitialisation du mot de passe.", |
||||
"Found": "Trouvé", |
||||
"Gateway Timeout": "Temps d'attente de la passerelle dépassé", |
||||
"Go Home": "Aller à l'accueil", |
||||
"Go to page :page": "Aller à la page :page", |
||||
"Gone": "Disparu", |
||||
"Hello!": "Bonjour !", |
||||
"Hide": "Cacher", |
||||
"Hide :name": "Cacher :name", |
||||
"Home": "Accueil", |
||||
"HTTP Version Not Supported": "Version HTTP non prise en charge", |
||||
"I'm a teapot": "Je suis une théière", |
||||
"If you did not create an account, no further action is required.": "Si vous n'avez pas créé de compte, vous pouvez ignorer ce message.", |
||||
"If you did not request a password reset, no further action is required.": "Si vous n'avez pas demandé de réinitialisation de mot de passe, vous pouvez ignorer ce message.", |
||||
"If you're having trouble clicking the \":actionText\" button, copy and paste the URL below\ninto your web browser:": "Si vous avez des difficultés à cliquer sur le bouton \":actionText\", copiez et collez l'URL ci-dessous\ndans votre navigateur Web :", |
||||
"IM Used": "IM utilisé", |
||||
"Image": "Image", |
||||
"Impersonate": "Utiliser un autre compte", |
||||
"Impersonation": "Imitation", |
||||
"Import": "Importer", |
||||
"Import :name": "Importer :name", |
||||
"Insufficient Storage": "Espace insuffisant", |
||||
"Internal Server Error": "Erreur interne du serveur", |
||||
"Introduction": "Introduction", |
||||
"Invalid filename.": "Invalid filename.", |
||||
"Invalid JSON was returned from the route.": "Un JSON non valide a été renvoyé par la route.", |
||||
"Invalid SSL Certificate": "Certificat SSL invalide", |
||||
"length": "length", |
||||
"Length Required": "Longueur requise", |
||||
"Like": "Aimer", |
||||
"Load": "Charger", |
||||
"Localize": "Localiser", |
||||
"Location": "Emplacement", |
||||
"Locked": "Verrouillé", |
||||
"Log In": "Se connecter", |
||||
"Log in": "Se connecter", |
||||
"Log Out": "Se déconnecter", |
||||
"Login": "Connexion", |
||||
"Logout": "Déconnexion", |
||||
"Loop Detected": "Boucle détectée", |
||||
"Maintenance Mode": "Mode de maintenance", |
||||
"Method Not Allowed": "Méthode non autorisée", |
||||
"Misdirected Request": "Demande mal dirigée", |
||||
"Moved Permanently": "Déplacé de façon permanente", |
||||
"Multi-Status": "Statut multiple", |
||||
"Multiple Choices": "Choix multiples", |
||||
"Name": "Nom", |
||||
"name": "nom", |
||||
"Network Authentication Required": "Authentification réseau requise", |
||||
"Network Connect Timeout Error": "Temps d'attente de la connexion réseau dépassé", |
||||
"Network Read Timeout Error": "Temps d'attente de la lecture réseau dépassé", |
||||
"New": "Nouveau", |
||||
"New :name": "Nouveau :name", |
||||
"New Password": "Nouveau mot de passe", |
||||
"No": "Non", |
||||
"No Content": "Pas de contenu", |
||||
"Non-Authoritative Information": "Informations non certifiées", |
||||
"Not Acceptable": "Pas acceptable", |
||||
"Not Extended": "Non prolongé", |
||||
"Not Found": "Non trouvé", |
||||
"Not Implemented": "Non implémenté", |
||||
"Not Modified": "Non modifié", |
||||
"of": "de", |
||||
"OK": "OK", |
||||
"Once your account is deleted, all of its resources and data will be permanently deleted. Before deleting your account, please download any data or information that you wish to retain.": "Une fois que votre compte est supprimé, toutes vos données sont supprimées définitivement. Avant de supprimer votre compte, veuillez télécharger vos données.", |
||||
"Once your account is deleted, all of its resources and data will be permanently deleted. Please enter your password to confirm you would like to permanently delete your account.": "Une fois que votre compte est supprimé, toutes les données associées seront supprimées définitivement. Pour confirmer que vous voulez supprimer définitivement votre compte, renseignez votre mot de passe.", |
||||
"Open": "Ouvrir", |
||||
"Open in a current window": "Ouvrir dans une fenêtre actuelle", |
||||
"Open in a new window": "Ouvrir dans une nouvelle fenêtre", |
||||
"Open in a parent frame": "Ouvrir dans un cadre parent", |
||||
"Open in the topmost frame": "Ouvrir dans le cadre le plus haut", |
||||
"Open on the website": "Ouvrir sur le site", |
||||
"Origin Is Unreachable": "L'origine est inaccessible", |
||||
"Page Expired": "Page expirée", |
||||
"Pagination Navigation": "Pagination", |
||||
"Partial Content": "Contenu partiel", |
||||
"Password": "Mot de passe", |
||||
"password": "Le mot de passe est incorrect", |
||||
"Payload Too Large": "Charge utile trop grande", |
||||
"Payment Required": "Paiement requis", |
||||
"Permanent Redirect": "Redirection permanente", |
||||
"Please click the button below to verify your email address.": "Veuillez cliquer sur le bouton ci-dessous pour vérifier votre adresse e-mail :", |
||||
"Precondition Failed": "La précondition a échoué", |
||||
"Precondition Required": "Condition préalable requise", |
||||
"Preview": "Aperçu", |
||||
"Price": "Prix", |
||||
"Processing": "En traitement", |
||||
"Profile": "Profil", |
||||
"Profile Information": "Informations du profil", |
||||
"Proxy Authentication Required": "Authentification proxy requise", |
||||
"Railgun Error": "Erreur de Railgun", |
||||
"Range Not Satisfiable": "Plage non satisfaisante", |
||||
"Record": "Enregistrer", |
||||
"Regards,": "Cordialement,", |
||||
"Register": "Inscription", |
||||
"Remember me": "Se souvenir de moi", |
||||
"Request Header Fields Too Large": "Champs d'en-tête de requête trop grands", |
||||
"Request Timeout": "Temps d'attente de la requête dépassé", |
||||
"Resend Verification Email": "Renvoyer l'e-mail de vérification", |
||||
"Reset Content": "Réinitialiser le contenu", |
||||
"Reset Password": "Réinitialisation du mot de passe", |
||||
"Reset Password Notification": "Notification de réinitialisation du mot de passe", |
||||
"Restore": "Restaurer", |
||||
"Restore :name": "Restaurer :name", |
||||
"results": "résultats", |
||||
"Retry With": "Réessayer avec", |
||||
"Save": "Sauvegarder", |
||||
"Save & Close": "Sauvegarder et fermer", |
||||
"Save & Return": "Sauvegarder et retourner", |
||||
"Save :name": "Sauvegarder :name", |
||||
"Saved.": "Sauvegardé.", |
||||
"Search": "Rechercher", |
||||
"Search :name": "Chercher :name", |
||||
"See Other": "Voir autre", |
||||
"Select": "Sélectionner", |
||||
"Select All": "Tout sélectionner", |
||||
"Send": "Envoyer", |
||||
"Server Error": "Erreur serveur", |
||||
"Service Unavailable": "Service indisponible", |
||||
"Session Has Expired": "La session a expiré", |
||||
"Settings": "Paramètres", |
||||
"Show": "Afficher", |
||||
"Show :name": "Afficher :name", |
||||
"Show All": "Afficher tout", |
||||
"Showing": "Montrant", |
||||
"Sign In": "Se connecter", |
||||
"Solve": "Résoudre", |
||||
"SSL Handshake Failed": "Échec de la prise de contact SSL", |
||||
"Start": "Commencer", |
||||
"Stop": "Arrêter", |
||||
"Submit": "Soumettre", |
||||
"Subscribe": "S'abonner", |
||||
"Switch": "Changer", |
||||
"Switch To Role": "Passer au rôle", |
||||
"Switching Protocols": "Protocoles de commutation", |
||||
"Tag": "Mot clé", |
||||
"Tags": "Mots clés", |
||||
"Temporary Redirect": "Redirection temporaire", |
||||
"Thanks for signing up! Before getting started, could you verify your email address by clicking on the link we just emailed to you? If you didn't receive the email, we will gladly send you another.": "Merci de vous être inscrit(e) ! Avant de commencer, veuillez vérifier votre adresse e-mail en cliquant sur le lien que nous venons de vous envoyer. Si vous n'avez pas reçu cet e-mail, nous vous en enverrons un nouveau avec plaisir.", |
||||
"The given data was invalid.": "La donnée renseignée est incorrecte.", |
||||
"The response is not a streamed response.": "La réponse n'est pas une réponse diffusée.", |
||||
"The response is not a view.": "La réponse n'est pas une vue.", |
||||
"This action is unauthorized.": "Cette action n'est pas autorisée.", |
||||
"This is a secure area of the application. Please confirm your password before continuing.": "Ceci est une zone sécurisée de l'application. Veuillez confirmer votre mot de passe avant de continuer.", |
||||
"This password reset link will expire in :count minutes.": "Ce lien de réinitialisation du mot de passe expirera dans :count minutes.", |
||||
"to": "à", |
||||
"Toggle navigation": "Afficher / masquer le menu de navigation", |
||||
"Too Early": "Trop tôt", |
||||
"Too Many Requests": "Trop de requêtes", |
||||
"Translate": "Traduire", |
||||
"Translate It": "Traduis le", |
||||
"Unauthorized": "Non autorisé", |
||||
"Unavailable For Legal Reasons": "Indisponible pour des raisons légales", |
||||
"Unknown Error": "Erreur inconnue", |
||||
"Unpack": "Déballer", |
||||
"Unprocessable Entity": "Entité non traitable", |
||||
"Unsubscribe": "Se désabonner", |
||||
"Unsupported Media Type": "Type de média non supporté", |
||||
"Up": "Monter", |
||||
"Update": "Mettre à jour", |
||||
"Update :name": "Mettre à jour :name", |
||||
"Update Password": "Mettre à jour le mot de passe", |
||||
"Update your account's profile information and email address.": "Modifier le profil associé à votre compte ainsi que votre adresse e-mail.", |
||||
"Upgrade Required": "Mise à niveau requise", |
||||
"URI Too Long": "URI trop long", |
||||
"Use Proxy": "Utiliser un proxy", |
||||
"User": "Utilisateur", |
||||
"Variant Also Negotiates": "La variante négocie également", |
||||
"Verify Email Address": "Vérifier l'adresse e-mail", |
||||
"View": "Vue", |
||||
"View :name": "Voir :name", |
||||
"Web Server is Down": "Le serveur Web est en panne", |
||||
"Whoops!": "Oups !", |
||||
"Yes": "Oui", |
||||
"You are receiving this email because we received a password reset request for your account.": "Vous recevez cet e-mail car nous avons reçu une demande de réinitialisation de mot de passe pour votre compte.", |
||||
"You're logged in!": "Vous êtes connecté·e !", |
||||
"Your email address is unverified.": "Votre adresse e-mail n'est pas vérifiée." |
||||
} |
@ -0,0 +1,119 @@ |
||||
<?php |
||||
|
||||
declare(strict_types=1); |
||||
|
||||
return [ |
||||
'accept' => 'Accepter', |
||||
'action' => 'Action', |
||||
'actions' => 'Actions', |
||||
'add' => 'Ajouter', |
||||
'admin' => 'Administrateur', |
||||
'agree' => 'Approuver', |
||||
'archive' => 'Archiver', |
||||
'assign' => 'Attribuer', |
||||
'associate' => 'Associer', |
||||
'attach' => 'Attacher', |
||||
'browse' => 'Parcourir', |
||||
'cancel' => 'Annuler', |
||||
'choose' => 'Choisir', |
||||
'choose_file' => 'Choisir le fichier', |
||||
'choose_image' => 'Choisir une image', |
||||
'click_to_copy' => 'Cliquer pour copier', |
||||
'close' => 'Fermer', |
||||
'collapse' => 'Réduire', |
||||
'collapse_all' => 'Réduire tout', |
||||
'comment' => 'Commentaire', |
||||
'confirm' => 'Confirmer', |
||||
'connect' => 'Connecter', |
||||
'create' => 'Créer', |
||||
'delete' => 'Supprimer', |
||||
'detach' => 'Détacher', |
||||
'details' => 'Détails', |
||||
'disable' => 'Désactiver', |
||||
'discard' => 'Jeter', |
||||
'done' => 'Fait', |
||||
'down' => 'Descendre', |
||||
'duplicate' => 'Dupliquer', |
||||
'edit' => 'Editer', |
||||
'enable' => 'Activer', |
||||
'expand' => 'Développer', |
||||
'expand_all' => 'Développer tout', |
||||
'explanation' => 'Explication', |
||||
'export' => 'Exporter', |
||||
'file' => 'Déposer', |
||||
'files' => 'Fichiers', |
||||
'go_home' => 'Aller à l\'accueil', |
||||
'hide' => 'Cacher', |
||||
'home' => 'Accueil', |
||||
'image' => 'Image', |
||||
'impersonate' => 'Imiter', |
||||
'impersonation' => 'Imitation', |
||||
'import' => 'Importer', |
||||
'introduction' => 'Introduction', |
||||
'like' => 'Aimer', |
||||
'load' => 'Charger', |
||||
'localize' => 'Localiser', |
||||
'log_in' => 'Se connecter', |
||||
'log_out' => 'Se déconnecter', |
||||
'named' => [ |
||||
'add' => 'Ajouter :name', |
||||
'choose' => 'Choisir :name', |
||||
'create' => 'Créer :name', |
||||
'delete' => 'Supprimer :name', |
||||
'duplicate' => 'Dupliquer :name', |
||||
'edit' => 'Editer :name', |
||||
'export' => 'Exporter :name', |
||||
'hide' => 'Cacher :name', |
||||
'import' => 'Importer :name', |
||||
'new' => 'Nouveau :name', |
||||
'restore' => 'Restaurer :name', |
||||
'save' => 'Sauvegarder :name', |
||||
'search' => 'Chercher :name', |
||||
'show' => 'Afficher :name', |
||||
'update' => 'Mettre à jour :name', |
||||
'view' => 'Voir :name', |
||||
], |
||||
'new' => 'Nouveau', |
||||
'no' => 'Non', |
||||
'open' => 'Ouvrir', |
||||
'open_website' => 'Ouvrir sur le site', |
||||
'preview' => 'Aperçu', |
||||
'price' => 'Prix', |
||||
'record' => 'Enregistrer', |
||||
'restore' => 'Restaurer', |
||||
'save' => 'Sauvegarder', |
||||
'save_and_close' => 'Sauvegarder et fermer', |
||||
'save_and_return' => 'Sauvegarder et retourner', |
||||
'search' => 'Chercher', |
||||
'select' => 'Sélectionner', |
||||
'select_all' => 'Tout sélectionner', |
||||
'send' => 'Envoyer', |
||||
'settings' => 'Paramètres', |
||||
'show' => 'Montrer', |
||||
'show_all' => 'Afficher tout', |
||||
'sign_in' => 'Se connecter', |
||||
'solve' => 'Résoudre', |
||||
'start' => 'Commencer', |
||||
'stop' => 'Arrêter', |
||||
'submit' => 'Soumettre', |
||||
'subscribe' => 'S\'abonner', |
||||
'switch' => 'Changer', |
||||
'switch_to_role' => 'Passer au rôle', |
||||
'tag' => 'Mot clé', |
||||
'tags' => 'Mots clés', |
||||
'target_link' => [ |
||||
'blank' => 'Ouvrir dans une nouvelle fenêtre', |
||||
'parent' => 'Ouvrir dans la fenêtre parente', |
||||
'self' => 'Ouvrir dans la fenêtre actuelle', |
||||
'top' => 'Ouvrir dans le cadre le plus haut', |
||||
], |
||||
'translate' => 'Traduire', |
||||
'translate_it' => 'Traduis le', |
||||
'unpack' => 'Déballer', |
||||
'unsubscribe' => 'Se désabonner', |
||||
'up' => 'Monter', |
||||
'update' => 'Mettre à jour', |
||||
'user' => 'Utilisateur', |
||||
'view' => 'Voir', |
||||
'yes' => 'Oui', |
||||
]; |
@ -0,0 +1,9 @@ |
||||
<?php |
||||
|
||||
declare(strict_types=1); |
||||
|
||||
return [ |
||||
'failed' => 'Ces identifiants ne correspondent pas à nos enregistrements.', |
||||
'password' => 'Le mot de passe est incorrect', |
||||
'throttle' => 'Tentatives de connexion trop nombreuses. Veuillez essayer de nouveau dans :seconds secondes.', |
||||
]; |
@ -0,0 +1,84 @@ |
||||
<?php |
||||
|
||||
declare(strict_types=1); |
||||
|
||||
return [ |
||||
'0' => 'Erreur inconnue', |
||||
'100' => 'Continuer', |
||||
'101' => 'Protocoles de commutation', |
||||
'102' => 'En traitement', |
||||
'200' => 'OK', |
||||
'201' => 'Créé', |
||||
'202' => 'Accepté', |
||||
'203' => 'Informations non certifiées', |
||||
'204' => 'Pas de contenu', |
||||
'205' => 'Réinitialiser le contenu', |
||||
'206' => 'Contenu partiel', |
||||
'207' => 'Statut multiple', |
||||
'208' => 'Déjà rapporté', |
||||
'226' => 'IM utilisé', |
||||
'300' => 'Choix multiples', |
||||
'301' => 'Déplacé de façon permanente', |
||||
'302' => 'A trouvé', |
||||
'303' => 'Voir autre', |
||||
'304' => 'Non modifié', |
||||
'305' => 'Utiliser un proxy', |
||||
'307' => 'Redirection temporaire', |
||||
'308' => 'Redirection permanente', |
||||
'400' => 'Requête invalide', |
||||
'401' => 'Non authentifié', |
||||
'402' => 'Paiement requis', |
||||
'403' => 'Interdit', |
||||
'404' => 'Page non trouvée', |
||||
'405' => 'Méthode non autorisée', |
||||
'406' => 'Non acceptable', |
||||
'407' => 'Authentification proxy requise', |
||||
'408' => 'Requête expirée', |
||||
'409' => 'Conflit', |
||||
'410' => 'Disparu', |
||||
'411' => 'Longueur requise', |
||||
'412' => 'La précondition a échoué', |
||||
'413' => 'Charge utile trop grande', |
||||
'414' => 'URI trop long', |
||||
'415' => 'Type de média non supporté', |
||||
'416' => 'Plage non satisfaisante', |
||||
'417' => 'Comportement attendu insatisfaisant', |
||||
'418' => 'Je suis une théière', |
||||
'419' => 'La session a expiré', |
||||
'421' => 'Demande mal dirigée', |
||||
'422' => 'Contenu non traitable', |
||||
'423' => 'Verrouillé', |
||||
'424' => 'Dépendance échouée', |
||||
'425' => 'Trop tôt', |
||||
'426' => 'Mise à niveau requise', |
||||
'428' => 'Condition préalable requise', |
||||
'429' => 'Trop de demandes', |
||||
'431' => 'Champs d\'en-tête de requête trop grands', |
||||
'444' => 'Connexion fermée sans réponse', |
||||
'449' => 'Réessayer avec', |
||||
'451' => 'Indisponible pour des raisons légales', |
||||
'499' => 'Demande fermée par le client', |
||||
'500' => 'Erreur interne dus erveur', |
||||
'501' => 'Non implémenté', |
||||
'502' => 'Mauvaise passerelle', |
||||
'503' => 'Service non disponible', |
||||
'504' => 'Temps d\'attente de la passerelle dépassé', |
||||
'505' => 'Version HTTP non prise en charge', |
||||
'506' => 'La variante négocie également', |
||||
'507' => 'Espace insuffisant', |
||||
'508' => 'Boucle détectée', |
||||
'509' => 'Limite de bande passante dépassée', |
||||
'510' => 'Non prolongé', |
||||
'511' => 'Authentification réseau requise', |
||||
'520' => 'Erreur inconnue', |
||||
'521' => 'Le serveur Web est en panne', |
||||
'522' => 'La connexion a expiré', |
||||
'523' => 'L\'origine est inaccessible', |
||||
'524' => 'Un dépassement de délai s\'est produit', |
||||
'525' => 'Échec de la prise de contact SSL', |
||||
'526' => 'Certificat SSL invalide', |
||||
'527' => 'Erreur de Railgun', |
||||
'598' => 'Temps d\'attente de la lecture réseau dépassé', |
||||
'599' => 'Temps d\'attente de la connexion réseau dépassé', |
||||
'unknownError' => 'Erreur inconnue', |
||||
]; |
@ -0,0 +1,8 @@ |
||||
<?php |
||||
|
||||
declare(strict_types=1); |
||||
|
||||
return [ |
||||
'next' => 'Suivant »', |
||||
'previous' => '« Précédent', |
||||
]; |
@ -0,0 +1,11 @@ |
||||
<?php |
||||
|
||||
declare(strict_types=1); |
||||
|
||||
return [ |
||||
'reset' => 'Votre mot de passe a été réinitialisé !', |
||||
'sent' => 'Nous vous avons envoyé par email le lien de réinitialisation du mot de passe !', |
||||
'throttled' => 'Veuillez patienter avant de réessayer.', |
||||
'token' => 'Ce jeton de réinitialisation du mot de passe n\'est pas valide.', |
||||
'user' => 'Aucun utilisateur n\'a été trouvé avec cette adresse email.', |
||||
]; |
@ -0,0 +1,280 @@ |
||||
<?php |
||||
|
||||
declare(strict_types=1); |
||||
|
||||
return [ |
||||
'accepted' => 'Le champ :attribute doit être accepté.', |
||||
'accepted_if' => 'Le champ :attribute doit être accepté quand :other a la valeur :value.', |
||||
'active_url' => 'Le champ :attribute n\'est pas une URL valide.', |
||||
'after' => 'Le champ :attribute doit être une date postérieure au :date.', |
||||
'after_or_equal' => 'Le champ :attribute doit être une date postérieure ou égale au :date.', |
||||
'alpha' => 'Le champ :attribute doit contenir uniquement des lettres.', |
||||
'alpha_dash' => 'Le champ :attribute doit contenir uniquement des lettres, des chiffres et des tirets.', |
||||
'alpha_num' => 'Le champ :attribute doit contenir uniquement des chiffres et des lettres.', |
||||
'array' => 'Le champ :attribute doit être un tableau.', |
||||
'ascii' => 'Le champ :attribute ne doit contenir que des caractères alphanumériques et des symboles codés sur un octet.', |
||||
'before' => 'Le champ :attribute doit être une date antérieure au :date.', |
||||
'before_or_equal' => 'Le champ :attribute doit être une date antérieure ou égale au :date.', |
||||
'between' => [ |
||||
'array' => 'Le tableau :attribute doit contenir entre :min et :max éléments.', |
||||
'file' => 'La taille du fichier de :attribute doit être comprise entre :min et :max kilo-octets.', |
||||
'numeric' => 'La valeur de :attribute doit être comprise entre :min et :max.', |
||||
'string' => 'Le texte :attribute doit contenir entre :min et :max caractères.', |
||||
], |
||||
'boolean' => 'Le champ :attribute doit être vrai ou faux.', |
||||
'can' => 'Le champ :attribute contient une valeur non autorisée.', |
||||
'confirmed' => 'Le champ de confirmation :attribute ne correspond pas.', |
||||
'contains' => 'Le champ :attribute manque une valeur requise.', |
||||
'current_password' => 'Le mot de passe est incorrect.', |
||||
'date' => 'Le champ :attribute n\'est pas une date valide.', |
||||
'date_equals' => 'Le champ :attribute doit être une date égale à :date.', |
||||
'date_format' => 'Le champ :attribute ne correspond pas au format :format.', |
||||
'decimal' => 'Le champ :attribute doit comporter :decimal décimales.', |
||||
'declined' => 'Le champ :attribute doit être décliné.', |
||||
'declined_if' => 'Le champ :attribute doit être décliné quand :other a la valeur :value.', |
||||
'different' => 'Les champs :attribute et :other doivent être différents.', |
||||
'digits' => 'Le champ :attribute doit contenir :digits chiffres.', |
||||
'digits_between' => 'Le champ :attribute doit contenir entre :min et :max chiffres.', |
||||
'dimensions' => 'La taille de l\'image :attribute n\'est pas conforme.', |
||||
'distinct' => 'Le champ :attribute a une valeur en double.', |
||||
'doesnt_end_with' => 'Le champ :attribute ne doit pas finir avec une des valeurs suivantes : :values.', |
||||
'doesnt_start_with' => 'Le champ :attribute ne doit pas commencer avec une des valeurs suivantes : :values.', |
||||
'email' => 'Le champ :attribute doit être une adresse e-mail valide.', |
||||
'ends_with' => 'Le champ :attribute doit se terminer par une des valeurs suivantes : :values', |
||||
'enum' => 'Le champ :attribute sélectionné est invalide.', |
||||
'exists' => 'Le champ :attribute sélectionné est invalide.', |
||||
'extensions' => 'Le champ :attribute doit avoir l\'une des extensions suivantes : :values.', |
||||
'file' => 'Le champ :attribute doit être un fichier.', |
||||
'filled' => 'Le champ :attribute doit avoir une valeur.', |
||||
'gt' => [ |
||||
'array' => 'Le tableau :attribute doit contenir plus de :value éléments.', |
||||
'file' => 'La taille du fichier de :attribute doit être supérieure à :value kilo-octets.', |
||||
'numeric' => 'La valeur de :attribute doit être supérieure à :value.', |
||||
'string' => 'Le texte :attribute doit contenir plus de :value caractères.', |
||||
], |
||||
'gte' => [ |
||||
'array' => 'Le tableau :attribute doit contenir au moins :value éléments.', |
||||
'file' => 'La taille du fichier de :attribute doit être supérieure ou égale à :value kilo-octets.', |
||||
'numeric' => 'La valeur de :attribute doit être supérieure ou égale à :value.', |
||||
'string' => 'Le texte :attribute doit contenir au moins :value caractères.', |
||||
], |
||||
'hex_color' => 'Le champ :attribute doit être une couleur hexadécimale valide.', |
||||
'image' => 'Le champ :attribute doit être une image.', |
||||
'in' => 'Le champ :attribute est invalide.', |
||||
'in_array' => 'Le champ :attribute n\'existe pas dans :other.', |
||||
'integer' => 'Le champ :attribute doit être un entier.', |
||||
'ip' => 'Le champ :attribute doit être une adresse IP valide.', |
||||
'ipv4' => 'Le champ :attribute doit être une adresse IPv4 valide.', |
||||
'ipv6' => 'Le champ :attribute doit être une adresse IPv6 valide.', |
||||
'json' => 'Le champ :attribute doit être un document JSON valide.', |
||||
'list' => 'Le champ :attribute doit être une liste.', |
||||
'lowercase' => 'Le champ :attribute doit être en minuscules.', |
||||
'lt' => [ |
||||
'array' => 'Le tableau :attribute doit contenir moins de :value éléments.', |
||||
'file' => 'La taille du fichier de :attribute doit être inférieure à :value kilo-octets.', |
||||
'numeric' => 'La valeur de :attribute doit être inférieure à :value.', |
||||
'string' => 'Le texte :attribute doit contenir moins de :value caractères.', |
||||
], |
||||
'lte' => [ |
||||
'array' => 'Le tableau :attribute doit contenir au plus :value éléments.', |
||||
'file' => 'La taille du fichier de :attribute doit être inférieure ou égale à :value kilo-octets.', |
||||
'numeric' => 'La valeur de :attribute doit être inférieure ou égale à :value.', |
||||
'string' => 'Le texte :attribute doit contenir au plus :value caractères.', |
||||
], |
||||
'mac_address' => 'Le champ :attribute doit être une adresse MAC valide.', |
||||
'max' => [ |
||||
'array' => 'Le tableau :attribute ne peut pas contenir plus que :max éléments.', |
||||
'file' => 'La taille du fichier de :attribute ne peut pas dépasser :max kilo-octets.', |
||||
'numeric' => 'La valeur de :attribute ne peut pas être supérieure à :max.', |
||||
'string' => 'Le texte de :attribute ne peut pas contenir plus de :max caractères.', |
||||
], |
||||
'max_digits' => 'Le champ :attribute ne doit pas avoir plus de :max chiffres.', |
||||
'mimes' => 'Le champ :attribute doit être un fichier de type : :values.', |
||||
'mimetypes' => 'Le champ :attribute doit être un fichier de type : :values.', |
||||
'min' => [ |
||||
'array' => 'Le tableau :attribute doit contenir au moins :min éléments.', |
||||
'file' => 'La taille du fichier de :attribute doit être supérieure ou égale à :min kilo-octets.', |
||||
'numeric' => 'La valeur de :attribute doit être supérieure ou égale à :min.', |
||||
'string' => 'Le texte de :attribute doit contenir au moins :min caractères.', |
||||
], |
||||
'min_digits' => 'Le champ :attribute doit avoir au moins :min chiffres.', |
||||
'missing' => 'Le champ :attribute doit être manquant.', |
||||
'missing_if' => 'Le champ :attribute doit être manquant quand :other a la valeur :value.', |
||||
'missing_unless' => 'Le champ :attribute doit être manquant sauf si :other a la valeur :value.', |
||||
'missing_with' => 'Le champ :attribute doit être manquant quand :values est présent.', |
||||
'missing_with_all' => 'Le champ :attribute doit être manquant quand :values sont présents.', |
||||
'multiple_of' => 'La valeur de :attribute doit être un multiple de :value', |
||||
'not_in' => 'Le champ :attribute sélectionné n\'est pas valide.', |
||||
'not_regex' => 'Le format du champ :attribute n\'est pas valide.', |
||||
'numeric' => 'Le champ :attribute doit contenir un nombre.', |
||||
'password' => [ |
||||
'letters' => 'Le champ :attribute doit contenir au moins une lettre.', |
||||
'mixed' => 'Le champ :attribute doit contenir au moins une majuscule et une minuscule.', |
||||
'numbers' => 'Le champ :attribute doit contenir au moins un chiffre.', |
||||
'symbols' => 'Le champ :attribute doit contenir au moins un symbole.', |
||||
'uncompromised' => 'La valeur du champ :attribute est apparue dans une fuite de données. Veuillez choisir une valeur différente.', |
||||
], |
||||
'present' => 'Le champ :attribute doit être présent.', |
||||
'present_if' => 'Le champ :attribute doit être présent lorsque :other est :value.', |
||||
'present_unless' => 'Le champ :attribute doit être présent sauf si :other vaut :value.', |
||||
'present_with' => 'Le champ :attribute doit être présent lorsque :values est présent.', |
||||
'present_with_all' => 'Le champ :attribute doit être présent lorsque :values sont présents.', |
||||
'prohibited' => 'Le champ :attribute est interdit.', |
||||
'prohibited_if' => 'Le champ :attribute est interdit quand :other a la valeur :value.', |
||||
'prohibited_unless' => 'Le champ :attribute est interdit à moins que :other est l\'une des valeurs :values.', |
||||
'prohibits' => 'Le champ :attribute interdit :other d\'être présent.', |
||||
'regex' => 'Le format du champ :attribute est invalide.', |
||||
'required' => 'Le champ :attribute est obligatoire.', |
||||
'required_array_keys' => 'Le champ :attribute doit contenir des entrées pour : :values.', |
||||
'required_if' => 'Le champ :attribute est obligatoire quand la valeur de :other est :value.', |
||||
'required_if_accepted' => 'Le champ :attribute est obligatoire quand le champ :other a été accepté.', |
||||
'required_if_declined' => 'The :attribute field is required when :other is declined.', |
||||
'required_unless' => 'Le champ :attribute est obligatoire sauf si :other est :values.', |
||||
'required_with' => 'Le champ :attribute est obligatoire quand :values est présent.', |
||||
'required_with_all' => 'Le champ :attribute est obligatoire quand :values sont présents.', |
||||
'required_without' => 'Le champ :attribute est obligatoire quand :values n\'est pas présent.', |
||||
'required_without_all' => 'Le champ :attribute est requis quand aucun de :values n\'est présent.', |
||||
'same' => 'Les champs :attribute et :other doivent être identiques.', |
||||
'size' => [ |
||||
'array' => 'Le tableau :attribute doit contenir :size éléments.', |
||||
'file' => 'La taille du fichier de :attribute doit être de :size kilo-octets.', |
||||
'numeric' => 'La valeur de :attribute doit être :size.', |
||||
'string' => 'Le texte de :attribute doit contenir :size caractères.', |
||||
], |
||||
'starts_with' => 'Le champ :attribute doit commencer avec une des valeurs suivantes : :values', |
||||
'string' => 'Le champ :attribute doit être une chaîne de caractères.', |
||||
'timezone' => 'Le champ :attribute doit être un fuseau horaire valide.', |
||||
'ulid' => 'Le champ :attribute doit être un ULID valide.', |
||||
'unique' => 'La valeur du champ :attribute est déjà utilisée.', |
||||
'uploaded' => 'Le fichier du champ :attribute n\'a pu être téléversé.', |
||||
'uppercase' => 'Le champ :attribute doit être en majuscules.', |
||||
'url' => 'Le format de l\'URL de :attribute n\'est pas valide.', |
||||
'uuid' => 'Le champ :attribute doit être un UUID valide', |
||||
'attributes' => [ |
||||
'address' => 'adresse', |
||||
'affiliate_url' => 'URL d\'affiliation', |
||||
'age' => 'âge', |
||||
'amount' => 'montant', |
||||
'announcement' => 'annonce', |
||||
'area' => 'zone', |
||||
'audience_prize' => 'prix du public', |
||||
'audience_winner' => 'audience winner', |
||||
'available' => 'disponible', |
||||
'birthday' => 'anniversaire', |
||||
'body' => 'corps', |
||||
'city' => 'ville', |
||||
'company' => 'company', |
||||
'compilation' => 'compilation', |
||||
'concept' => 'concept', |
||||
'conditions' => 'conditions', |
||||
'content' => 'contenu', |
||||
'contest' => 'contest', |
||||
'country' => 'pays', |
||||
'cover' => 'couverture', |
||||
'created_at' => 'date de création', |
||||
'creator' => 'créateur', |
||||
'currency' => 'devise', |
||||
'current_password' => 'mot de passe actuel', |
||||
'customer' => 'client', |
||||
'date' => 'date', |
||||
'date_of_birth' => 'date de naissance', |
||||
'dates' => 'rendez-vous', |
||||
'day' => 'jour', |
||||
'deleted_at' => 'date de suppression', |
||||
'description' => 'description', |
||||
'display_type' => 'type d\'affichage', |
||||
'district' => 'quartier', |
||||
'duration' => 'durée', |
||||
'email' => 'adresse e-mail', |
||||
'excerpt' => 'extrait', |
||||
'filter' => 'filtre', |
||||
'finished_at' => 'date de fin', |
||||
'first_name' => 'prénom', |
||||
'gender' => 'genre', |
||||
'grand_prize' => 'grand prix', |
||||
'group' => 'groupe', |
||||
'hour' => 'heure', |
||||
'image' => 'image', |
||||
'image_desktop' => 'image de bureau', |
||||
'image_main' => 'image principale', |
||||
'image_mobile' => 'image mobile', |
||||
'images' => 'images', |
||||
'is_audience_winner' => 'est le gagnant du public', |
||||
'is_hidden' => 'est caché', |
||||
'is_subscribed' => 'est abonné', |
||||
'is_visible' => 'est visible', |
||||
'is_winner' => 'est gagnant', |
||||
'items' => 'articles', |
||||
'key' => 'clé', |
||||
'last_name' => 'nom de famille', |
||||
'lesson' => 'leçon', |
||||
'line_address_1' => 'ligne d\'adresse 1', |
||||
'line_address_2' => 'ligne d\'adresse 2', |
||||
'login' => 'identifiant', |
||||
'message' => 'message', |
||||
'middle_name' => 'deuxième prénom', |
||||
'minute' => 'minute', |
||||
'mobile' => 'portable', |
||||
'month' => 'mois', |
||||
'name' => 'nom', |
||||
'national_code' => 'code national', |
||||
'number' => 'numéro', |
||||
'password' => 'mot de passe', |
||||
'password_confirmation' => 'confirmation du mot de passe', |
||||
'phone' => 'téléphone', |
||||
'photo' => 'photo', |
||||
'portfolio' => 'portefeuille', |
||||
'postal_code' => 'code postal', |
||||
'preview' => 'aperçu', |
||||
'price' => 'prix', |
||||
'product_id' => 'identifiant du produit', |
||||
'product_uid' => 'UID du produit', |
||||
'product_uuid' => 'UUID du produit', |
||||
'promo_code' => 'code promo', |
||||
'province' => 'région', |
||||
'quantity' => 'quantité', |
||||
'reason' => 'raison', |
||||
'recaptcha_response_field' => 'champ de réponse reCAPTCHA', |
||||
'referee' => 'arbitre', |
||||
'referees' => 'arbitres', |
||||
'reject_reason' => 'motif de rejet', |
||||
'remember' => 'se souvenir', |
||||
'restored_at' => 'date de restauration', |
||||
'result_text_under_image' => 'texte de résultat sous l\'image', |
||||
'role' => 'rôle', |
||||
'rule' => 'règle', |
||||
'rules' => 'règles', |
||||
'second' => 'seconde', |
||||
'sex' => 'sexe', |
||||
'shipment' => 'expédition', |
||||
'short_text' => 'texte court', |
||||
'size' => 'taille', |
||||
'skills' => 'compétences', |
||||
'slug' => 'slug', |
||||
'specialization' => 'spécialisation', |
||||
'started_at' => 'date de début', |
||||
'state' => 'état', |
||||
'status' => 'statut', |
||||
'street' => 'rue', |
||||
'student' => 'étudiant', |
||||
'subject' => 'sujet', |
||||
'tag' => 'mot clé', |
||||
'tags' => 'mots clés', |
||||
'teacher' => 'professeur', |
||||
'terms' => 'conditions', |
||||
'test_description' => 'description du test', |
||||
'test_locale' => 'localisation du test', |
||||
'test_name' => 'nom du test', |
||||
'text' => 'texte', |
||||
'time' => 'heure', |
||||
'title' => 'titre', |
||||
'type' => 'type', |
||||
'updated_at' => 'date de mise à jour', |
||||
'user' => 'utilisateur', |
||||
'username' => 'nom d\'utilisateur', |
||||
'value' => 'valeur', |
||||
'winner' => 'winner', |
||||
'work' => 'work', |
||||
'year' => 'année', |
||||
], |
||||
]; |
Before Width: | Height: | Size: 118 KiB After Width: | Height: | Size: 0 B |
After Width: | Height: | Size: 1011 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 524 B |
After Width: | Height: | Size: 974 B |
After Width: | Height: | Size: 825 B |
After Width: | Height: | Size: 751 B |
After Width: | Height: | Size: 580 B |
After Width: | Height: | Size: 833 B |
After Width: | Height: | Size: 645 B |
After Width: | Height: | Size: 710 B |
After Width: | Height: | Size: 15 KiB |
After Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 349 B |
After Width: | Height: | Size: 7.2 KiB |
After Width: | Height: | Size: 616 B |
After Width: | Height: | Size: 2.5 KiB |
After Width: | Height: | Size: 462 B |
After Width: | Height: | Size: 4.8 KiB |
After Width: | Height: | Size: 611 B |
After Width: | Height: | Size: 858 B |
After Width: | Height: | Size: 774 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 811 B |
After Width: | Height: | Size: 1.2 KiB |