如何在laravel日历中显示拇指图像?

时间:2016-08-11 09:37:42

标签: php laravel calendar

我想在日历单元格中显示拇指图像和文本。文本显示但我无法显示图像。

这是我的代码:

foreach ($drama as $d) {
   // echo $d->id;
    if($d->show_date > date('yyyy-mm-dd'))
    {
      $drama_thumb = DB::table('dramas')->where('id',$d->drama_id)->get();
      $events[] = \Calendar::event(
        $drama_thumb[0]->drama_thumb.$d->show_title, //event title
        true, //full day event?
        $d->show_date, //start time (you can also use Carbon instead of DateTime)
        $d->show_date, //end time (you can also use Carbon instead of DateTime)
        'stringEventId' //optionally, you can specify an event ID
      );
    }

  }

这是静态event()方法定义:

$event = \Calendar::event(
"Valentine's Day", //event title
true, //full day event?
'2015-02-14', //start time, must be a DateTime object or valid DateTime format (bit.ly/1z7QWbg)
'2015-02-14' //end time, must be a DateTime object or valid DateTime format (bit.ly/1z7QWbg),
1, //optional event ID
[
    'url' => 'full-calendar.io'
]

);

0 个答案:

没有答案