Skip to content

Commit 020a99c

Browse files
committed
uploaded files online
1 parent 58d53f3 commit 020a99c

File tree

511 files changed

+69088
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

511 files changed

+69088
-0
lines changed

.editorconfig

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
indent_size = 4
7+
indent_style = space
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.md]
12+
trim_trailing_whitespace = false
13+
14+
[*.{yml,yaml}]
15+
indent_size = 2
16+
17+
[docker-compose.yml]
18+
indent_size = 4

.env.example

+64
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
APP_NAME=Laravel
2+
APP_ENV=local
3+
APP_KEY=
4+
APP_DEBUG=true
5+
APP_TIMEZONE=UTC
6+
APP_URL=http://localhost
7+
8+
APP_LOCALE=en
9+
APP_FALLBACK_LOCALE=en
10+
APP_FAKER_LOCALE=en_US
11+
12+
APP_MAINTENANCE_DRIVER=file
13+
# APP_MAINTENANCE_STORE=database
14+
15+
BCRYPT_ROUNDS=12
16+
17+
LOG_CHANNEL=stack
18+
LOG_STACK=single
19+
LOG_DEPRECATIONS_CHANNEL=null
20+
LOG_LEVEL=debug
21+
22+
DB_CONNECTION=sqlite
23+
# DB_HOST=127.0.0.1
24+
# DB_PORT=3306
25+
# DB_DATABASE=laravel
26+
# DB_USERNAME=root
27+
# DB_PASSWORD=
28+
29+
SESSION_DRIVER=database
30+
SESSION_LIFETIME=120
31+
SESSION_ENCRYPT=false
32+
SESSION_PATH=/
33+
SESSION_DOMAIN=null
34+
35+
BROADCAST_CONNECTION=log
36+
FILESYSTEM_DISK=local
37+
QUEUE_CONNECTION=database
38+
39+
CACHE_STORE=database
40+
CACHE_PREFIX=
41+
42+
MEMCACHED_HOST=127.0.0.1
43+
44+
REDIS_CLIENT=phpredis
45+
REDIS_HOST=127.0.0.1
46+
REDIS_PASSWORD=null
47+
REDIS_PORT=6379
48+
49+
MAIL_MAILER=log
50+
MAIL_HOST=127.0.0.1
51+
MAIL_PORT=2525
52+
MAIL_USERNAME=null
53+
MAIL_PASSWORD=null
54+
MAIL_ENCRYPTION=null
55+
MAIL_FROM_ADDRESS="hello@example.com"
56+
MAIL_FROM_NAME="${APP_NAME}"
57+
58+
AWS_ACCESS_KEY_ID=
59+
AWS_SECRET_ACCESS_KEY=
60+
AWS_DEFAULT_REGION=us-east-1
61+
AWS_BUCKET=
62+
AWS_USE_PATH_STYLE_ENDPOINT=false
63+
64+
VITE_APP_NAME="${APP_NAME}"

.gitattributes

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
* text=auto eol=lf
2+
3+
*.blade.php diff=html
4+
*.css diff=css
5+
*.html diff=html
6+
*.md diff=markdown
7+
*.php diff=php
8+
9+
/.github export-ignore
10+
CHANGELOG.md export-ignore
11+
.styleci.yml export-ignore

.gitignore

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/.phpunit.cache
2+
/node_modules
3+
/public/build
4+
/public/hot
5+
/public/storage
6+
/storage/*.key
7+
/vendor
8+
.env
9+
.env.backup
10+
.env.production
11+
.phpactor.json
12+
.phpunit.result.cache
13+
Homestead.json
14+
Homestead.yaml
15+
auth.json
16+
npm-debug.log
17+
yarn-error.log
18+
/.fleet
19+
/.idea
20+
/.vscode
21+
/.zed
+65
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
<?php
2+
3+
namespace App\Http\Controllers;
4+
5+
use App\Models\Article;
6+
use Illuminate\Http\Request;
7+
8+
class BlogController extends Controller
9+
{
10+
/**
11+
* Display a listing of the resource.
12+
*/
13+
public function index()
14+
{
15+
//
16+
}
17+
18+
/**
19+
* Show the form for creating a new resource.
20+
*/
21+
public function create()
22+
{
23+
//
24+
}
25+
26+
/**
27+
* Store a newly created resource in storage.
28+
*/
29+
public function store(Request $request)
30+
{
31+
//
32+
}
33+
34+
/**
35+
* Display the specified resource.
36+
*/
37+
public function show(Article $article)
38+
{
39+
//
40+
}
41+
42+
/**
43+
* Show the form for editing the specified resource.
44+
*/
45+
public function edit(Article $article)
46+
{
47+
//
48+
}
49+
50+
/**
51+
* Update the specified resource in storage.
52+
*/
53+
public function update(Request $request, Article $article)
54+
{
55+
//
56+
}
57+
58+
/**
59+
* Remove the specified resource from storage.
60+
*/
61+
public function destroy(Article $article)
62+
{
63+
//
64+
}
65+
}
+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
<?php
2+
3+
namespace App\Http\Controllers;
4+
5+
use Illuminate\Http\Request;
6+
use App\Mail\ContactFormMail;
7+
use Illuminate\Support\Facades\Mail;
8+
9+
class ContactController extends Controller
10+
{
11+
12+
public function index()
13+
{
14+
return view('contact');
15+
}
16+
public function submit(Request $request)
17+
{
18+
// Vérifier le champ botcheck pour éviter les bots
19+
if ($request->input('botcheck')) {
20+
return redirect()->back()->with('error', 'Bot détecté.');
21+
}
22+
23+
// Valider les données du formulaire
24+
$validatedData = $request->validate([
25+
'fullName' => 'required|string|max:255',
26+
'email' => 'required|email',
27+
'objet' => 'required|string|max:255',
28+
'telephone' => 'required|string|max:20',
29+
'message' => 'required|string',
30+
]);
31+
32+
// Préparer les données pour l'email
33+
$emailData = [
34+
'name' => $validatedData['fullName'],
35+
'email' => $validatedData['email'],
36+
'subject' => $validatedData['objet'],
37+
'telephone' => $validatedData['telephone'],
38+
'messageContent' => $validatedData['message'],
39+
];
40+
41+
try {
42+
// Envoyer l'email
43+
Mail::to('infos@richkoff.com')->send(new ContactFormMail($emailData));
44+
45+
// Rediriger avec un message de succès
46+
return redirect()->back()->with('success', 'Votre message a été envoyé avec succès!');
47+
} catch (\Exception $e) {
48+
// Gérer les erreurs d'envoi d'email
49+
return redirect()->back()->with('error', 'Une erreur est survenue lors de l\'envoi de votre message.');
50+
}
51+
}
52+
}

app/Http/Controllers/Controller.php

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?php
2+
3+
namespace App\Http\Controllers;
4+
5+
abstract class Controller
6+
{
7+
//
8+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
<?php
2+
3+
namespace App\Http\Controllers;
4+
5+
use Illuminate\Http\Request;
6+
7+
class DiffuseurController extends Controller
8+
{
9+
public function index(){
10+
return view("diffuseur.index");
11+
}
12+
13+
public function maison(){
14+
return view("diffuseur.maison");
15+
}
16+
17+
public function commerce(){
18+
return view("diffuseur.commerce");
19+
}
20+
21+
public function faq(){
22+
return view("diffuseur.faq");
23+
}
24+
25+
public function qrbox(){
26+
return view("diffuseur.qrbox");
27+
}
28+
29+
public function qrart(){
30+
return view("diffuseur.qrart");
31+
}
32+
33+
public function pro(){
34+
return view("diffuseur.pro");
35+
}
36+
37+
public function slim(){
38+
return view("diffuseur.slim");
39+
}
40+
41+
public function spray(){
42+
return view("diffuseur.spray");
43+
}
44+
}
+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<?php
2+
3+
namespace App\Http\Controllers;
4+
5+
use Illuminate\Http\Request;
6+
use App\Mail\FormSubmissionMail;
7+
use Illuminate\Support\Facades\Mail;
8+
use Illuminate\Support\Facades\Validator;
9+
10+
class FormController extends Controller
11+
{
12+
public function submit(Request $request)
13+
{
14+
// Validation des données
15+
$validator = Validator::make($request->all(), [
16+
'full-name' => 'required|string|max:255',
17+
'telephone' => 'required|string|max:20',
18+
'quantity' => 'required|integer|min:1',
19+
'paiement' => 'required|string',
20+
]);
21+
22+
if ($validator->fails()) {
23+
return redirect()->back()->withErrors($validator)->withInput();
24+
}
25+
26+
// Préparer les données du formulaire
27+
$formData = $request->only(['full-name', 'telephone', 'quantity', 'paiement']);
28+
29+
// Envoi de l'email
30+
try {
31+
Mail::send(new FormSubmissionMail($formData));
32+
} catch (\Exception $e) {
33+
// Gérer les erreurs d'envoi
34+
return redirect()->back()->with('error', 'Erreur lors de l\'envoi du formulaire. Veuillez réessayer plus tard.');
35+
}
36+
37+
return redirect()->back()->with('success', 'Formulaire envoyé avec succès !');
38+
}
39+
}
+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
<?php
2+
3+
namespace App\Http\Controllers;
4+
5+
use Illuminate\Http\Request;
6+
7+
class ParfumController extends Controller
8+
{
9+
protected $style;
10+
protected $bg;
11+
12+
public function __construct()
13+
{
14+
$this->bg = "";
15+
$this->updateStyle();
16+
}
17+
18+
protected function updateStyle()
19+
{
20+
$this->style = $this->bg === "dark"
21+
? 'style="background-color: rgba(0, 0, 0, 0.476); backdrop-filter: blur(10px); padding: 20px;"'
22+
: '';
23+
}
24+
25+
public function index() {
26+
return view("parfum.index", ['bg' => $this->bg, 'style' => $this->style]);
27+
}
28+
29+
public function confusion() {
30+
$this->bg = "dark";
31+
$this->updateStyle();
32+
return view("parfum.confusion", ['bg' => $this->bg, 'style' => $this->style]);
33+
}
34+
35+
public function ceintureNoire(){
36+
return view('parfum.ceinture-noire', ['bg' => $this->bg, 'style' => $this->style]);
37+
}
38+
39+
public function exode(){
40+
$this->bg = "dark";
41+
$this->updateStyle();
42+
return view('parfum.exode', ['bg' => $this->bg, 'style' => $this->style]);
43+
}
44+
45+
public function makeda(){
46+
$this->bg = "dark";
47+
$this->updateStyle();
48+
return view('parfum.makeda', ['bg' => $this->bg, 'style' => $this->style]);
49+
}
50+
51+
public function santal(){
52+
$this->bg = "dark";
53+
$this->updateStyle();
54+
return view('parfum.santal', ['bg' => $this->bg, 'style' => $this->style]);
55+
}
56+
57+
public function voyage(){
58+
return view('parfum.voyage', ['bg' => $this->bg, 'style' => $this->style]);
59+
}
60+
}

0 commit comments

Comments
 (0)