Commit 23872cb1 authored by Kevin Yumang's avatar Kevin Yumang

SERV-2286 - looper modifications

parent 4bece118
......@@ -41,11 +41,10 @@
| Method "looperStart"
|--------------------------------------------------------------------------------------------
*/
public function looperStart($limit)
public function looperStart($parameters)
{
return View('Limitless::Looper.Start')
->withLimit($limit ?? 1);
->withLimit($parameters == [] ? 1 : $parameters);
}
/*
......@@ -53,7 +52,7 @@
| Method "looperStop"
|--------------------------------------------------------------------------------------------
*/
public function looperStop($parameters)
public function looperStop()
{
return View('Limitless::Looper.Stop');
......
......@@ -4,8 +4,8 @@
@section('Limitless::Content')
@Limitless::CardStart(['title' => "Description", 'icon' => 'icon-info22'])
@Limitless::LooperStart(5)
{{ rand(1,10) }}
@Limitless::LooperStart(10)
hello
@Limitless::LooperStop
@Limitless::CardStop
......
@for ($i = 0, $i < $limit; $i++)
\ No newline at end of file
@for ($i = 0; $i < $limit; $i++)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment