]> _ Git - prescription-quotidien.git/commitdiff
wip #7061 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 5 Sep 2024 15:12:55 +0000 (17:12 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 5 Sep 2024 15:12:55 +0000 (17:12 +0200)
app/Http/Middleware/CheckIfAdmin.php [new file with mode: 0644]
composer.json
composer.lock
config/auth.php

diff --git a/app/Http/Middleware/CheckIfAdmin.php b/app/Http/Middleware/CheckIfAdmin.php
new file mode 100644 (file)
index 0000000..487053f
--- /dev/null
@@ -0,0 +1,8 @@
+<?php
+
+namespace App\Http\Middleware;
+
+class CheckIfAdmin extends \Backpack\CRUD\app\Http\Middleware\CheckIfAdmin
+{
+
+}
index 5be1b811ec2ec609b6e9ffbbdf587d81be6fd618..5ed7a1151aaad9f5f024c868c59d4ea8389629a7 100644 (file)
@@ -1,27 +1,27 @@
 {
     "name": "cubedesigners/presquot",
     "type": "project",
-    "description": "presquot project",
+    "description": "prescription quotidien",
     "keywords": [
         "presquot"
     ],
     "license": "Proprietary",
     "require": {
-        "php": "^8.1",
-        "guzzlehttp/guzzle": "^7.2",
-        "laravel/framework": "^10.10",
+        "php": "^8.3",
+        "guzzlehttp/guzzle": "^7.9",
+        "laravel/framework": "^10.48",
         "laravel/sanctum": "^3.3",
-        "laravel/tinker": "^2.8",
+        "laravel/tinker": "^2.9",
         "cubist/cms-back": "dev-master"
     },
     "require-dev": {
-        "fakerphp/faker": "^1.9.1",
-        "laravel/pint": "^1.0",
-        "laravel/sail": "^1.18",
-        "mockery/mockery": "^1.4.4",
-        "nunomaduro/collision": "^7.0",
-        "phpunit/phpunit": "^10.1",
-        "spatie/laravel-ignition": "^2.0"
+        "fakerphp/faker": "^1.23.1",
+        "laravel/pint": "^1.17",
+        "laravel/sail": "^1.31",
+        "mockery/mockery": "^1.6",
+        "nunomaduro/collision": "^7.10",
+        "phpunit/phpunit": "^10.5",
+        "spatie/laravel-ignition": "^2.8"
     },
     "autoload": {
         "psr-4": {
index 05fc0074da1ce8ff22edd272b416e620ff87c9e9..a5e26f6c99d3dc388e95858138a3c7fda372e038 100644 (file)
@@ -4,7 +4,7 @@
         "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
         "This file is @generated automatically"
     ],
-    "content-hash": "3eceaed3925ddd8ff2c477882e6b32d1",
+    "content-hash": "c2b2d55523efb24a07709f108bbc6648",
     "packages": [
         {
             "name": "archtechx/enums",
         "php": "^8.1"
     },
     "platform-dev": [],
-    "plugin-api-version": "2.1.0"
+    "plugin-api-version": "2.6.0"
 }
index 9548c15de9407839ac1068eb208c008b56e54b52..09aef648cccf3d1b3c494a2c746ce0ce5f2a83bb 100644 (file)
@@ -40,6 +40,10 @@ return [
             'driver' => 'session',
             'provider' => 'users',
         ],
+        'client' => [
+            'driver' => 'session',
+            'provider' => 'clients',
+        ],
     ],
 
     /*
@@ -65,6 +69,16 @@ return [
             'model' => App\Models\User::class,
         ],
 
+        'clients' => [
+            'driver' => 'eloquent',
+            'model' => App\Models\Client::class,
+        ],
+
+        'backpack' => [
+            'driver' => 'eloquent',
+            'model' => App\Models\User::class,
+        ],
+
         // 'users' => [
         //     'driver' => 'database',
         //     'table' => 'users',
@@ -97,6 +111,19 @@ return [
             'expire' => 60,
             'throttle' => 60,
         ],
+
+        'clients' => [
+            'provider' => 'clients',
+            'table' => 'password_reset_tokens',
+            'expire' => 60,
+            'throttle' => 60,
+        ],
+        'backpack' => [
+            'provider' => 'users',
+            'table' => 'password_reset_tokens',
+            'expire' => 60,
+            'throttle' => 60,
+        ],
     ],
 
     /*