What is the schema for the database table to store Array or stdObject in a column?

|
jaisonjebin 2020-06-16 15:06:38
Is here anyone know Yii?
praneet81 2020-06-16 15:06:49
praneet81 2020-06-16 15:06:32
Photo from Praneet Singh Roopra

This is what I’m fiddling with right now

YOUCODEWORLD 2020-06-16 15:07:11
praneet81 2020-06-16 15:06:32
Photo from Praneet Singh Roopra

you are wrong bro

sagar verma 2020-06-16 15:07:18
YOUCODEWORLD 2020-06-16 14:55:57
you want change the parameter of test?

Yes

YOUCODEWORLD 2020-06-16 15:07:54
sagar verma 2020-06-16 15:07:18
Yes

so you add [‘as’ => some parameter maybe id]

YOUCODEWORLD 2020-06-16 15:08:12
praneet81 2020-06-16 15:06:32
Photo from Praneet Singh Roopra

you have install teamvier?

praneet81 2020-06-16 15:08:21
YOUCODEWORLD 2020-06-16 15:07:11
you are wrong bro

I know that’s why I’m looking at a better solution

praneet81 2020-06-16 15:08:32
YOUCODEWORLD 2020-06-16 15:08:12
you have install teamvier?

Will anydesk do?

YOUCODEWORLD 2020-06-16 15:08:59
i not install it hehe
DevVivek 2020-06-16 15:09:02
Hi .. I’m developing an android app similar to facebook . Like users can create post , comment , replay etc..
I’m new to laravel..
I’m using laravel api for my android app server side Everything works fine and basic endpoints created ( posting , commenting , replay , delete ) Storing everything in MySQL db

Now the problem is its not real-time So i searched internet about how make my server realtime Many results came ( confused with these methods )
1 with pusher

2 with ratchet

3 with node . js , redis , socket . io

4 with laravel echo server , redis , socket . io Finally i sorted out to go with laravel echo server , redis , socket . io

1.. The Problem is every tutorial in internet os about creating real-time web app ( i need with android app )

2 . I did upto starting the echo server ..and I’m stuck Right here

DevVivek 2020-06-16 15:11:03
I red that no need node js if we use laravel echo server
DevVivek 2020-06-16 15:13:45
How to convert all my api endpoints to realtime ?
DevVivek 2020-06-16 15:15:04
I watched laracast tutorial but not beginner friendly
Dadeyaradmin 2020-06-16 15:18:37
how to retrive follow array of a Object

array (size=3)
1 => string ”11eee” (length=7)
2 => string ”ACTIVE” (length=8)
3 => string ”6692091475ee7e3cb41b6e5008511383” (length=34)
please help me

object(MySQLiPreparedStatement)[216]
protected ‘conn’ =>
object(MySQLiConnection)[189]
private ‘database’ => string ‘wf_zums’ (length=7)
protected ‘transactionOpcount’ => int 2
protected ‘dblink’ =>
object(mysqli)[190]
public ‘affected_rows’ => int 1
public ‘client_info’ => string ‘mysqlnd 5.0.12-dev – 20150407 – $Id: b396954eeb2d1d9ed7902b8bae237b287f21ad9e $’ (length=79)
public ‘client_version’ => int 50012
public ‘connect_errno’ => int 0
public ‘connect_error’ => null
public ‘errno’ => int 0
public ‘error’ => string ” (length=0)
public ‘error_list’ =>
array (size=0)

public ‘field_count’ => int 0
public ‘host_info’ => string ‘localhost via TCP/IP’ (length=20)
public ‘info’ => string ‘Rows matched: 1 Changed: 1 Warnings: 0’ (length=40)
public ‘insert_id’ => int 0
public ‘server_info’ => string ‘5.5.5-10.1.28-MariaDB’ (length=21)
public ‘server_version’ => int 50505
public ‘stat’ => string ‘Uptime: 3305 Threads: 1 Questions: 4243 Slow queries: 0 Opens: 59 Flush tables: 1 Open tables: 53 Queries per second avg: 1.283’ (length=134)
public ‘sqlstate’ => string ‘00000’ (length=5)
public ‘protocol_version’ => int 10
public ‘thread_id’ => int 121
public ‘warning_count’ => int 0
protected ‘dsn’ =>
array (size=9)
‘database’ => string ‘wf_zums’ (length=7)
‘encoding’ => string ‘utf8’ (length=4)
‘hostspec’ => string ‘localhost’ (length=9)
‘password’ => string ” (length=0)
‘phptype’ => string ‘mysqli’ (length=6)
‘port’ => null
‘protocol’ => null
‘socket’ => null
‘username’ => string ‘root’ (length=4)
protected ‘flags’ => int 0
public ‘lastQuery’ => string ‘UPDATE CONTENT SET CON_VALUE = ’11eee’ WHERE CONTENT.CON_CATEGORY=’GRP_TITLE’ AND CONTENT.CON_PARENT=” AND CONTENT.CON_ID=’6692091475ee7e3cb41b6e5008511383” (length=159)
protected ‘limit’ => int 0
protected ‘offset’ => int 0
protected ‘sql’ => string ‘UPDATE GROUPWF SET GRP_TITLE = ?,GRP_STATUS = ? WHERE GROUPWF.GRP_UID=?’ (length=75)
protected ‘sql_cache’ => null
protected ‘sql_cache_valid’ => boolean false
protected ‘positions’ =>
array (size=3)
0 => int 33
1 => int 50
2 => int 74
protected ‘positionsCount’ => int 3
protected ‘boundInVars’ =>
array (size=3)
1 => string ”11eee” (length=7)
2 => string ”ACTIVE” (length=8)
3 => string ”6692091475ee7e3cb41b6e5008511383” (length=34)
protected ‘resultSet’ => null
protected ‘updateCount’ => null
{success: true}

BvkDev 2020-06-16 15:21:49
HI , How to add custom route file in Lumen ?
DevVivek 2020-06-16 15:32:18
DevVivek 2020-06-16 15:09:02
Hi .. I’m developing an android app similar to facebook . Like users can create post , comment , replay etc..
I’m new to laravel..
I’m using laravel api for my android app server side Everything works fine and basic endpoints created ( posting , commenting , replay , delete ) Storing everything in MySQL db

Now the problem is its not real-time So i searched internet about how make my server realtime Many results came ( confused with these methods )
1 with pusher

2 with ratchet

3 with node . js , redis , socket . io

4 with laravel echo server , redis , socket . io Finally i sorted out to go with laravel echo server , redis , socket . io

1.. The Problem is every tutorial in internet os about creating real-time web app ( i need with android app )

2 . I did upto starting the echo server ..and I’m stuck Right here

Pls somebody guide me

DevVivek 2020-06-16 15:33:16
Anyone form kerala ,, would have easy for communication
Jack_rub 2020-06-16 15:34:45
DevVivek 2020-06-16 15:09:02
Hi .. I’m developing an android app similar to facebook . Like users can create post , comment , replay etc..
I’m new to laravel..
I’m using laravel api for my android app server side Everything works fine and basic endpoints created ( posting , commenting , replay , delete ) Storing everything in MySQL db

Now the problem is its not real-time So i searched internet about how make my server realtime Many results came ( confused with these methods )
1 with pusher

2 with ratchet

3 with node . js , redis , socket . io

4 with laravel echo server , redis , socket . io Finally i sorted out to go with laravel echo server , redis , socket . io

1.. The Problem is every tutorial in internet os about creating real-time web app ( i need with android app )

2 . I did upto starting the echo server ..and I’m stuck Right here

if money does not metter then use pusher other wise use laravel echo,redis or socket

DevVivek 2020-06-16 15:36:04
Money matters that’s why i used laravel echo , redis , socket io
Also laravel echo is fast ( even a 1gb ram server can handle more than 10k concurrent connections )
DevVivek 2020-06-16 15:37:06
I’m stuck in the middle now .. i can start the echo server ( created the json )
After this i don’t know how to proceed
DevVivek 2020-06-16 15:37:28
How to integrate all my api endpoints to realtime
DevVivek 2020-06-16 15:38:51
I don’t know where fo i use redis db also
GTLeader 2020-06-16 16:24:25
laravel_discuss-41823.jpg
Please what is the correct syntax to use… it is triggering error and UserController not found
Roham0010 2020-06-16 16:26:10
GTLeader 2020-06-16 16:24:25
Please what is the correct syntax to use… it is triggering error and UserController not found

Your class name is User*s*Controller

GTLeader 2020-06-16 16:30:11
Roham0010 2020-06-16 16:26:10
Your class name is User*s*Controller

thank you… it worked out

GTLeader 2020-06-16 16:39:02
What is the update for using this syntax in the laravel 7.16.x
$this->middleware( middleware: ‘auth’);
devink0430 2020-06-16 17:04:18
https://laravel.com/docs/7.x/middleware

https://laravel.com/docs/7.x/controllers#controller-middleware

?

2020-06-16 18:16:26
How to save array like 1,3,4,5 in database?
2020-06-16 18:17:24
I used implode and join but it did not worked,
oxbir 2020-06-16 18:17:50
ok
mehrabjafari 2020-06-16 18:27:32
2020-06-16 18:16:26
How to save array like 1,3,4,5 in database?

https://stackoverflow.com/questions/21658926/storing-array-or-std-object-in-database-of-laravel-app

Storing array or std object in database of Laravel appStack Overflow
What is the schema for the database table to store Array or stdObject in a column ?

When I use ->string and insert an array variable, it only stores the word “Array” in the db column.

does Larave…

Marvixino 2020-06-16 18:38:48
select * from `users` where `id` = 15 limit 1as API request takes 3.96ms, while as SQL query takes 13ms … is because of Laravel or docker?
2020-06-16 18:43:04
How to write api in larave forl push notification using firebase
2020-06-16 18:43:35
Please help me to do this🥺🥺🥺
2020-06-16 18:46:45
mehrabjafari 2020-06-16 18:27:32
https://stackoverflow.com/questions/21658926/storing-array-or-std-object-in-database-of-laravel-app

i want to save two fields in database

DesolatorMagno 2020-06-16 18:46:56
Json field.
2020-06-16 18:46:59
$user->social_id = $request->social_id;
$user->related_id = $request->related_id;
2020-06-16 18:47:15
How?
DesolatorMagno 2020-06-16 18:47:45
In the documentation should be s example of how to work with data type json.
2020-06-16 18:47:53
protected $casts = [
’email_verified_at’ => ‘datetime’,
‘social_id’ => ‘array’,
‘related_id’ => ‘array’,
];
2020-06-16 18:50:40
DesolatorMagno 2020-06-16 18:47:45
In the documentation should be s example of how to work with data type json.

Can you send simple codes?

2020-06-16 18:50:45
Helooo
2020-06-16 18:51:53
Will anyone help me to write api to send push notification to firebase…
2020-06-16 18:52:33
I’m just a beginner …and new to this firebase concept
DesolatorMagno 2020-06-16 18:55:17
2020-06-16 18:50:40
Can you send simple codes?

Well, if you can wait 2 hours, I am not working now.

2020-06-16 18:56:19
ok
Acird Burn 2020-06-16 19:01:05
need a freelance core php developer whose very good at building restful apis
Kvn_makwana 2020-06-16 19:09:47
Hello @tech_hub91 let’s discuss for the project.
DesolatorMagno 2020-06-16 19:59:00
laravel_discuss-41859.jpg
$table->json(‘options’);
DesolatorMagno 2020-06-16 20:01:12
laravel_discuss-41860.jpg

|