src/help/docs/HelpersController.php
public function icon()
	{
		$input = [
			[icon('plane'),                  "icon('plane');",               ],
			[icon('bolt'),                   "icon('bolt');",                ],
			[icon('bolt', '#FF00FF'),        "icon('bolt', '#FF00FF');",     ],
			[icon('info', 'info'),           "icon('info', 'info');",        ],
			[icon(true),                     "icon(true);",                  ],
			[icon(false),                    "icon(false);",                 ],
		];
		$data = array_reduce($input, function ($output, $arr)
		{
			$output[] = (object) ['code' => $arr[1], 'icon' => $arr[0]];
			return $output;
		}, []);
		return view('sketchpad::help/helpers/icon', compact('data'));
	}
public function icon()
	{
		$input = [
			[icon('plane'),                  "icon('plane');",               ],
			[icon('bolt'),                   "icon('bolt');",                ],
			[icon('bolt', '#FF00FF'),        "icon('bolt', '#FF00FF');",     ],
			[icon('info', 'info'),           "icon('info', 'info');",        ],
			[icon(true),                     "icon(true);",                  ],
			[icon(false),                    "icon(false);",                 ],
		];
		$data = array_reduce($input, function ($output, $arr)
		{
			$output[] = (object) ['code' => $arr[1], 'icon' => $arr[0]];
			return $output;
		}, []);
		return view('sketchpad::help/helpers/icon', compact('data'));
	}
public function icon ( ) { $ input = [ [ icon ( 'plane' ) , "icon('plane');" , ] , [ icon ( 'bolt' ) , "icon('bolt');" , ] , [ icon ( 'bolt' , '#FF00FF' ) , "icon('bolt', '#FF00FF');" , ] , [ icon ( 'info' , 'info' ) , "icon('info', 'info');" , ] , [ icon ( true ) , "icon(true);" , ] , [ icon ( false ) , "icon(false);" , ] , ] ; $ data = array_reduce ( $ input , function ( $ output , $ arr ) { $ output [ ] = ( object ) [ 'code' => $ arr [ 1 ] , 'icon' => $ arr [ 0 ] ] ; return $ output ; } , [ ] ) ; return view ( 'sketchpad::help/helpers/icon' , compact ( 'data' ) ) ; }
Create a Font Awesome icon simply and easily
Create a Font Awesome icon simply and easily