throw new NotFoundException(); } if (!$this->request->is('get')) { return compact('post'); } $post->set($this->request->data); if (!$post->validates()) { Messages::add('Saved failed due to validation error', 'error'); return compact('post'); } if ($post->save()) { Messages::add('Post was saved successfully.', 'ok'); return compact('post'); } Messages::add('Saved failed due to DB error', 'error'); return compact('post'); }
'myapp.local.dev': case 'myapp.dev.local': case 'local.myapp.com': return 'development'; case '10.183.1.63': case '10.183.1.57': case '50.56.80.111': case '50.56.80.107': case 'dev.myapp.com': return 'staging'; case 'myapp.com': case 'www.myapp.com': return 'production'; case 'test.myapp.com': case 'myapp.test.local': return 'test'; }
I find that the single thing which inhibits young professionals, new students most severely, is their acceptance of standards that are too low. If I ask a student whether her design is as good as Chartres, she often smiles tolerantly at me as if to say, "Of course not, that isn't what I am trying to do.... I could never do that."
a large part of your life, and the only way to be truly satisfied is to do what you believe is great work; and the only way to do great work is to love what you do.