Comments (7)
Not sure, I'll take a look at a fresh install and let you know.
from laravel-4-bootstrap-starter-site.
For a temporary fix view the file vendor/zizaco/confide/src/Zizaco/Confide/ConfideUser.php
and the function "sendEmail" at the bottom.
/**
* Send email using the lang sentence as subject and the viewname
*
* @param mixed $subject_translation
* @param mixed $view_name
* @return voi.
*/
private function sendEmail( $subject_translation, $view_name, $params = array() )
{
if ( static::$_app['config']->getEnvironment() == 'testing' )
return;
$this->fixViewHint();
// static::$_app['mailer']->send($view_name, $params, function($m) use ($subject_translation)
// {
// $m->to( $this->email )
// ->subject( static::$_app['translator']->get($subject_translation) );
// });
}
That should get you past that first step. It's still an issue, and I will resolve it, but if you need to get up and running now that should do it.
from laravel-4-bootstrap-starter-site.
Cool, that workaround did the trick, thanks!
from laravel-4-bootstrap-starter-site.
This happens because the db:seed are creating an User
with blank fields. The SwiftMailer acuses error because "" (emptystring) is not a valid e-mail.
zizaco@ubuntu:~/Projetos/php_projects/tmp/laravel_bootstrap$ php artisan db:seed
[Swift_RfcComplianceException]
Address in mailbox given [$this->email] does not comply with RFC 2822, 3.6.2.
db:seed [--class[="..."]] [--database[="..."]]
zizaco@ubuntu:~/Projetos/php_projects/tmp/laravel_bootstrap$ tinker
Starting php with extra includes: ['bootstrap/autoload.php', 'bootstrap/start.php']
type 'h' or 'help' to see instructions & features
php> echo User::all();
[{"id":13,"username":"admin","email":"[email protected]","confirmation_code":"","confirmed":0,"created_at":"0000-00-00 00:00:00","updated_at":"0000-00-00 00:00:00"},
{"id":14,"username":"user","email":"[email protected]","confirmation_code":"","confirmed":0,"created_at":"0000-00-00 00:00:00","updated_at":"0000-00-00 00:00:00"},
{"id":15,"username":"","email":"","confirmation_code":"b3de267181c3d2809ab35e0e5dd0f910","confirmed":0,"created_at":"2013-02-17 16:25:39","updated_at":"2013-02-17 16:25:39"}]
Note that the last user has an empty username and email. That's the user that are causing the error. I believe that user shoudn't be there. Even though if I validate the email in ConfideUser
before actually sending the email would solve the problem, that would be redundant since the validation rules have:
'password' => 'required|between:4,11|confirmed',
You should take a look at what is creating this phantom user.
from laravel-4-bootstrap-starter-site.
Are creating that empty user.
I believe instead of doing User::create
you should do DB::table('posts')->insert( //pass array here
And instead of using the hardcoded id of 1
, maybe you should do $id = User::first()->id;
and use that id. Cause after some tries the id is no longer 1.
from laravel-4-bootstrap-starter-site.
@andrew13, i've done a pull request, take a look. #4
from laravel-4-bootstrap-starter-site.
That fixes it. Thanks Zizaco for dropping in with a fix.
from laravel-4-bootstrap-starter-site.
Related Issues (20)
- Tons of composer suggestions after installing... HOT 1
- Symfony \ Component \ HttpKernel \ Exception \ NotFoundHttpException HOT 10
- Windows installation issues. HOT 1
- Ardent integration not complete? HOT 5
- i want to learn how to do this plataform, how should i start? HOT 3
- class User extends ConfideUser instead of Eloquent ?? HOT 3
- Help me with my database modeling. HOT 1
- Use Chumper/Datatable instead of blim
- ng-admin : An Angular.JS Admin Panel HOT 5
- Laravel 5 support? HOT 9
- Can't find the route for account confirmation
- PHP Notice: Constant LARAVEL_START already defined in /opt/bitnami/frameworks/laravel/bootstrap/autoload.php on line 3 HOT 5
- Has anyone changed the edit/delete buttons to use bootstrap modals with confirm ?
- how can i create new static page?
- Non English URL Problem
- Bootstrap theme rederaning HOT 1
- Screenshots HOT 1
- composer install no work on windows HOT 2
- Zizaco/entrust: Problem in the creation of the role and permission with tinker
- Update for laravel 8.x
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-4-bootstrap-starter-site.