{"id":36399166,"url":"https://github.com/mp3063/laravel_mail_activation","last_synced_at":"2026-01-11T16:01:46.361Z","repository":{"id":57020474,"uuid":"45799059","full_name":"mp3063/laravel_mail_activation","owner":"mp3063","description":"Easy Laravel Auth with mail activation package","archived":false,"fork":false,"pushed_at":"2017-05-04T06:55:19.000Z","size":2640,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-17T10:06:55.795Z","etag":null,"topics":["authentication","laravel","mail","package","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mp3063.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-11-08T21:05:07.000Z","updated_at":"2017-06-28T10:50:31.000Z","dependencies_parsed_at":"2022-08-22T20:31:11.089Z","dependency_job_id":null,"html_url":"https://github.com/mp3063/laravel_mail_activation","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/mp3063/laravel_mail_activation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mp3063%2Flaravel_mail_activation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mp3063%2Flaravel_mail_activation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mp3063%2Flaravel_mail_activation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mp3063%2Flaravel_mail_activation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mp3063","download_url":"https://codeload.github.com/mp3063/laravel_mail_activation/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mp3063%2Flaravel_mail_activation/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28312135,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-11T14:58:17.114Z","status":"ssl_error","status_checked_at":"2026-01-11T14:55:53.580Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["authentication","laravel","mail","package","php"],"created_at":"2026-01-11T16:01:32.152Z","updated_at":"2026-01-11T16:01:46.343Z","avatar_url":"https://github.com/mp3063.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Easy Laravel 5.5 Auth with mail activation\n##### For Laravel 5.4 use version 5.4.2 \n\n### Preparations\n\nIn .env file add your credentials, for example:\n```php\nDB_HOST=localhost\nDB_DATABASE=test_mail_activation\nDB_USERNAME=root\nDB_PASSWORD=\nMAIL_DRIVER=smtp\nMAIL_HOST=mailtrap.io\nMAIL_PORT=2525\nMAIL_USERNAME=your_username\nMAIL_PASSWORD=your_password\nMAIL_ENCRYPTION=null\n```\nIn config/mail.php add your mail and name:\n```php\n'from' =\u003e ['address' =\u003e 'yourmail@123.com', 'name' =\u003e 'Your Name'],\n```\nIn app/User.php file(MODEL) to $fillable array add two more columns to look like this:\n```php\nprotected $fillable = [ 'name', 'email', 'password', 'code', 'active' ];\n```\n\nThese will install all necessary views into Resource folder. Run artisan command:\n```bash\nphp artisan make:auth\n```\nMake shure to erase following line from routes/web.php or just comment it out because routes.php file from package will take place on all routes needed for auth. It's basically same file from Laravel ( changed 3 route to override Laravel methods ):\n```php\nAuth::routes();\n```\nYour routes/web.php file should look like this:\n```php\n\u003c?php\nRoute::get('/', function () {\n    return view('welcome');\n});\n\n//Auth::routes();\n\nRoute::get('/home', 'HomeController@index');\n```\n## Install\n\nRequire this package with composer using the following command:\n```bash\ncomposer require mp3063/mail-activation\n```\nIn config/app.php file add to ServiceProvider array this line:\n```php\nmp3063\\LaravelMailActivation\\LaravelMailActivationServiceProvider::class,\n```\nRun:\n```bash\nphp artisan vendor:publish\n```\n\u003eThis will copy migration file in database/migrations, and activate.blade.php in resources/emails/auth\n\nRun:\n```bash\nphp artisan migrate\n```\n#####If your application are running MySQL v5.7.7 and higher you do not need to do next step. If you hit this error:\n```php\n[Illuminate\\Database\\QueryException]\nSQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes (SQL: alter table users add unique users_email_unique(email))\n```\n\n#####You need to do this in AppServiceProvider.php file and inside the boot method set a default string length:\n```php\nuse Illuminate\\Support\\Facades\\Schema;\n\npublic function boot()\n{\n    Schema::defaultStringLength(191);\n}\n```\n\n## End\n\nIf you done all this steps you should have all views and routes ready for mail-activation! Just start your server and enjoj! All functionality and routes made by Laravel are preserved!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmp3063%2Flaravel_mail_activation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmp3063%2Flaravel_mail_activation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmp3063%2Flaravel_mail_activation/lists"}