From 9c8184ecdddf6d7532c56547aed95d0771347310 Mon Sep 17 00:00:00 2001 From: TorstenS Date: Wed, 23 Sep 2020 20:57:34 +0200 Subject: [PATCH] ... --- motorradig/.env.production | 45 +++++++++++++++++++ .../resources/views/users/edit.blade.php | 22 ++++++--- .../resources/views/users/show.blade.php | 2 +- 3 files changed, 62 insertions(+), 7 deletions(-) create mode 100644 motorradig/.env.production diff --git a/motorradig/.env.production b/motorradig/.env.production new file mode 100644 index 0000000..4f69e6d --- /dev/null +++ b/motorradig/.env.production @@ -0,0 +1,45 @@ +APP_NAME=MotorradIG +APP_ENV=local +APP_KEY=base64:7Md2wHHNq04ldtpdsz4B2LDAMEOB+4fSfxMJGfDU2zY= +APP_DEBUG=true +APP_URL=http://test.motorrad-ig.de +LOG_CHANNEL=stack + +DB_CONNECTION=mysql +DB_HOST=127.0.0.1 +DB_PORT=3306 +DB_DATABASE=d0304938 +DB_USERNAME=d0304938 +DB_PASSWORD=hubbabubba + +BROADCAST_DRIVER=log +CACHE_DRIVER=file +QUEUE_CONNECTION=sync +SESSION_DRIVER=file +SESSION_LIFETIME=120 + +REDIS_HOST=127.0.0.1 +REDIS_PASSWORD=null +REDIS_PORT=6379 + +MAIL_MAILER=smtp +MAIL_HOST=smtp.mailtrap.io +MAIL_PORT=2525 +MAIL_USERNAME=null +MAIL_PASSWORD=null +MAIL_ENCRYPTION=null +MAIL_FROM_ADDRESS=null +MAIL_FROM_NAME="${APP_NAME}" + +AWS_ACCESS_KEY_ID= +AWS_SECRET_ACCESS_KEY= +AWS_DEFAULT_REGION=us-east-1 +AWS_BUCKET= + +PUSHER_APP_ID= +PUSHER_APP_KEY= +PUSHER_APP_SECRET= +PUSHER_APP_CLUSTER=mt1 + +MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}" +MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}" diff --git a/motorradig/resources/views/users/edit.blade.php b/motorradig/resources/views/users/edit.blade.php index f1021c2..4f72bcf 100644 --- a/motorradig/resources/views/users/edit.blade.php +++ b/motorradig/resources/views/users/edit.blade.php @@ -24,19 +24,18 @@ + - - - @if(Auth::user()=="ADMIN") + @if(Auth::user()->role=="ADMIN") Speichern @endif Abbrechen @@ -44,4 +43,15 @@ + + @endsection diff --git a/motorradig/resources/views/users/show.blade.php b/motorradig/resources/views/users/show.blade.php index af05fcd..cd19ed7 100644 --- a/motorradig/resources/views/users/show.blade.php +++ b/motorradig/resources/views/users/show.blade.php @@ -32,7 +32,7 @@ - @if(Auth::user()=="ADMIN") + @if(Auth::user()->role=="ADMIN") Bearbeiten @endif Zurück