From bb0d43735f97884481261349e0a743600a0d9ed6 Mon Sep 17 00:00:00 2001 From: Diana Scharf Date: Fri, 24 Feb 2023 13:34:35 +0100 Subject: [PATCH 1/4] Added Laravel 10 dependencies --- composer.json | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/composer.json b/composer.json index 08395f3..cbfaadc 100644 --- a/composer.json +++ b/composer.json @@ -17,10 +17,10 @@ ], "require": { "php": "^7.3|^8.0", - "illuminate/auth": "^8.0|^9.0", - "illuminate/database": "^8.0|^9.0", - "illuminate/notifications": "^8.0|^9.0", - "illuminate/support": "^8.0|^9.0", + "illuminate/auth": "^8.0|^9.0|^10.0", + "illuminate/database": "^8.0|^9.0|^10.0", + "illuminate/notifications": "^8.0|^9.0|^10.0", + "illuminate/support": "^8.0|^9.0|^10.0", "laravel/ui": "^3.0" }, "require-dev": { @@ -40,7 +40,6 @@ "scripts": { "test": "vendor/bin/phpunit", "test-coverage": "vendor/bin/phpunit --coverage-html coverage" - }, "config": { "sort-packages": true From 0c1adcaf017c0325b2eaf3d2e71ee7db1e8845fb Mon Sep 17 00:00:00 2001 From: Diana Scharf Date: Fri, 24 Feb 2023 15:31:07 +0100 Subject: [PATCH 2/4] Updated laravel/ui dependency --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index cbfaadc..b0a953f 100644 --- a/composer.json +++ b/composer.json @@ -21,7 +21,7 @@ "illuminate/database": "^8.0|^9.0|^10.0", "illuminate/notifications": "^8.0|^9.0|^10.0", "illuminate/support": "^8.0|^9.0|^10.0", - "laravel/ui": "^3.0" + "laravel/ui": "^3.0|^4.0" }, "require-dev": { "phpunit/phpunit": "^9.0", From d6b31b511a4314eeaa60163a7626bd11db5821af Mon Sep 17 00:00:00 2001 From: Di Date: Fri, 5 Apr 2024 15:58:04 +0200 Subject: [PATCH 3/4] Chores --- .gitignore | 3 ++- .scrutinizer.yml | 19 ------------------- .styleci.yml | 4 ---- .travis.yml | 20 -------------------- README.md | 8 +++----- phpunit.xml.dist | 12 ------------ 6 files changed, 5 insertions(+), 61 deletions(-) delete mode 100644 .scrutinizer.yml delete mode 100644 .styleci.yml delete mode 100644 .travis.yml diff --git a/.gitignore b/.gitignore index 3b99cf4..321b930 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,5 @@ composer.lock docs vendor coverage -.idea \ No newline at end of file +.idea +.phpunit.result.cache \ No newline at end of file diff --git a/.scrutinizer.yml b/.scrutinizer.yml deleted file mode 100644 index df16b68..0000000 --- a/.scrutinizer.yml +++ /dev/null @@ -1,19 +0,0 @@ -filter: - excluded_paths: [tests/*] - -checks: - php: - remove_extra_empty_lines: true - remove_php_closing_tag: true - remove_trailing_whitespace: true - fix_use_statements: - remove_unused: true - preserve_multiple: false - preserve_blanklines: true - order_alphabetically: true - fix_php_opening_tag: true - fix_linefeed: true - fix_line_ending: true - fix_identation_4spaces: true - fix_doc_comments: true - diff --git a/.styleci.yml b/.styleci.yml deleted file mode 100644 index f4d3cbc..0000000 --- a/.styleci.yml +++ /dev/null @@ -1,4 +0,0 @@ -preset: laravel - -disabled: - - single_class_element_per_statement diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 4084157..0000000 --- a/.travis.yml +++ /dev/null @@ -1,20 +0,0 @@ -language: php - -php: - - 7.1 - - 7.2 - -env: - matrix: - - COMPOSER_FLAGS="--prefer-lowest" - - COMPOSER_FLAGS="" - -before_script: - - travis_retry composer self-update - - travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-source - -script: - - vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover - -after_script: - - php vendor/bin/ocular code-coverage:upload --format=php-clover coverage.clover diff --git a/README.md b/README.md index eb123f5..5f23790 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,6 @@ # Laravel Email Confirmation [![Latest Version on Packagist](https://img.shields.io/packagist/v/beyondcode/laravel-confirm-email.svg?style=flat-square)](https://packagist.org/packages/beyondcode/laravel-confirm-email) -[![Build Status](https://img.shields.io/travis/beyondcode/laravel-confirm-email/master.svg?style=flat-square)](https://travis-ci.org/beyondcode/laravel-confirm-email) -[![Quality Score](https://img.shields.io/scrutinizer/g/beyondcode/laravel-confirm-email.svg?style=flat-square)](https://scrutinizer-ci.com/g/beyondcode/laravel-confirm-email) [![Total Downloads](https://img.shields.io/packagist/dt/beyondcode/laravel-confirm-email.svg?style=flat-square)](https://packagist.org/packages/beyondcode/laravel-confirm-email) @@ -17,7 +15,7 @@ composer require beyondcode/laravel-confirm-email ## Usage This package adds a `confirmed_at` and `confirmation_code` field to your users table. -Publish the migration and the configuration file using +Publish the migration and the configuration file using ```bash php artisan vendor:publish --provider="BeyondCode\EmailConfirmation\EmailConfirmationServiceProvider" @@ -50,7 +48,7 @@ Route::name('auth.confirm')->get('/register/confirm/{confirmation_code}', 'Auth\ ### Show confirmation messages -This packages adds some flash messages that contain error/information messages for your users. +This packages adds some flash messages that contain error/information messages for your users. To show them to your users, add this to your `login.blade.php`: ```blade @@ -84,7 +82,7 @@ You can change all possible redirect routes by including these values either as They all default to `route('login')`. ### The Confirmed Event -On successful email confirmation, this package dispatches a `Confirmed` event, in order for you to conveniently handle +On successful email confirmation, this package dispatches a `Confirmed` event, in order for you to conveniently handle any custom logic, such as sending a welcome email or automatically logging the user in. Simply add the `Confirmed` event, and your listeners, to the `EventServiceProvider` in your application: diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 1eef57c..60b5c73 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -14,16 +14,4 @@ tests - - - src/ - - - - - - - - - From 339d1c55fc1021d1b9425d11678cb880e941ac85 Mon Sep 17 00:00:00 2001 From: Di Date: Fri, 5 Apr 2024 16:05:39 +0200 Subject: [PATCH 4/4] Laravel 11 --- composer.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/composer.json b/composer.json index b0a953f..ae9e8d4 100644 --- a/composer.json +++ b/composer.json @@ -17,15 +17,15 @@ ], "require": { "php": "^7.3|^8.0", - "illuminate/auth": "^8.0|^9.0|^10.0", - "illuminate/database": "^8.0|^9.0|^10.0", - "illuminate/notifications": "^8.0|^9.0|^10.0", - "illuminate/support": "^8.0|^9.0|^10.0", + "illuminate/auth": "^8.0|^9.0|^10.0|^11.0", + "illuminate/database": "^8.0|^9.0|^10.0|^11.0", + "illuminate/notifications": "^8.0|^9.0|^10.0|^11.0", + "illuminate/support": "^8.0|^9.0|^10.0|^11.0", "laravel/ui": "^3.0|^4.0" }, "require-dev": { - "phpunit/phpunit": "^9.0", - "orchestra/testbench": "^6.0" + "phpunit/phpunit": "^9.0|^10.5", + "orchestra/testbench": "^6.0|^9.5" }, "autoload": { "psr-4": {