Posts by Munareto • 1 point
4 posts
-
-1
votes1
answer51
viewsA: How to wait for a user action on a Job?
Good afternoon, I had a similar problem, with the exception of time, the solution I found was to count the amount of records in a query and go run with a new call through a Trigger in jquery:…
-
0
votes1
answer64
viewsA: How to paginate a Json return in PHP
You can use a Slice in the array: $array = array_slice($body2, 3); And limit it as you make the pagination: $array = array_slice($body2, -3, 3, true);
-
-2
votes1
answer121
viewsA: Save last login via mysql and show who is online
You’ll have to do it with cookies. Set when it logs in and at the same time the Insert in the database and when it exits. Like this you arrow: setcookie("Cookieteste", $value); So you clean up:…
-
-1
votes2
answers37
viewsA: How to pass method objects that are in different controllers in Laravel?
You can make a Join in the query, example: $users = DB::table('users') ->join('contacts', 'users.id', '=', 'contacts.user_id') ->join('orders', 'users.id', '=', 'orders.user_id')…