Compare commits
11 Commits
gestion_de
...
developp
| Author | SHA1 | Date | |
|---|---|---|---|
| bced705c8a | |||
| ee0d6c63a5 | |||
| 286d74e24b | |||
| 563a16256c | |||
| 68a81195e6 | |||
|
|
b4081a38db | ||
| 96d2496853 | |||
| fe8e54ce9b | |||
|
|
93f670b42a | ||
|
|
2c4e7fc6b7 | ||
| 98e9a59d92 |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1 +0,0 @@
|
|||||||
sqldata
|
|
||||||
35
Makefile
Normal file
35
Makefile
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
DOCKER_CONTAINER_NAME=isi2-laravel-1
|
||||||
|
DOCKER_CMD=docker exec -it $(DOCKER_CONTAINER_NAME)
|
||||||
|
|
||||||
|
# Launch the container detached
|
||||||
|
all:
|
||||||
|
docker compose up -d
|
||||||
|
|
||||||
|
# Launch the container
|
||||||
|
run:
|
||||||
|
docker compose up
|
||||||
|
|
||||||
|
# Stop the container
|
||||||
|
stop:
|
||||||
|
docker compose down
|
||||||
|
|
||||||
|
# Stop the container and wipe the database
|
||||||
|
down:
|
||||||
|
docker compose down -v
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# These tasks need the docker container to be running
|
||||||
|
|
||||||
|
exec_container:
|
||||||
|
$(DOCKER_CMD) bash
|
||||||
|
|
||||||
|
seed:
|
||||||
|
$(DOCKER_CMD) php artisan db:seed --class=$(CLASS)
|
||||||
|
|
||||||
|
migrate:
|
||||||
|
$(DOCKER_CMD) php artisan migrate
|
||||||
|
|
||||||
|
init_breeze:
|
||||||
|
$(DOCKER_CMD) php artisan breeze:install --dark blade
|
||||||
44
README.md
44
README.md
@@ -1,10 +1,50 @@
|
|||||||
# Laravel Docker
|
# Projet ISI2
|
||||||
|
|
||||||
|
## Commandes
|
||||||
|
|
||||||
Pour lancer les conteneurs :
|
Pour lancer les conteneurs :
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
docker compose up
|
make run
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Arrêter les conteneurs :
|
||||||
|
|
||||||
|
```sh
|
||||||
|
make stop
|
||||||
|
```
|
||||||
|
|
||||||
|
Effectuer les migrations :
|
||||||
|
|
||||||
|
```sh
|
||||||
|
make migrate
|
||||||
|
```
|
||||||
|
|
||||||
|
Exécuter un seeder :
|
||||||
|
|
||||||
|
```sh
|
||||||
|
make CLASS="VOTRESEEDER" seed
|
||||||
|
```
|
||||||
|
|
||||||
|
Installer Breeze (Attention ! Vos routes seront écrasées !):
|
||||||
|
|
||||||
|
```sh
|
||||||
|
make init_breeze
|
||||||
|
```
|
||||||
|
|
||||||
|
Ouvrir un terminal dans le conteneur laravel :
|
||||||
|
|
||||||
|
```sh
|
||||||
|
make exec_container
|
||||||
|
```
|
||||||
|
|
||||||
|
## Routes
|
||||||
|
|
||||||
|
- `/billets` : affiche la liste des billets
|
||||||
|
- `/billets/{id}` : affiche un billet
|
||||||
|
|
||||||
|
## Instructions
|
||||||
|
|
||||||
Les données de la base de données persistent dans le volume docker `laravel_db_volume`
|
Les données de la base de données persistent dans le volume docker `laravel_db_volume`
|
||||||
|
|
||||||
Les fichiers Laravel sont ensuite disponibles dans le dossier `laravel`
|
Les fichiers Laravel sont ensuite disponibles dans le dossier `laravel`
|
||||||
|
|||||||
@@ -1,26 +1,28 @@
|
|||||||
services:
|
services:
|
||||||
mariadb:
|
mariadb:
|
||||||
build:
|
build:
|
||||||
context: images
|
context: images
|
||||||
dockerfile: SQL_Dockerfile
|
dockerfile: SQL_Dockerfile
|
||||||
environment:
|
environment:
|
||||||
MARIADB_ROOT_PASSWORD: super_strong_password_of_root
|
MARIADB_ROOT_PASSWORD: super_strong_password_of_root
|
||||||
MARIADB_DATABASE: laravel_db
|
MARIADB_DATABASE: laravel_db
|
||||||
ports:
|
ports:
|
||||||
- "3306:3306"
|
- "3306:3306"
|
||||||
volumes:
|
volumes:
|
||||||
- laravel_db_volume:/var/lib/mysql
|
- laravel_db_volume:/var/lib/mysql
|
||||||
|
|
||||||
laravel:
|
laravel:
|
||||||
image: bitnami/laravel
|
build:
|
||||||
ports:
|
context: images
|
||||||
- "8080:8000"
|
dockerfile: Laravel_Dockerfile
|
||||||
environment:
|
ports:
|
||||||
LARAVEL_DATABASE_USER: laravel_user
|
- "8080:8000"
|
||||||
LARAVEL_DATABASE_PASSWORD: super_strong_password
|
environment:
|
||||||
LARAVEL_DATABASE_NAME: laravel_db
|
LARAVEL_DATABASE_USER: laravel_user
|
||||||
volumes:
|
LARAVEL_DATABASE_PASSWORD: super_strong_password
|
||||||
- ./laravel:/app
|
LARAVEL_DATABASE_NAME: laravel_db
|
||||||
|
volumes:
|
||||||
|
- ./laravel:/app
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
laravel_db_volume:
|
laravel_db_volume:
|
||||||
|
|||||||
7
images/.env
Normal file
7
images/.env
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
DB_CONNECTION=mariadb
|
||||||
|
DB_HOST=mariadb
|
||||||
|
DB_PORT=3306
|
||||||
|
DB_DATABASE=laravel_db
|
||||||
|
DB_USERNAME=laravel_user
|
||||||
|
DB_PASSWORD=super_strong_password
|
||||||
|
APP_KEY=""
|
||||||
12
images/Laravel_Dockerfile
Normal file
12
images/Laravel_Dockerfile
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
FROM bitnami/laravel
|
||||||
|
|
||||||
|
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash
|
||||||
|
|
||||||
|
RUN . ~/.nvm/nvm.sh && nvm install --lts
|
||||||
|
|
||||||
|
COPY init_laravel.sh /init/init_laravel.sh
|
||||||
|
COPY .env /init/.env
|
||||||
|
|
||||||
|
RUN chmod +x /init/init_laravel.sh
|
||||||
|
|
||||||
|
CMD bash /init/init_laravel.sh
|
||||||
11
images/init_laravel.sh
Normal file
11
images/init_laravel.sh
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
composer install
|
||||||
|
|
||||||
|
# Create .env if it does not exist
|
||||||
|
if ! [ -e ".env" ] ; then
|
||||||
|
cp /init/.env .
|
||||||
|
php artisan key:generate
|
||||||
|
fi
|
||||||
|
|
||||||
|
php artisan migrate --force
|
||||||
|
php artisan serve --host=0.0.0.0 --port=8000
|
||||||
0
laravel/.buildcomplete
Normal file → Executable file
0
laravel/.buildcomplete
Normal file → Executable file
0
laravel/.editorconfig
Normal file → Executable file
0
laravel/.editorconfig
Normal file → Executable file
0
laravel/.env.example
Normal file → Executable file
0
laravel/.env.example
Normal file → Executable file
0
laravel/.gitattributes
vendored
Normal file → Executable file
0
laravel/.gitattributes
vendored
Normal file → Executable file
0
laravel/.gitignore
vendored
Normal file → Executable file
0
laravel/.gitignore
vendored
Normal file → Executable file
0
laravel/.spdx-laravel.spdx
Normal file → Executable file
0
laravel/.spdx-laravel.spdx
Normal file → Executable file
0
laravel/README.md
Normal file → Executable file
0
laravel/README.md
Normal file → Executable file
47
laravel/app/Http/Controllers/Auth/AuthenticatedSessionController.php
Executable file
47
laravel/app/Http/Controllers/Auth/AuthenticatedSessionController.php
Executable file
@@ -0,0 +1,47 @@
|
|||||||
|
<?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\View\View;
|
||||||
|
|
||||||
|
class AuthenticatedSessionController extends Controller
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Display the login view.
|
||||||
|
*/
|
||||||
|
public function create(): View
|
||||||
|
{
|
||||||
|
return view('auth.login');
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Handle an incoming authentication request.
|
||||||
|
*/
|
||||||
|
public function store(LoginRequest $request): RedirectResponse
|
||||||
|
{
|
||||||
|
$request->authenticate();
|
||||||
|
|
||||||
|
$request->session()->regenerate();
|
||||||
|
|
||||||
|
return redirect()->intended(route('dashboard', absolute: false));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Destroy an authenticated session.
|
||||||
|
*/
|
||||||
|
public function destroy(Request $request): RedirectResponse
|
||||||
|
{
|
||||||
|
Auth::guard('web')->logout();
|
||||||
|
|
||||||
|
$request->session()->invalidate();
|
||||||
|
|
||||||
|
$request->session()->regenerateToken();
|
||||||
|
|
||||||
|
return redirect('/');
|
||||||
|
}
|
||||||
|
}
|
||||||
40
laravel/app/Http/Controllers/Auth/ConfirmablePasswordController.php
Executable file
40
laravel/app/Http/Controllers/Auth/ConfirmablePasswordController.php
Executable file
@@ -0,0 +1,40 @@
|
|||||||
|
<?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 Illuminate\View\View;
|
||||||
|
|
||||||
|
class ConfirmablePasswordController extends Controller
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Show the confirm password view.
|
||||||
|
*/
|
||||||
|
public function show(): View
|
||||||
|
{
|
||||||
|
return view('auth.confirm-password');
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 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('dashboard', 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('dashboard', absolute: false));
|
||||||
|
}
|
||||||
|
|
||||||
|
$request->user()->sendEmailVerificationNotification();
|
||||||
|
|
||||||
|
return back()->with('status', 'verification-link-sent');
|
||||||
|
}
|
||||||
|
}
|
||||||
21
laravel/app/Http/Controllers/Auth/EmailVerificationPromptController.php
Executable file
21
laravel/app/Http/Controllers/Auth/EmailVerificationPromptController.php
Executable file
@@ -0,0 +1,21 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Http\Controllers\Auth;
|
||||||
|
|
||||||
|
use App\Http\Controllers\Controller;
|
||||||
|
use Illuminate\Http\RedirectResponse;
|
||||||
|
use Illuminate\Http\Request;
|
||||||
|
use Illuminate\View\View;
|
||||||
|
|
||||||
|
class EmailVerificationPromptController extends Controller
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Display the email verification prompt.
|
||||||
|
*/
|
||||||
|
public function __invoke(Request $request): RedirectResponse|View
|
||||||
|
{
|
||||||
|
return $request->user()->hasVerifiedEmail()
|
||||||
|
? redirect()->intended(route('dashboard', absolute: false))
|
||||||
|
: view('auth.verify-email');
|
||||||
|
}
|
||||||
|
}
|
||||||
62
laravel/app/Http/Controllers/Auth/NewPasswordController.php
Executable file
62
laravel/app/Http/Controllers/Auth/NewPasswordController.php
Executable file
@@ -0,0 +1,62 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Http\Controllers\Auth;
|
||||||
|
|
||||||
|
use App\Http\Controllers\Controller;
|
||||||
|
use App\Models\User;
|
||||||
|
use Illuminate\Auth\Events\PasswordReset;
|
||||||
|
use Illuminate\Http\RedirectResponse;
|
||||||
|
use Illuminate\Http\Request;
|
||||||
|
use Illuminate\Support\Facades\Hash;
|
||||||
|
use Illuminate\Support\Facades\Password;
|
||||||
|
use Illuminate\Support\Str;
|
||||||
|
use Illuminate\Validation\Rules;
|
||||||
|
use Illuminate\View\View;
|
||||||
|
|
||||||
|
class NewPasswordController extends Controller
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Display the password reset view.
|
||||||
|
*/
|
||||||
|
public function create(Request $request): View
|
||||||
|
{
|
||||||
|
return view('auth.reset-password', ['request' => $request]);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 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', Rules\Password::defaults()],
|
||||||
|
]);
|
||||||
|
|
||||||
|
// Here we will attempt to reset the user's password. If it is successful we
|
||||||
|
// will update the password on an actual user model and persist it to the
|
||||||
|
// database. Otherwise we will parse the error and return the response.
|
||||||
|
$status = Password::reset(
|
||||||
|
$request->only('email', 'password', 'password_confirmation', 'token'),
|
||||||
|
function (User $user) use ($request) {
|
||||||
|
$user->forceFill([
|
||||||
|
'password' => Hash::make($request->password),
|
||||||
|
'remember_token' => Str::random(60),
|
||||||
|
])->save();
|
||||||
|
|
||||||
|
event(new PasswordReset($user));
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
// 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 $status == Password::PASSWORD_RESET
|
||||||
|
? redirect()->route('login')->with('status', __($status))
|
||||||
|
: back()->withInput($request->only('email'))
|
||||||
|
->withErrors(['email' => __($status)]);
|
||||||
|
}
|
||||||
|
}
|
||||||
29
laravel/app/Http/Controllers/Auth/PasswordController.php
Executable file
29
laravel/app/Http/Controllers/Auth/PasswordController.php
Executable file
@@ -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->validateWithBag('updatePassword', [
|
||||||
|
'current_password' => ['required', 'current_password'],
|
||||||
|
'password' => ['required', Password::defaults(), 'confirmed'],
|
||||||
|
]);
|
||||||
|
|
||||||
|
$request->user()->update([
|
||||||
|
'password' => Hash::make($validated['password']),
|
||||||
|
]);
|
||||||
|
|
||||||
|
return back()->with('status', 'password-updated');
|
||||||
|
}
|
||||||
|
}
|
||||||
44
laravel/app/Http/Controllers/Auth/PasswordResetLinkController.php
Executable file
44
laravel/app/Http/Controllers/Auth/PasswordResetLinkController.php
Executable file
@@ -0,0 +1,44 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Http\Controllers\Auth;
|
||||||
|
|
||||||
|
use App\Http\Controllers\Controller;
|
||||||
|
use Illuminate\Http\RedirectResponse;
|
||||||
|
use Illuminate\Http\Request;
|
||||||
|
use Illuminate\Support\Facades\Password;
|
||||||
|
use Illuminate\View\View;
|
||||||
|
|
||||||
|
class PasswordResetLinkController extends Controller
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Display the password reset link request view.
|
||||||
|
*/
|
||||||
|
public function create(): View
|
||||||
|
{
|
||||||
|
return view('auth.forgot-password');
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Handle an incoming password reset link request.
|
||||||
|
*
|
||||||
|
* @throws \Illuminate\Validation\ValidationException
|
||||||
|
*/
|
||||||
|
public function store(Request $request): RedirectResponse
|
||||||
|
{
|
||||||
|
$request->validate([
|
||||||
|
'email' => ['required', 'email'],
|
||||||
|
]);
|
||||||
|
|
||||||
|
// We will send the password reset link to this user. Once we have attempted
|
||||||
|
// to send the link, we will examine the response then see the message we
|
||||||
|
// need to show to the user. Finally, we'll send out a proper response.
|
||||||
|
$status = Password::sendResetLink(
|
||||||
|
$request->only('email')
|
||||||
|
);
|
||||||
|
|
||||||
|
return $status == Password::RESET_LINK_SENT
|
||||||
|
? back()->with('status', __($status))
|
||||||
|
: back()->withInput($request->only('email'))
|
||||||
|
->withErrors(['email' => __($status)]);
|
||||||
|
}
|
||||||
|
}
|
||||||
50
laravel/app/Http/Controllers/Auth/RegisteredUserController.php
Executable file
50
laravel/app/Http/Controllers/Auth/RegisteredUserController.php
Executable file
@@ -0,0 +1,50 @@
|
|||||||
|
<?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 Illuminate\View\View;
|
||||||
|
|
||||||
|
class RegisteredUserController extends Controller
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Display the registration view.
|
||||||
|
*/
|
||||||
|
public function create(): View
|
||||||
|
{
|
||||||
|
return view('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('billets.index'));
|
||||||
|
}
|
||||||
|
}
|
||||||
27
laravel/app/Http/Controllers/Auth/VerifyEmailController.php
Executable file
27
laravel/app/Http/Controllers/Auth/VerifyEmailController.php
Executable file
@@ -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('dashboard', absolute: false).'?verified=1');
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($request->user()->markEmailAsVerified()) {
|
||||||
|
event(new Verified($request->user()));
|
||||||
|
}
|
||||||
|
|
||||||
|
return redirect()->intended(route('dashboard', absolute: false).'?verified=1');
|
||||||
|
}
|
||||||
|
}
|
||||||
16
laravel/app/Http/Controllers/BilletController.php
Normal file → Executable file
16
laravel/app/Http/Controllers/BilletController.php
Normal file → Executable file
@@ -6,6 +6,9 @@ use App\Http\Requests\StoreBilletRequest;
|
|||||||
use App\Http\Requests\UpdateBilletRequest;
|
use App\Http\Requests\UpdateBilletRequest;
|
||||||
use App\Models\Billet;
|
use App\Models\Billet;
|
||||||
|
|
||||||
|
use Illuminate\Support\Facades\Log;
|
||||||
|
use Illuminate\Database\QueryException;
|
||||||
|
|
||||||
class BilletController extends Controller
|
class BilletController extends Controller
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
@@ -13,7 +16,12 @@ class BilletController extends Controller
|
|||||||
*/
|
*/
|
||||||
public function index()
|
public function index()
|
||||||
{
|
{
|
||||||
$billets = Billet::all();
|
try {
|
||||||
|
$billets = Billet::all();
|
||||||
|
} catch (QueryException $e) {
|
||||||
|
Log::channel('projectError')->error('Erreur d\'accès à la base de données');
|
||||||
|
return view('errors.dberror');
|
||||||
|
}
|
||||||
return view('index', compact('billets'));
|
return view('index', compact('billets'));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -39,7 +47,11 @@ class BilletController extends Controller
|
|||||||
public function show(Billet $billet)
|
public function show(Billet $billet)
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
$commentaires = $billet->commentaires;
|
try {
|
||||||
|
$commentaires = $billet->commentaires;
|
||||||
|
} catch (QueryException $e) {
|
||||||
|
return view('errors.dberror');
|
||||||
|
}
|
||||||
return view('vBillet', compact('billet', 'commentaires'));
|
return view('vBillet', compact('billet', 'commentaires'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
0
laravel/app/Http/Controllers/CategorieController.php
Normal file → Executable file
0
laravel/app/Http/Controllers/CategorieController.php
Normal file → Executable file
27
laravel/app/Http/Controllers/CommentaireController.php
Normal file → Executable file
27
laravel/app/Http/Controllers/CommentaireController.php
Normal file → Executable file
@@ -5,6 +5,8 @@ namespace App\Http\Controllers;
|
|||||||
use App\Http\Requests\StoreCommentaireRequest;
|
use App\Http\Requests\StoreCommentaireRequest;
|
||||||
use App\Http\Requests\UpdateCommentaireRequest;
|
use App\Http\Requests\UpdateCommentaireRequest;
|
||||||
use App\Models\Commentaire;
|
use App\Models\Commentaire;
|
||||||
|
use App\Models\Billet;
|
||||||
|
use Illuminate\Support\Facades\Log;
|
||||||
|
|
||||||
class CommentaireController extends Controller
|
class CommentaireController extends Controller
|
||||||
{
|
{
|
||||||
@@ -19,9 +21,20 @@ class CommentaireController extends Controller
|
|||||||
/**
|
/**
|
||||||
* Show the form for creating a new resource.
|
* Show the form for creating a new resource.
|
||||||
*/
|
*/
|
||||||
public function create()
|
public function create($idBillet)
|
||||||
{
|
{
|
||||||
//
|
try {
|
||||||
|
$billet = Billet::findOrFail($idBillet);
|
||||||
|
}
|
||||||
|
catch (\Illuminate\Database\Eloquent\ModelNotFoundException $e) {
|
||||||
|
Log::channel('projectError')->error('Commentaire : Billet non trouvé');
|
||||||
|
return view('errors.unavailable');
|
||||||
|
}
|
||||||
|
catch (\Illuminate\Database\QueryException $e) {
|
||||||
|
Log::channel('projectError')->error('Erreur accès base de données');
|
||||||
|
return view('errors.dberror');
|
||||||
|
}
|
||||||
|
return view('vCommenter', compact('idBillet', 'billet'));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -29,7 +42,15 @@ class CommentaireController extends Controller
|
|||||||
*/
|
*/
|
||||||
public function store(StoreCommentaireRequest $request)
|
public function store(StoreCommentaireRequest $request)
|
||||||
{
|
{
|
||||||
//
|
try {
|
||||||
|
Commentaire::create($request->all());
|
||||||
|
}
|
||||||
|
catch (\Illuminate\Database\QueryException $e) {
|
||||||
|
Log::channel('projectError')->error('Insertion en base de données impossible');
|
||||||
|
return view('errors.dberror');
|
||||||
|
}
|
||||||
|
Log::channel('projectInfo')->info('Commentaire ajouté par : '.$request->ip());
|
||||||
|
return view('vConfirmStore');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
0
laravel/app/Http/Controllers/Controller.php
Normal file → Executable file
0
laravel/app/Http/Controllers/Controller.php
Normal file → Executable file
60
laravel/app/Http/Controllers/ProfileController.php
Executable file
60
laravel/app/Http/Controllers/ProfileController.php
Executable file
@@ -0,0 +1,60 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Http\Controllers;
|
||||||
|
|
||||||
|
use App\Http\Requests\ProfileUpdateRequest;
|
||||||
|
use Illuminate\Http\RedirectResponse;
|
||||||
|
use Illuminate\Http\Request;
|
||||||
|
use Illuminate\Support\Facades\Auth;
|
||||||
|
use Illuminate\Support\Facades\Redirect;
|
||||||
|
use Illuminate\View\View;
|
||||||
|
|
||||||
|
class ProfileController extends Controller
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Display the user's profile form.
|
||||||
|
*/
|
||||||
|
public function edit(Request $request): View
|
||||||
|
{
|
||||||
|
return view('profile.edit', [
|
||||||
|
'user' => $request->user(),
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Update the user's profile information.
|
||||||
|
*/
|
||||||
|
public function update(ProfileUpdateRequest $request): RedirectResponse
|
||||||
|
{
|
||||||
|
$request->user()->fill($request->validated());
|
||||||
|
|
||||||
|
if ($request->user()->isDirty('email')) {
|
||||||
|
$request->user()->email_verified_at = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
$request->user()->save();
|
||||||
|
|
||||||
|
return Redirect::route('profile.edit')->with('status', 'profile-updated');
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Delete the user's account.
|
||||||
|
*/
|
||||||
|
public function destroy(Request $request): RedirectResponse
|
||||||
|
{
|
||||||
|
$request->validateWithBag('userDeletion', [
|
||||||
|
'password' => ['required', 'current_password'],
|
||||||
|
]);
|
||||||
|
|
||||||
|
$user = $request->user();
|
||||||
|
|
||||||
|
Auth::logout();
|
||||||
|
|
||||||
|
$user->delete();
|
||||||
|
|
||||||
|
$request->session()->invalidate();
|
||||||
|
$request->session()->regenerateToken();
|
||||||
|
|
||||||
|
return Redirect::to('/');
|
||||||
|
}
|
||||||
|
}
|
||||||
85
laravel/app/Http/Requests/Auth/LoginRequest.php
Executable file
85
laravel/app/Http/Requests/Auth/LoginRequest.php
Executable file
@@ -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());
|
||||||
|
}
|
||||||
|
}
|
||||||
30
laravel/app/Http/Requests/ProfileUpdateRequest.php
Executable file
30
laravel/app/Http/Requests/ProfileUpdateRequest.php
Executable file
@@ -0,0 +1,30 @@
|
|||||||
|
<?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'],
|
||||||
|
'email' => [
|
||||||
|
'required',
|
||||||
|
'string',
|
||||||
|
'lowercase',
|
||||||
|
'email',
|
||||||
|
'max:255',
|
||||||
|
Rule::unique(User::class)->ignore($this->user()->id),
|
||||||
|
],
|
||||||
|
];
|
||||||
|
}
|
||||||
|
}
|
||||||
0
laravel/app/Http/Requests/StoreBilletRequest.php
Normal file → Executable file
0
laravel/app/Http/Requests/StoreBilletRequest.php
Normal file → Executable file
0
laravel/app/Http/Requests/StoreCategorieRequest.php
Normal file → Executable file
0
laravel/app/Http/Requests/StoreCategorieRequest.php
Normal file → Executable file
21
laravel/app/Http/Requests/StoreCommentaireRequest.php
Normal file → Executable file
21
laravel/app/Http/Requests/StoreCommentaireRequest.php
Normal file → Executable file
@@ -11,7 +11,7 @@ class StoreCommentaireRequest extends FormRequest
|
|||||||
*/
|
*/
|
||||||
public function authorize(): bool
|
public function authorize(): bool
|
||||||
{
|
{
|
||||||
return false;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -22,7 +22,24 @@ class StoreCommentaireRequest extends FormRequest
|
|||||||
public function rules(): array
|
public function rules(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
//
|
'COM_AUTEUR' => ['required', 'alpha', 'max:100'],
|
||||||
|
'COM_CONTENU' => ['required', 'string', 'max:200'],
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the error messages for the defined validation rules.
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
public function messages() {
|
||||||
|
return [
|
||||||
|
'COM_AUTEUR.required' => 'Le nom de l\'auteur est requis.',
|
||||||
|
'COM_AUTEUR.alpha' => 'Le nom de l\'auteur ne doit contenir que des lettres.',
|
||||||
|
'COM_AUTEUR.max' => 'Le nom de l\'auteur ne doit pas dépasser 100 caractères.',
|
||||||
|
'COM_CONTENU.required' => 'Le contenu du commentaire est requis.',
|
||||||
|
'COM_CONTENU.string' => 'Le contenu du commentaire doit être une chaîne de caractères.',
|
||||||
|
'COM_CONTENU.max' => 'Le contenu du commentaire ne doit pas dépasser 200 caractères.',
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
0
laravel/app/Http/Requests/UpdateBilletRequest.php
Normal file → Executable file
0
laravel/app/Http/Requests/UpdateBilletRequest.php
Normal file → Executable file
0
laravel/app/Http/Requests/UpdateCategorieRequest.php
Normal file → Executable file
0
laravel/app/Http/Requests/UpdateCategorieRequest.php
Normal file → Executable file
0
laravel/app/Http/Requests/UpdateCommentaireRequest.php
Normal file → Executable file
0
laravel/app/Http/Requests/UpdateCommentaireRequest.php
Normal file → Executable file
0
laravel/app/Models/Billet.php
Normal file → Executable file
0
laravel/app/Models/Billet.php
Normal file → Executable file
0
laravel/app/Models/Categorie.php
Normal file → Executable file
0
laravel/app/Models/Categorie.php
Normal file → Executable file
0
laravel/app/Models/Commentaire.php
Normal file → Executable file
0
laravel/app/Models/Commentaire.php
Normal file → Executable file
0
laravel/app/Models/User.php
Normal file → Executable file
0
laravel/app/Models/User.php
Normal file → Executable file
0
laravel/app/Models/billet_categorie.php
Normal file → Executable file
0
laravel/app/Models/billet_categorie.php
Normal file → Executable file
0
laravel/app/Policies/BilletPolicy.php
Normal file → Executable file
0
laravel/app/Policies/BilletPolicy.php
Normal file → Executable file
0
laravel/app/Policies/CategoriePolicy.php
Normal file → Executable file
0
laravel/app/Policies/CategoriePolicy.php
Normal file → Executable file
0
laravel/app/Policies/CommentairePolicy.php
Normal file → Executable file
0
laravel/app/Policies/CommentairePolicy.php
Normal file → Executable file
0
laravel/app/Providers/AppServiceProvider.php
Normal file → Executable file
0
laravel/app/Providers/AppServiceProvider.php
Normal file → Executable file
17
laravel/app/View/Components/AppLayout.php
Executable file
17
laravel/app/View/Components/AppLayout.php
Executable file
@@ -0,0 +1,17 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\View\Components;
|
||||||
|
|
||||||
|
use Illuminate\View\Component;
|
||||||
|
use Illuminate\View\View;
|
||||||
|
|
||||||
|
class AppLayout extends Component
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Get the view / contents that represents the component.
|
||||||
|
*/
|
||||||
|
public function render(): View
|
||||||
|
{
|
||||||
|
return view('layouts.app');
|
||||||
|
}
|
||||||
|
}
|
||||||
17
laravel/app/View/Components/GuestLayout.php
Executable file
17
laravel/app/View/Components/GuestLayout.php
Executable file
@@ -0,0 +1,17 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\View\Components;
|
||||||
|
|
||||||
|
use Illuminate\View\Component;
|
||||||
|
use Illuminate\View\View;
|
||||||
|
|
||||||
|
class GuestLayout extends Component
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Get the view / contents that represents the component.
|
||||||
|
*/
|
||||||
|
public function render(): View
|
||||||
|
{
|
||||||
|
return view('layouts.guest');
|
||||||
|
}
|
||||||
|
}
|
||||||
0
laravel/bootstrap/app.php
Normal file → Executable file
0
laravel/bootstrap/app.php
Normal file → Executable file
0
laravel/bootstrap/cache/.gitignore
vendored
Normal file → Executable file
0
laravel/bootstrap/cache/.gitignore
vendored
Normal file → Executable file
0
laravel/bootstrap/providers.php
Normal file → Executable file
0
laravel/bootstrap/providers.php
Normal file → Executable file
1
laravel/composer.json
Normal file → Executable file
1
laravel/composer.json
Normal file → Executable file
@@ -12,6 +12,7 @@
|
|||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"fakerphp/faker": "^1.23",
|
"fakerphp/faker": "^1.23",
|
||||||
|
"laravel/breeze": "^2.3",
|
||||||
"laravel/pail": "^1.2.2",
|
"laravel/pail": "^1.2.2",
|
||||||
"laravel/pint": "^1.13",
|
"laravel/pint": "^1.13",
|
||||||
"laravel/sail": "^1.41",
|
"laravel/sail": "^1.41",
|
||||||
|
|||||||
63
laravel/composer.lock
generated
Normal file → Executable file
63
laravel/composer.lock
generated
Normal file → Executable file
@@ -4,7 +4,7 @@
|
|||||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||||
"This file is @generated automatically"
|
"This file is @generated automatically"
|
||||||
],
|
],
|
||||||
"content-hash": "88970a0117c062eed55fa8728fc43833",
|
"content-hash": "d6c73ea5dadcd971050eeb806511e47d",
|
||||||
"packages": [
|
"packages": [
|
||||||
{
|
{
|
||||||
"name": "brick/math",
|
"name": "brick/math",
|
||||||
@@ -5972,6 +5972,67 @@
|
|||||||
},
|
},
|
||||||
"time": "2020-07-09T08:09:16+00:00"
|
"time": "2020-07-09T08:09:16+00:00"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "laravel/breeze",
|
||||||
|
"version": "v2.3.6",
|
||||||
|
"source": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/laravel/breeze.git",
|
||||||
|
"reference": "390cbc433cb72fa6050965000b2d56c9ba6fd713"
|
||||||
|
},
|
||||||
|
"dist": {
|
||||||
|
"type": "zip",
|
||||||
|
"url": "https://api.github.com/repos/laravel/breeze/zipball/390cbc433cb72fa6050965000b2d56c9ba6fd713",
|
||||||
|
"reference": "390cbc433cb72fa6050965000b2d56c9ba6fd713",
|
||||||
|
"shasum": ""
|
||||||
|
},
|
||||||
|
"require": {
|
||||||
|
"illuminate/console": "^11.0|^12.0",
|
||||||
|
"illuminate/filesystem": "^11.0|^12.0",
|
||||||
|
"illuminate/support": "^11.0|^12.0",
|
||||||
|
"illuminate/validation": "^11.0|^12.0",
|
||||||
|
"php": "^8.2.0",
|
||||||
|
"symfony/console": "^7.0"
|
||||||
|
},
|
||||||
|
"require-dev": {
|
||||||
|
"laravel/framework": "^11.0|^12.0",
|
||||||
|
"orchestra/testbench-core": "^9.0|^10.0",
|
||||||
|
"phpstan/phpstan": "^2.0"
|
||||||
|
},
|
||||||
|
"type": "library",
|
||||||
|
"extra": {
|
||||||
|
"laravel": {
|
||||||
|
"providers": [
|
||||||
|
"Laravel\\Breeze\\BreezeServiceProvider"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"autoload": {
|
||||||
|
"psr-4": {
|
||||||
|
"Laravel\\Breeze\\": "src/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"notification-url": "https://packagist.org/downloads/",
|
||||||
|
"license": [
|
||||||
|
"MIT"
|
||||||
|
],
|
||||||
|
"authors": [
|
||||||
|
{
|
||||||
|
"name": "Taylor Otwell",
|
||||||
|
"email": "taylor@laravel.com"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "Minimal Laravel authentication scaffolding with Blade and Tailwind.",
|
||||||
|
"keywords": [
|
||||||
|
"auth",
|
||||||
|
"laravel"
|
||||||
|
],
|
||||||
|
"support": {
|
||||||
|
"issues": "https://github.com/laravel/breeze/issues",
|
||||||
|
"source": "https://github.com/laravel/breeze"
|
||||||
|
},
|
||||||
|
"time": "2025-03-06T14:02:32+00:00"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "laravel/pail",
|
"name": "laravel/pail",
|
||||||
"version": "v1.2.2",
|
"version": "v1.2.2",
|
||||||
|
|||||||
0
laravel/config/app.php
Normal file → Executable file
0
laravel/config/app.php
Normal file → Executable file
0
laravel/config/auth.php
Normal file → Executable file
0
laravel/config/auth.php
Normal file → Executable file
0
laravel/config/cache.php
Normal file → Executable file
0
laravel/config/cache.php
Normal file → Executable file
0
laravel/config/database.php
Normal file → Executable file
0
laravel/config/database.php
Normal file → Executable file
0
laravel/config/filesystems.php
Normal file → Executable file
0
laravel/config/filesystems.php
Normal file → Executable file
12
laravel/config/logging.php
Normal file → Executable file
12
laravel/config/logging.php
Normal file → Executable file
@@ -127,6 +127,18 @@ return [
|
|||||||
'path' => storage_path('logs/laravel.log'),
|
'path' => storage_path('logs/laravel.log'),
|
||||||
],
|
],
|
||||||
|
|
||||||
|
"projectError" => [
|
||||||
|
'driver' => 'single',
|
||||||
|
'path' => storage_path('logs/project.log'),
|
||||||
|
'level' => 'error',
|
||||||
|
],
|
||||||
|
|
||||||
|
"projectInfo" => [
|
||||||
|
'driver' => 'single',
|
||||||
|
'path' => storage_path('logs/project.log'),
|
||||||
|
'level' => 'info',
|
||||||
|
],
|
||||||
|
|
||||||
],
|
],
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|||||||
0
laravel/config/mail.php
Normal file → Executable file
0
laravel/config/mail.php
Normal file → Executable file
0
laravel/config/queue.php
Normal file → Executable file
0
laravel/config/queue.php
Normal file → Executable file
0
laravel/config/services.php
Normal file → Executable file
0
laravel/config/services.php
Normal file → Executable file
0
laravel/config/session.php
Normal file → Executable file
0
laravel/config/session.php
Normal file → Executable file
0
laravel/database/.gitignore
vendored
Normal file → Executable file
0
laravel/database/.gitignore
vendored
Normal file → Executable file
0
laravel/database/factories/BilletCategorieFactory.php
Normal file → Executable file
0
laravel/database/factories/BilletCategorieFactory.php
Normal file → Executable file
0
laravel/database/factories/BilletFactory.php
Normal file → Executable file
0
laravel/database/factories/BilletFactory.php
Normal file → Executable file
0
laravel/database/factories/CategorieFactory.php
Normal file → Executable file
0
laravel/database/factories/CategorieFactory.php
Normal file → Executable file
0
laravel/database/factories/CommentaireFactory.php
Normal file → Executable file
0
laravel/database/factories/CommentaireFactory.php
Normal file → Executable file
0
laravel/database/factories/UserFactory.php
Normal file → Executable file
0
laravel/database/factories/UserFactory.php
Normal file → Executable file
0
laravel/database/migrations/0001_01_01_000000_create_users_table.php
Normal file → Executable file
0
laravel/database/migrations/0001_01_01_000000_create_users_table.php
Normal file → Executable file
0
laravel/database/migrations/0001_01_01_000001_create_cache_table.php
Normal file → Executable file
0
laravel/database/migrations/0001_01_01_000001_create_cache_table.php
Normal file → Executable file
0
laravel/database/migrations/0001_01_01_000002_create_jobs_table.php
Normal file → Executable file
0
laravel/database/migrations/0001_01_01_000002_create_jobs_table.php
Normal file → Executable file
0
laravel/database/migrations/2025_04_17_110216_create_billets_table.php
Normal file → Executable file
0
laravel/database/migrations/2025_04_17_110216_create_billets_table.php
Normal file → Executable file
0
laravel/database/migrations/2025_04_17_120715_create_commentaires_table.php
Normal file → Executable file
0
laravel/database/migrations/2025_04_17_120715_create_commentaires_table.php
Normal file → Executable file
0
laravel/database/migrations/2025_04_17_123511_create_categories_table.php
Normal file → Executable file
0
laravel/database/migrations/2025_04_17_123511_create_categories_table.php
Normal file → Executable file
0
laravel/database/migrations/2025_04_17_124058_create_billet_categories_table.php
Normal file → Executable file
0
laravel/database/migrations/2025_04_17_124058_create_billet_categories_table.php
Normal file → Executable file
0
laravel/database/seeders/BilletSeeder.php
Normal file → Executable file
0
laravel/database/seeders/BilletSeeder.php
Normal file → Executable file
0
laravel/database/seeders/CategorieSeeder.php
Normal file → Executable file
0
laravel/database/seeders/CategorieSeeder.php
Normal file → Executable file
0
laravel/database/seeders/CommentaireSeeder.php
Normal file → Executable file
0
laravel/database/seeders/CommentaireSeeder.php
Normal file → Executable file
0
laravel/database/seeders/DatabaseSeeder.php
Normal file → Executable file
0
laravel/database/seeders/DatabaseSeeder.php
Normal file → Executable file
0
laravel/licenses/laravel-12.0.3.txt
Normal file → Executable file
0
laravel/licenses/laravel-12.0.3.txt
Normal file → Executable file
3850
laravel/package-lock.json
generated
Executable file
3850
laravel/package-lock.json
generated
Executable file
File diff suppressed because it is too large
Load Diff
6
laravel/package.json
Normal file → Executable file
6
laravel/package.json
Normal file → Executable file
@@ -6,11 +6,15 @@
|
|||||||
"dev": "vite"
|
"dev": "vite"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@tailwindcss/forms": "^0.5.2",
|
||||||
"@tailwindcss/vite": "^4.0.0",
|
"@tailwindcss/vite": "^4.0.0",
|
||||||
|
"alpinejs": "^3.4.2",
|
||||||
|
"autoprefixer": "^10.4.2",
|
||||||
"axios": "^1.8.2",
|
"axios": "^1.8.2",
|
||||||
"concurrently": "^9.0.1",
|
"concurrently": "^9.0.1",
|
||||||
"laravel-vite-plugin": "^1.2.0",
|
"laravel-vite-plugin": "^1.2.0",
|
||||||
"tailwindcss": "^4.0.0",
|
"postcss": "^8.4.31",
|
||||||
|
"tailwindcss": "^3.1.0",
|
||||||
"vite": "^6.0.11"
|
"vite": "^6.0.11"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
0
laravel/phpunit.xml
Normal file → Executable file
0
laravel/phpunit.xml
Normal file → Executable file
6
laravel/postcss.config.js
Executable file
6
laravel/postcss.config.js
Executable file
@@ -0,0 +1,6 @@
|
|||||||
|
export default {
|
||||||
|
plugins: {
|
||||||
|
tailwindcss: {},
|
||||||
|
autoprefixer: {},
|
||||||
|
},
|
||||||
|
};
|
||||||
0
laravel/public/.htaccess
Normal file → Executable file
0
laravel/public/.htaccess
Normal file → Executable file
0
laravel/public/favicon.ico
Normal file → Executable file
0
laravel/public/favicon.ico
Normal file → Executable file
0
laravel/public/index.php
Normal file → Executable file
0
laravel/public/index.php
Normal file → Executable file
0
laravel/public/robots.txt
Normal file → Executable file
0
laravel/public/robots.txt
Normal file → Executable file
52
laravel/public/style.css
Normal file → Executable file
52
laravel/public/style.css
Normal file → Executable file
@@ -1,9 +1,15 @@
|
|||||||
html, body {
|
:root {
|
||||||
|
--main-color: #333534;
|
||||||
|
--text-color: #bfbfbf;
|
||||||
|
}
|
||||||
|
|
||||||
|
html,
|
||||||
|
body {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
color: #bfbfbf;
|
color: var(--text-color);
|
||||||
background: black;
|
background: black;
|
||||||
font-family: 'Futura-Medium', 'Futura', 'Trebuchet MS', sans-serif;
|
font-family: 'Futura-Medium', 'Futura', 'Trebuchet MS', sans-serif;
|
||||||
}
|
}
|
||||||
@@ -13,28 +19,31 @@ h1 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.titreBillet {
|
.titreBillet {
|
||||||
margin-bottom : 0px;
|
margin-bottom: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#global {
|
#global {
|
||||||
min-height: 100%; /* Voir commentaire sur html et body plus haut */
|
min-height: 100%;
|
||||||
background: #333534;
|
/* Voir commentaire sur html et body plus haut */
|
||||||
|
background: var(--main-color);
|
||||||
width: 70%;
|
width: 70%;
|
||||||
margin: auto; /* Permet de centrer la div */
|
margin: auto;
|
||||||
|
/* Permet de centrer la div */
|
||||||
text-align: justify;
|
text-align: justify;
|
||||||
padding: 5px 20px;
|
padding: 5px 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#contenu {
|
#contenu {
|
||||||
margin-bottom : 30px;
|
margin-bottom: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#titreBlog, #piedBlog {
|
#titreBlog,
|
||||||
|
#piedBlog {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
#titreReponses {
|
#titreReponses {
|
||||||
font-size : 100%;
|
font-size: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
#txtCommentaire {
|
#txtCommentaire {
|
||||||
@@ -42,9 +51,30 @@ h1 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#titreReponses {
|
#titreReponses {
|
||||||
font-size: 100%;
|
font-size: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
#txtCommentaire {
|
#txtCommentaire {
|
||||||
width: 50%;
|
width: 50%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#organizer {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
a#logout-button {
|
||||||
|
text-decoration: none;
|
||||||
|
color: white;
|
||||||
|
background-color: var(--main-color);
|
||||||
|
padding: 5px 10px;
|
||||||
|
border: 1px solid #fff;
|
||||||
|
border-radius: 5px;
|
||||||
|
transition: background-color 0.3s, color 0.3s;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background-color: #fff;
|
||||||
|
color: var(--main-color);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
14
laravel/resources/css/app.css
Normal file → Executable file
14
laravel/resources/css/app.css
Normal file → Executable file
@@ -1,11 +1,3 @@
|
|||||||
@import 'tailwindcss';
|
@tailwind base;
|
||||||
|
@tailwind components;
|
||||||
@source '../../vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php';
|
@tailwind utilities;
|
||||||
@source '../../storage/framework/views/*.php';
|
|
||||||
@source '../**/*.blade.php';
|
|
||||||
@source '../**/*.js';
|
|
||||||
|
|
||||||
@theme {
|
|
||||||
--font-sans: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
|
|
||||||
'Segoe UI Symbol', 'Noto Color Emoji';
|
|
||||||
}
|
|
||||||
|
|||||||
6
laravel/resources/js/app.js
Normal file → Executable file
6
laravel/resources/js/app.js
Normal file → Executable file
@@ -1 +1,7 @@
|
|||||||
import './bootstrap';
|
import './bootstrap';
|
||||||
|
|
||||||
|
import Alpine from 'alpinejs';
|
||||||
|
|
||||||
|
window.Alpine = Alpine;
|
||||||
|
|
||||||
|
Alpine.start();
|
||||||
|
|||||||
0
laravel/resources/js/bootstrap.js
vendored
Normal file → Executable file
0
laravel/resources/js/bootstrap.js
vendored
Normal file → Executable file
27
laravel/resources/views/auth/confirm-password.blade.php
Executable file
27
laravel/resources/views/auth/confirm-password.blade.php
Executable file
@@ -0,0 +1,27 @@
|
|||||||
|
<x-guest-layout>
|
||||||
|
<div class="mb-4 text-sm text-gray-600 dark:text-gray-400">
|
||||||
|
{{ __('This is a secure area of the application. Please confirm your password before continuing.') }}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<form method="POST" action="{{ route('password.confirm') }}">
|
||||||
|
@csrf
|
||||||
|
|
||||||
|
<!-- Password -->
|
||||||
|
<div>
|
||||||
|
<x-input-label for="password" :value="__('Password')" />
|
||||||
|
|
||||||
|
<x-text-input id="password" class="block mt-1 w-full"
|
||||||
|
type="password"
|
||||||
|
name="password"
|
||||||
|
required autocomplete="current-password" />
|
||||||
|
|
||||||
|
<x-input-error :messages="$errors->get('password')" class="mt-2" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="flex justify-end mt-4">
|
||||||
|
<x-primary-button>
|
||||||
|
{{ __('Confirm') }}
|
||||||
|
</x-primary-button>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</x-guest-layout>
|
||||||
25
laravel/resources/views/auth/forgot-password.blade.php
Executable file
25
laravel/resources/views/auth/forgot-password.blade.php
Executable file
@@ -0,0 +1,25 @@
|
|||||||
|
<x-guest-layout>
|
||||||
|
<div class="mb-4 text-sm text-gray-600 dark:text-gray-400">
|
||||||
|
{{ __('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.') }}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Session Status -->
|
||||||
|
<x-auth-session-status class="mb-4" :status="session('status')" />
|
||||||
|
|
||||||
|
<form method="POST" action="{{ route('password.email') }}">
|
||||||
|
@csrf
|
||||||
|
|
||||||
|
<!-- Email Address -->
|
||||||
|
<div>
|
||||||
|
<x-input-label for="email" :value="__('Email')" />
|
||||||
|
<x-text-input id="email" class="block mt-1 w-full" type="email" name="email" :value="old('email')" required autofocus />
|
||||||
|
<x-input-error :messages="$errors->get('email')" class="mt-2" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="flex items-center justify-end mt-4">
|
||||||
|
<x-primary-button>
|
||||||
|
{{ __('Email Password Reset Link') }}
|
||||||
|
</x-primary-button>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</x-guest-layout>
|
||||||
47
laravel/resources/views/auth/login.blade.php
Executable file
47
laravel/resources/views/auth/login.blade.php
Executable file
@@ -0,0 +1,47 @@
|
|||||||
|
<x-guest-layout>
|
||||||
|
<!-- Session Status -->
|
||||||
|
<x-auth-session-status class="mb-4" :status="session('status')" />
|
||||||
|
|
||||||
|
<form method="POST" action="{{ route('login') }}">
|
||||||
|
@csrf
|
||||||
|
|
||||||
|
<!-- Email Address -->
|
||||||
|
<div>
|
||||||
|
<x-input-label for="email" :value="__('Email')" />
|
||||||
|
<x-text-input id="email" class="block mt-1 w-full" type="email" name="email" :value="old('email')" required autofocus autocomplete="username" />
|
||||||
|
<x-input-error :messages="$errors->get('email')" class="mt-2" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Password -->
|
||||||
|
<div class="mt-4">
|
||||||
|
<x-input-label for="password" :value="__('Password')" />
|
||||||
|
|
||||||
|
<x-text-input id="password" class="block mt-1 w-full"
|
||||||
|
type="password"
|
||||||
|
name="password"
|
||||||
|
required autocomplete="current-password" />
|
||||||
|
|
||||||
|
<x-input-error :messages="$errors->get('password')" class="mt-2" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Remember Me -->
|
||||||
|
<div class="block mt-4">
|
||||||
|
<label for="remember_me" class="inline-flex items-center">
|
||||||
|
<input id="remember_me" type="checkbox" class="rounded dark:bg-gray-900 border-gray-300 dark:border-gray-700 text-indigo-600 shadow-sm focus:ring-indigo-500 dark:focus:ring-indigo-600 dark:focus:ring-offset-gray-800" name="remember">
|
||||||
|
<span class="ms-2 text-sm text-gray-600 dark:text-gray-400">{{ __('Remember me') }}</span>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="flex items-center justify-end mt-4">
|
||||||
|
@if (Route::has('password.request'))
|
||||||
|
<a class="underline text-sm text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-gray-100 rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 dark:focus:ring-offset-gray-800" href="{{ route('password.request') }}">
|
||||||
|
{{ __('Forgot your password?') }}
|
||||||
|
</a>
|
||||||
|
@endif
|
||||||
|
|
||||||
|
<x-primary-button class="ms-3">
|
||||||
|
{{ __('Log in') }}
|
||||||
|
</x-primary-button>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</x-guest-layout>
|
||||||
52
laravel/resources/views/auth/register.blade.php
Executable file
52
laravel/resources/views/auth/register.blade.php
Executable file
@@ -0,0 +1,52 @@
|
|||||||
|
<x-guest-layout>
|
||||||
|
<form method="POST" action="{{ route('register') }}">
|
||||||
|
@csrf
|
||||||
|
|
||||||
|
<!-- Name -->
|
||||||
|
<div>
|
||||||
|
<x-input-label for="name" :value="__('Name')" />
|
||||||
|
<x-text-input id="name" class="block mt-1 w-full" type="text" name="name" :value="old('name')" required autofocus autocomplete="name" />
|
||||||
|
<x-input-error :messages="$errors->get('name')" class="mt-2" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Email Address -->
|
||||||
|
<div class="mt-4">
|
||||||
|
<x-input-label for="email" :value="__('Email')" />
|
||||||
|
<x-text-input id="email" class="block mt-1 w-full" type="email" name="email" :value="old('email')" required autocomplete="username" />
|
||||||
|
<x-input-error :messages="$errors->get('email')" class="mt-2" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Password -->
|
||||||
|
<div class="mt-4">
|
||||||
|
<x-input-label for="password" :value="__('Password')" />
|
||||||
|
|
||||||
|
<x-text-input id="password" class="block mt-1 w-full"
|
||||||
|
type="password"
|
||||||
|
name="password"
|
||||||
|
required autocomplete="new-password" />
|
||||||
|
|
||||||
|
<x-input-error :messages="$errors->get('password')" class="mt-2" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Confirm Password -->
|
||||||
|
<div class="mt-4">
|
||||||
|
<x-input-label for="password_confirmation" :value="__('Confirm Password')" />
|
||||||
|
|
||||||
|
<x-text-input id="password_confirmation" class="block mt-1 w-full"
|
||||||
|
type="password"
|
||||||
|
name="password_confirmation" required autocomplete="new-password" />
|
||||||
|
|
||||||
|
<x-input-error :messages="$errors->get('password_confirmation')" class="mt-2" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="flex items-center justify-end mt-4">
|
||||||
|
<a class="underline text-sm text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-gray-100 rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 dark:focus:ring-offset-gray-800" href="{{ route('login') }}">
|
||||||
|
{{ __('Already registered?') }}
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<x-primary-button class="ms-4">
|
||||||
|
{{ __('Register') }}
|
||||||
|
</x-primary-button>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</x-guest-layout>
|
||||||
39
laravel/resources/views/auth/reset-password.blade.php
Executable file
39
laravel/resources/views/auth/reset-password.blade.php
Executable file
@@ -0,0 +1,39 @@
|
|||||||
|
<x-guest-layout>
|
||||||
|
<form method="POST" action="{{ route('password.store') }}">
|
||||||
|
@csrf
|
||||||
|
|
||||||
|
<!-- Password Reset Token -->
|
||||||
|
<input type="hidden" name="token" value="{{ $request->route('token') }}">
|
||||||
|
|
||||||
|
<!-- Email Address -->
|
||||||
|
<div>
|
||||||
|
<x-input-label for="email" :value="__('Email')" />
|
||||||
|
<x-text-input id="email" class="block mt-1 w-full" type="email" name="email" :value="old('email', $request->email)" required autofocus autocomplete="username" />
|
||||||
|
<x-input-error :messages="$errors->get('email')" class="mt-2" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Password -->
|
||||||
|
<div class="mt-4">
|
||||||
|
<x-input-label for="password" :value="__('Password')" />
|
||||||
|
<x-text-input id="password" class="block mt-1 w-full" type="password" name="password" required autocomplete="new-password" />
|
||||||
|
<x-input-error :messages="$errors->get('password')" class="mt-2" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Confirm Password -->
|
||||||
|
<div class="mt-4">
|
||||||
|
<x-input-label for="password_confirmation" :value="__('Confirm Password')" />
|
||||||
|
|
||||||
|
<x-text-input id="password_confirmation" class="block mt-1 w-full"
|
||||||
|
type="password"
|
||||||
|
name="password_confirmation" required autocomplete="new-password" />
|
||||||
|
|
||||||
|
<x-input-error :messages="$errors->get('password_confirmation')" class="mt-2" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="flex items-center justify-end mt-4">
|
||||||
|
<x-primary-button>
|
||||||
|
{{ __('Reset Password') }}
|
||||||
|
</x-primary-button>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</x-guest-layout>
|
||||||
31
laravel/resources/views/auth/verify-email.blade.php
Executable file
31
laravel/resources/views/auth/verify-email.blade.php
Executable file
@@ -0,0 +1,31 @@
|
|||||||
|
<x-guest-layout>
|
||||||
|
<div class="mb-4 text-sm text-gray-600 dark:text-gray-400">
|
||||||
|
{{ __('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.') }}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
@if (session('status') == 'verification-link-sent')
|
||||||
|
<div class="mb-4 font-medium text-sm text-green-600 dark:text-green-400">
|
||||||
|
{{ __('A new verification link has been sent to the email address you provided during registration.') }}
|
||||||
|
</div>
|
||||||
|
@endif
|
||||||
|
|
||||||
|
<div class="mt-4 flex items-center justify-between">
|
||||||
|
<form method="POST" action="{{ route('verification.send') }}">
|
||||||
|
@csrf
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<x-primary-button>
|
||||||
|
{{ __('Resend Verification Email') }}
|
||||||
|
</x-primary-button>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<form method="POST" action="{{ route('logout') }}">
|
||||||
|
@csrf
|
||||||
|
|
||||||
|
<button type="submit" class="underline text-sm text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-gray-100 rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 dark:focus:ring-offset-gray-800">
|
||||||
|
{{ __('Log Out') }}
|
||||||
|
</button>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</x-guest-layout>
|
||||||
3
laravel/resources/views/components/application-logo.blade.php
Executable file
3
laravel/resources/views/components/application-logo.blade.php
Executable file
@@ -0,0 +1,3 @@
|
|||||||
|
<svg viewBox="0 0 316 316" xmlns="http://www.w3.org/2000/svg" {{ $attributes }}>
|
||||||
|
<path d="M305.8 81.125C305.77 80.995 305.69 80.885 305.65 80.755C305.56 80.525 305.49 80.285 305.37 80.075C305.29 79.935 305.17 79.815 305.07 79.685C304.94 79.515 304.83 79.325 304.68 79.175C304.55 79.045 304.39 78.955 304.25 78.845C304.09 78.715 303.95 78.575 303.77 78.475L251.32 48.275C249.97 47.495 248.31 47.495 246.96 48.275L194.51 78.475C194.33 78.575 194.19 78.725 194.03 78.845C193.89 78.955 193.73 79.045 193.6 79.175C193.45 79.325 193.34 79.515 193.21 79.685C193.11 79.815 192.99 79.935 192.91 80.075C192.79 80.285 192.71 80.525 192.63 80.755C192.58 80.875 192.51 80.995 192.48 81.125C192.38 81.495 192.33 81.875 192.33 82.265V139.625L148.62 164.795V52.575C148.62 52.185 148.57 51.805 148.47 51.435C148.44 51.305 148.36 51.195 148.32 51.065C148.23 50.835 148.16 50.595 148.04 50.385C147.96 50.245 147.84 50.125 147.74 49.995C147.61 49.825 147.5 49.635 147.35 49.485C147.22 49.355 147.06 49.265 146.92 49.155C146.76 49.025 146.62 48.885 146.44 48.785L93.99 18.585C92.64 17.805 90.98 17.805 89.63 18.585L37.18 48.785C37 48.885 36.86 49.035 36.7 49.155C36.56 49.265 36.4 49.355 36.27 49.485C36.12 49.635 36.01 49.825 35.88 49.995C35.78 50.125 35.66 50.245 35.58 50.385C35.46 50.595 35.38 50.835 35.3 51.065C35.25 51.185 35.18 51.305 35.15 51.435C35.05 51.805 35 52.185 35 52.575V232.235C35 233.795 35.84 235.245 37.19 236.025L142.1 296.425C142.33 296.555 142.58 296.635 142.82 296.725C142.93 296.765 143.04 296.835 143.16 296.865C143.53 296.965 143.9 297.015 144.28 297.015C144.66 297.015 145.03 296.965 145.4 296.865C145.5 296.835 145.59 296.775 145.69 296.745C145.95 296.655 146.21 296.565 146.45 296.435L251.36 236.035C252.72 235.255 253.55 233.815 253.55 232.245V174.885L303.81 145.945C305.17 145.165 306 143.725 306 142.155V82.265C305.95 81.875 305.89 81.495 305.8 81.125ZM144.2 227.205L100.57 202.515L146.39 176.135L196.66 147.195L240.33 172.335L208.29 190.625L144.2 227.205ZM244.75 114.995V164.795L226.39 154.225L201.03 139.625V89.825L219.39 100.395L244.75 114.995ZM249.12 57.105L292.81 82.265L249.12 107.425L205.43 82.265L249.12 57.105ZM114.49 184.425L96.13 194.995V85.305L121.49 70.705L139.85 60.135V169.815L114.49 184.425ZM91.76 27.425L135.45 52.585L91.76 77.745L48.07 52.585L91.76 27.425ZM43.67 60.135L62.03 70.705L87.39 85.305V202.545V202.555V202.565C87.39 202.735 87.44 202.895 87.46 203.055C87.49 203.265 87.49 203.485 87.55 203.695V203.705C87.6 203.875 87.69 204.035 87.76 204.195C87.84 204.375 87.89 204.575 87.99 204.745C87.99 204.745 87.99 204.755 88 204.755C88.09 204.905 88.22 205.035 88.33 205.175C88.45 205.335 88.55 205.495 88.69 205.635L88.7 205.645C88.82 205.765 88.98 205.855 89.12 205.965C89.28 206.085 89.42 206.225 89.59 206.325C89.6 206.325 89.6 206.325 89.61 206.335C89.62 206.335 89.62 206.345 89.63 206.345L139.87 234.775V285.065L43.67 229.705V60.135ZM244.75 229.705L148.58 285.075V234.775L219.8 194.115L244.75 179.875V229.705ZM297.2 139.625L253.49 164.795V114.995L278.85 100.395L297.21 89.825V139.625H297.2Z"/>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 3.0 KiB |
7
laravel/resources/views/components/auth-session-status.blade.php
Executable file
7
laravel/resources/views/components/auth-session-status.blade.php
Executable file
@@ -0,0 +1,7 @@
|
|||||||
|
@props(['status'])
|
||||||
|
|
||||||
|
@if ($status)
|
||||||
|
<div {{ $attributes->merge(['class' => 'font-medium text-sm text-green-600 dark:text-green-400']) }}>
|
||||||
|
{{ $status }}
|
||||||
|
</div>
|
||||||
|
@endif
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user