Skip to content

Commit

Permalink
Merge pull request #42 from beyondcode/updates
Browse files Browse the repository at this point in the history
Laravel 11 Support
  • Loading branch information
mechelon authored Apr 5, 2024
2 parents 63c79d6 + 339d1c5 commit e369244
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 69 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ composer.lock
docs
vendor
coverage
.idea
.idea
.phpunit.result.cache
19 changes: 0 additions & 19 deletions .scrutinizer.yml

This file was deleted.

4 changes: 0 additions & 4 deletions .styleci.yml

This file was deleted.

20 changes: 0 additions & 20 deletions .travis.yml

This file was deleted.

8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -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)


Expand All @@ -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"
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down
15 changes: 7 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@
],
"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",
"laravel/ui": "^3.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": {
Expand All @@ -40,7 +40,6 @@
"scripts": {
"test": "vendor/bin/phpunit",
"test-coverage": "vendor/bin/phpunit --coverage-html coverage"

},
"config": {
"sort-packages": true
Expand Down
12 changes: 0 additions & 12 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,4 @@
<directory>tests</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory suffix=".php">src/</directory>
</whitelist>
</filter>
<logging>
<log type="tap" target="build/report.tap"/>
<log type="junit" target="build/report.junit.xml"/>
<log type="coverage-html" target="build/coverage" charset="UTF-8" yui="true" highlight="true"/>
<log type="coverage-text" target="build/coverage.txt"/>
<log type="coverage-clover" target="build/logs/clover.xml"/>
</logging>
</phpunit>

0 comments on commit e369244

Please sign in to comment.