我刚接触过laravel和php,我需要一些帮助。
模型/Object
<?php
class Alert {
public function type()
{
return 'default';
}
public function title()
{
return '';
}
public function message()
{
return '';
}
}
叶片
@if (isset($alert))
我有一列数据,就像下面" data“下面的那一列。如何创建汇总每个唯一值的图表,如下所示:
CPU Utilization Alert 6
Free Memory Alert 1
System Uptime Alert 2
数据:
CPU Utilization Alert
CPU Utilization Alert
Free Memory Alert
System Uptime Alert
CPU Utilization Alert
CPU Utilization Alert
CPU Utilization Alert
System Uptime Alert
CPU