Esempio n. 1
0
 private function _seedToNew()
 {
     $new = new Event();
     $new->description = "IV taller de desarrollo Humano";
     $new->image = "";
     $new->is_draft = "N";
     $new->start_date = 1443934800;
     $new->finish_date = 1451538000;
     $new->save();
 }
Esempio n. 2
0
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     $event = Event::getEventOnDate();
     $phrase = Phrase::getRandomPhrase();
     //Get First 5 posts
     $posts = Post::getPredeterminatePosts();
     $pathFile = "";
     if ($event->image) {
         $pathFile = $this->_getFile($event->image);
     }
     return View("index", array("event" => $event, "phrase" => $phrase, "posts" => $posts, "pathFile" => $pathFile));
 }