{"action":"created","issue":{"url":"https://api.github.com/repos/josiasmontag/laravel-email-verification/issues/17","repository_url":"https://api.github.com/repos/josiasmontag/laravel-email-verification","labels_url":"https://api.github.com/repos/josiasmontag/laravel-email-verification/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/josiasmontag/laravel-email-verification/issues/17/comments","events_url":"https://api.github.com/repos/josiasmontag/laravel-email-verification/issues/17/events","html_url":"https://github.com/josiasmontag/laravel-email-verification/issues/17","id":293537755,"number":17,"title":"FatalThrowableError","user":{"login":"samuelsam225","id":26111835,"avatar_url":"https://avatars2.githubusercontent.com/u/26111835?v=4","gravatar_id":"","url":"https://api.github.com/users/samuelsam225","html_url":"https://github.com/samuelsam225","followers_url":"https://api.github.com/users/samuelsam225/followers","following_url":"https://api.github.com/users/samuelsam225/following{/other_user}","gists_url":"https://api.github.com/users/samuelsam225/gists{/gist_id}","starred_url":"https://api.github.com/users/samuelsam225/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samuelsam225/subscriptions","organizations_url":"https://api.github.com/users/samuelsam225/orgs","repos_url":"https://api.github.com/users/samuelsam225/repos","events_url":"https://api.github.com/users/samuelsam225/events{/privacy}","received_events_url":"https://api.github.com/users/samuelsam225/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-02-01T13:52:46Z","updated_at":"2018-02-01T15:14:36Z","closed_at":null,"author_association":"NONE","body":"I have followed your instructions and complement the steps. I have laravel 5.5\r\nwhen I click the register in my views, I get\r\n\r\n    Symfony \\ Component \\ Debug \\ Exception \\ FatalThrowableError (E_RECOVERABLE_ERROR)\r\n      Type error: Argument 1 passed to Lunaweb\\EmailVerification\\EmailVerification::createToken() must \r\n      be an instance of Lunaweb\\EmailVerification\\Contracts\\CanVerifyEmail, instance of App\\User given, \r\n      called in /Users/sam/site/vendor/josiasmontag/laravel-email-verification/src/EmailVerification.php \r\n      on line 127\r\n    \r\nwhen I check my database the user values gets insert into the user table. What might be the cause."},"comment":{"url":"https://api.github.com/repos/josiasmontag/laravel-email-verification/issues/comments/362296122","html_url":"https://github.com/josiasmontag/laravel-email-verification/issues/17#issuecomment-362296122","issue_url":"https://api.github.com/repos/josiasmontag/laravel-email-verification/issues/17","id":362296122,"user":{"login":"samuelsam225","id":26111835,"avatar_url":"https://avatars2.githubusercontent.com/u/26111835?v=4","gravatar_id":"","url":"https://api.github.com/users/samuelsam225","html_url":"https://github.com/samuelsam225","followers_url":"https://api.github.com/users/samuelsam225/followers","following_url":"https://api.github.com/users/samuelsam225/following{/other_user}","gists_url":"https://api.github.com/users/samuelsam225/gists{/gist_id}","starred_url":"https://api.github.com/users/samuelsam225/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samuelsam225/subscriptions","organizations_url":"https://api.github.com/users/samuelsam225/orgs","repos_url":"https://api.github.com/users/samuelsam225/repos","events_url":"https://api.github.com/users/samuelsam225/events{/privacy}","received_events_url":"https://api.github.com/users/samuelsam225/received_events","type":"User","site_admin":false},"created_at":"2018-02-01T15:14:36Z","updated_at":"2018-02-01T15:14:36Z","author_association":"NONE","body":"ok \r\nthis my user model now\r\n    namespace App;\r\n\r\n    use Illuminate\\Notifications\\Notifiable;\r\n    use Illuminate\\Foundation\\Auth\\User as Authenticatable;\r\n    use Lunaweb\\EmailVerification\\Traits\\CanVerifyEmail;\r\n    use Lunaweb\\EmailVerification\\Contracts\\CanVerifyEmail as CanVerifyEmailContract;\r\n\r\n    class User extends Authenticatable implements CanVerifyEmailContract\r\n    {\r\n        use Notifiable;\r\n\r\n        use CanVerifyEmail;\r\n\r\n        protected $fillable = [\r\n            'name', 'email', 'password', 'username',\r\n        ];\r\n\r\n        protected $hidden = [\r\n            'password', 'remember_token',\r\n        ];\r\n    }\r\n\r\nand my route\r\n    \r\n    Route::get('/', function () {\r\n    return view('welcome');\r\n    });\r\n\r\n    Auth::routes();\r\n\r\n    Route::group(\r\n\t    ['middleware' => ['web', 'auth', 'isEmailVerified']], \r\n\t    function () { \r\n\t\t    Route::get('/home', 'HomeController@index')->name('home');\r\n\t    }\r\n    );\r\n    Auth::routes();\r\n    \r\n    Route::group(\r\n\t    ['middleware' => ['web', 'auth', 'isEmailVerified']], \r\n\t    function () { \r\n\t\t    Route::get('/home', 'HomeController@index')->name('home');\r\n\t    }\r\n    );\r\n\r\nEverything works fine but user is login even without activating his account. I think it is from my route.\r\nBelow is a screenshoots after a user clicks on the register\r\n![screen shot 2018-02-01 at 3 10 38 pm](https://user-images.githubusercontent.com/26111835/35685770-82ea7a10-0762-11e8-8f09-f95c5c524da2.png)\r\n"}}
{"actor":{"display_login":"samuelsam225"}}