If i want function in controller work every 30 seconds for 5 minutes when i call this function what should use to do it?

|
zey34354 2022-06-11 23:07:40
seniormonsieur 2022-06-11 22:26:27
Send me the route code for your edit

<thead>
<tr>

<th style=”width: 50px”>Id</th>
<th>{{$data->id}}</th>
</tr>

<tr>
<th style=”width: 50px”>Name & surname</th>
<th>{{$data->user->name}}</th>
</tr>

<tr>
<th style=”width: 50px”>subject</th>
<th>{{$data->subject}}</th>
</tr>

<tr>
<th style=”width: 50px”>review</th>
<th>{{$data->review}}</th>
</tr>

<tr>
<th style=”width: 50px”>IP number</th>
<th>{{$data->Ip}}</th>
</tr>

<tr>
<th style=”width: 50px”>rate</th>
<th>{{$data->rate}}</th>
</tr>

<tr>
<th style=”width: 50px”>Status</th>
<th>{{$data->status}}</th>
</tr>
<tr>
<th style=”width: 50px”>Created at</th>
<th>{{$data->created_at}}</th>
</tr>
<tr>
<th style=”width: 50px”>Updated at</th>
<th>{{$data->updated_at}}</th>
</tr>

zey34354 2022-06-11 23:07:51
its this the code
Yousef Dhrooj 2022-06-11 23:11:24
Hi
If i want function in controller work every 30 seconds for 5 minutes when i call this function what should use to do it?
anujrock1 2022-06-11 23:11:31
aminmaharram 2022-06-11 23:05:09
Hello everyone, I need your help)

I have a two-dimensional array and I need to do the following.

In the foreach loop, use 3 keys from the array, then stop. The next time you run the command, already use the following 3.

That is, if we have 10 keys, then once they started running from 0 to 2, the next time from 3 to 5, etc. As you propose to do and preferably with examples. Thank you!

I have something like this…

Are you storing some where last printed key?

For example 0-2 last key is 2

3-7 last key is 7

aminmaharram 2022-06-11 23:12:27
anujrock1 2022-06-11 23:11:31
Are you storing some where last printed key?

For example 0-2 last key is 2

3-7 last key is 7

Not actually.

So, i dont know how to do that. Please send me some examples

zey34354 2022-06-11 23:17:13
seniormonsieur 2022-06-11 22:26:27
Send me the route code for your edit

and this the rest of it

<tr>
<th> Admin notes for comment</th>
<td>
<form role=”form” action=”{{route(‘admin.comment.update’,[‘id’=>$data->id])}}” method=”post”>
@csrf
<textarea cols=”100″ id=”note” name=” note”>{{$data->note}} </textarea>
<select name=”status”>
<option selected> {{$data->status}}</option>
<option> True</option>
<option> False</option>
</select>
<button type=”submit” class=”btn btn-primary”> update comment </button>
</form>
</td>
</tr>
</thead>

<tbody>
<tr>

seniormonsieur 2022-06-11 23:22:48
[In reply to Mr Dont Care]
and this the rest of it

<tr>
<th> Admin notes for comment</th>
<td>
<form role=”form” action=”{{route(‘admin.comment.update’, ‘id’=>$data->id)}}” method=”post”>
@csrf
<textarea cols=”100″ id=”note” name=” note”>{{$data->note}} </textarea>
<select name=”status”>
<option selected> {{$data->status}}</option>
<option> True</option>
<option> False</option>
</select>
<button type=”submit” class=”btn btn-primary”> update comment </button>
</form>
</td>
</tr>
</thead>

<tbody>
<tr>

seniormonsieur 2022-06-11 23:34:40
try this
Candra 2022-06-11 23:47:36
How to practice laravel?
seniormonsieur 2022-06-12 00:02:33
Candra 2022-06-11 23:47:36
How to practice laravel?

its hard

zey34354 2022-06-12 00:10:32
seniormonsieur 2022-06-11 23:22:48
[In reply to Mr Dont Care]
and this the rest of it

<tr>
<th> Admin notes for comment</th>
<td>
<form role=”form” action=”{{route(‘admin.comment.update’, ‘id’=>$data->id)}}” method=”post”>
@csrf
<textarea cols=”100″ id=”note” name=” note”>{{$data->note}} </textarea>
<select name=”status”>
<option selected> {{$data->status}}</option>
<option> True</option>
<option> False</option>
</select>
<button type=”submit” class=”btn btn-primary”> update comment </button>
</form>
</td>
</tr>
</thead>

<tbody>
<tr>

laravel_discuss-124931.jpg
the problem is coming from this line

zey34354 2022-06-12 00:10:44
seniormonsieur 2022-06-11 23:22:48
[In reply to Mr Dont Care]
and this the rest of it

<tr>
<th> Admin notes for comment</th>
<td>
<form role=”form” action=”{{route(‘admin.comment.update’, ‘id’=>$data->id)}}” method=”post”>
@csrf
<textarea cols=”100″ id=”note” name=” note”>{{$data->note}} </textarea>
<select name=”status”>
<option selected> {{$data->status}}</option>
<option> True</option>
<option> False</option>
</select>
<button type=”submit” class=”btn btn-primary”> update comment </button>
</form>
</td>
</tr>
</thead>

<tbody>
<tr>

we don’t need to fix anything from this

seniormonsieur 2022-06-12 00:11:17
just do $user->name
zey34354 2022-06-12 00:11:56
seniormonsieur 2022-06-12 00:11:17
just do $user->name

without data ?

seniormonsieur 2022-06-12 00:12:03
sorry
seniormonsieur 2022-06-12 00:12:13
$data->name
zey34354 2022-06-12 00:12:16
so how will it pass the data to controller ?
seniormonsieur 2022-06-12 00:12:38
did you compact data in the controller?
zey34354 2022-06-12 00:12:46
seniormonsieur 2022-06-12 00:12:13
$data->name

it works but after that the relationship of it not working

seniormonsieur 2022-06-12 00:12:59
like how?
zey34354 2022-06-12 00:12:59
if I deleted the user
seniormonsieur 2022-06-12 00:13:22
you are using modal for the delete?
zey34354 2022-06-12 00:14:01
seniormonsieur 2022-06-12 00:13:22
you are using modal for the delete?

yes

seniormonsieur 2022-06-12 00:14:15
its from the modal
zey34354 2022-06-12 00:14:23
I use it from controller
seniormonsieur 2022-06-12 00:14:25
send pic of the modal
zey34354 2022-06-12 00:14:44
seniormonsieur 2022-06-12 00:14:25
send pic of the modal

no no I was mistaken

seniormonsieur 2022-06-12 00:15:00
no modal?
zey34354 2022-06-12 00:15:09
seniormonsieur 2022-06-12 00:15:00
no modal?

for user >

seniormonsieur 2022-06-12 00:15:38
i dont understand
Candra 2022-06-12 00:28:51
seniormonsieur 2022-06-12 00:02:33
its hard

Ok

zey34354 2022-06-12 00:29:36
seniormonsieur 2022-06-12 00:15:38
i dont understand

laravel_discuss-124953.jpg

seniormonsieur 2022-06-12 00:31:53
ok
seniormonsieur 2022-06-12 00:32:03
what of the modal
seniormonsieur 2022-06-12 00:32:25
Candra 2022-06-12 00:28:51
Ok

watch some youtube videos and find a mentor

|