Skip to content

Instantly share code, notes, and snippets.

View jkpeyi's full-sized avatar

Jonathan KPEYI jkpeyi

View GitHub Profile
public function render($request, Throwable $exception)
{
switch (true) {
case ($exception instanceof MethodNotAllowedHttpException):
$method = $request->method();
$response = ['message' => "La méthode $method n'est pas appropriée pour cet URL"];
const products = [
{
id: 1,
name: "Sac Andela",
price: 500,
currency: "$",
currency_code:"USD", //got it from store info
category: {
id: 1,
name: "Men'wear",
@jkpeyi
jkpeyi / hq_al.csv
Last active September 4, 2023 07:04
HQ Audio Layer UX Research
Device Release Date Android Version HiOS Version Sound Quality
Tecno Pop 5 July 2021 Android 10 HiOS V8.6.0 Good
Infinix Smart 6 Android 10 Very Bad
Infinix Hot 8 Lite Android 8.1 Good
Infinix Hot 8 X650 B Android 9 Good
Redmi note 10 C Android 11 Good
Tecno Pop 5 P Aug 2021 Android 10 Good
Tecno Camon 18 P Android 12 Very Bad
Tecno Camon 18 i Android 12 Very Bad
Tecno Pop 2 Plus May 2019 Android 8.1 Good

Modules

  • GET /api/modules
  • Réponse:
[
  { "id": 1, "title": "Tableau de bord", "created_at": "...", "updated_at": "..." }
]

Liste Formations publiées

  • Méthode: GET
  • URL: /api/formations-published
  • Params/Body: per_page (query, optionnel), body vide
  • Réponse:
{
  "data": [
    { "id": 123, "title": "...", "status": "published", "trainer_id": 1, "image": "...", "delivery_mode": "..." }
  ],