Skip to content
This repository has been archived by the owner on Oct 20, 2024. It is now read-only.

Commit

Permalink
Feeback (#156)
Browse files Browse the repository at this point in the history
* resolve pilots ivao

* feedback
  • Loading branch information
alexcaussades authored Apr 14, 2024
1 parent d5117a1 commit f4bfd73
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
use Illuminate\Support\Facades\Http;
use Illuminate\Support\Facades\Mail;
use Monolog\Formatter\JsonFormatter;
use Illuminate\Support\Facades\Crypt;
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\AtcController;
use Illuminate\Support\Facades\Session;
Expand Down Expand Up @@ -602,13 +603,14 @@

Route::post("create", function (Request $request) {
$github = new GithubController();
// dd($request);
// $request->merge([
// "user_id" => Auth::user()->id ?? null,
// "body" => $request->body,
// "link" => $github,
// "label" => $request->label
// ]);
$github = $github->send_issue($request);
$request->merge([
"user_id" => Auth::user()->id ?? null,
"body" => $request->body,
"link" => $github,
"label" => $request->label
]);
$discord = new DiscordContoller();
$discord->send_feedback($request);
return to_route("feedback.index")->with("success", "Votre feedback à été envoyé !");
Expand Down Expand Up @@ -670,4 +672,10 @@
return $event_world;

})->name("event.index");

Route::get("crypt", function (Request $request) {
$encrypted = Crypt::encryptString('la vie de devs est cool.');
$decrypted = Crypt::decryptString("eyJpdiI6Ik94UDRsMlR4NGRSWHVjazljTXJhQVE9PSIsInZhbHVlIjoiWlZWdGNNdXZabDFlTGQrLzRTVytwejFtV25MRGVibk1IUXB2bDZwVEF2ST0iLCJtYWMiOiJkZmVkOTNhZWM2NmY2MTEyNjhjYjYyMDZiN2FjM2I3MmMwZjY3ZGNiNTJjOTVmOGZiMjRlM2Q3ODE3NTU2ZDQ1IiwidGFnIjoiIn0=");
dd($decrypted);
})->name("crypto");
});

0 comments on commit f4bfd73

Please sign in to comment.