$this->comment(); //输出注释 $this->info(); //输出信息
return Collection::make([ 'When there is no desire, all things are at peace. - Laozi', 'Simplicity is the ultimate sophistication. - Leonardo da Vinci', 'Simplicity is the essence of happiness. - Cedric Bledsoe', 'Smile, breathe, and go slowly. - Thich Nhat Hanh', 'Simplicity is an acquired taste. - Katharine Gerould', 'Well begun is half done. - Aristotle', 'He who is contented is rich. - Laozi', 'Very little is needed to make a happy life. - Marcus Antoninus', ])->random(); //返回创建的这个静态数组中的随机一个元素
//获取访问的方法名称
$request->route()->getName();
//获取访问的方法别名
$request->route()->getAction();