Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
199 lars 1
<?php
2
 
3
if (! function_exists('clock')) {
4
	// Log a message to Clockwork, returns Clockwork instance when called with no arguments, first argument otherwise
5
	function clock(...$arguments)
6
	{
7
		if (empty($arguments)) {
8
			return app('clockwork');
9
		}
10
 
11
		foreach ($arguments as $argument) {
12
			app('clockwork')->debug($argument);
13
		}
14
 
15
		return reset($arguments);
16
	}
17
}