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

SERV-2286 - looper modifications

parent 4bece118
...@@ -41,11 +41,10 @@ ...@@ -41,11 +41,10 @@
| Method "looperStart" | Method "looperStart"
|-------------------------------------------------------------------------------------------- |--------------------------------------------------------------------------------------------
*/ */
public function looperStart($limit) public function looperStart($parameters)
{ {
return View('Limitless::Looper.Start') return View('Limitless::Looper.Start')
->withLimit($limit ?? 1); ->withLimit($parameters == [] ? 1 : $parameters);
} }
/* /*
...@@ -53,7 +52,7 @@ ...@@ -53,7 +52,7 @@
| Method "looperStop" | Method "looperStop"
|-------------------------------------------------------------------------------------------- |--------------------------------------------------------------------------------------------
*/ */
public function looperStop($parameters) public function looperStop()
{ {
return View('Limitless::Looper.Stop'); return View('Limitless::Looper.Stop');
......
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
@section('Limitless::Content') @section('Limitless::Content')
@Limitless::CardStart(['title' => "Description", 'icon' => 'icon-info22']) @Limitless::CardStart(['title' => "Description", 'icon' => 'icon-info22'])
@Limitless::LooperStart(5) @Limitless::LooperStart(10)
{{ rand(1,10) }} hello
@Limitless::LooperStop @Limitless::LooperStop
@Limitless::CardStop @Limitless::CardStop
......
@for ($i = 0, $i < $limit; $i++) @for ($i = 0; $i < $limit; $i++)
\ No newline at end of file
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