# |
Jul 18th 2017, 13:54 |
neon1024 |
then which one ? |
# |
Jul 18th 2017, 13:54 |
neon1024 |
I’d say to not use that one |
# |
Jul 18th 2017, 13:53 |
cleptric |
So yes, it should do the job |
# |
Jul 18th 2017, 13:53 |
cleptric |
If you asking for the firebase one, we also use it for the new auth plugin |
# |
Jul 18th 2017, 13:53 |
cake-novice |
ADmads plugin required https://github.com/firebase/php-jwt |
# |
Jul 18th 2017, 13:53 |
hmic |
so for cake: admad |
# |
Jul 18th 2017, 13:53 |
hmic |
admads plugin uses that |
# |
Jul 18th 2017, 13:52 |
cleptric |
ADmads or the firebase one? |
# |
Jul 18th 2017, 13:51 |
cake-novice |
https://github.com/firebase/php-jwt |
# |
Jul 18th 2017, 13:51 |
cake-novice |
? |
# |
Jul 18th 2017, 13:51 |
cake-novice |
is that one also good |
# |
Jul 18th 2017, 13:51 |
cake-novice |
i can see admad plugin required Firebase JWT lib |
# |
Jul 18th 2017, 13:48 |
cake-novice |
ok... |
# |
Jul 18th 2017, 13:48 |
cleptric |
composer will add it to `/vendor` |
# |
Jul 18th 2017, 13:48 |
cleptric |
No, you install it via composer and use the classes in your App |
# |
Jul 18th 2017, 13:47 |
cake-novice |
if i want to implement this lib then i need to place it in root/vendor directory ? |
# |
Jul 18th 2017, 13:47 |
cleptric |
> I do not want to work with ready to eat solution Any reason for that. If there is a good implemented JWT plugin for cake, why not using it? |
# |
Jul 18th 2017, 13:47 |
cake-novice |
sory https://github.com/lcobucci/jwt |
# |
Jul 18th 2017, 13:46 |
cake-novice |
i do not want to work with ready to eat solution. i was looking at https://gitter.im/lcobucci/jwt this lib .. |
# |
Jul 18th 2017, 13:44 |
cleptric |
Also worth pointing out that the upcoming auth plugin (https://github.com/cakephp/authentication) will support JWT |
# |
Jul 18th 2017, 13:42 |
mikesmoniker |
@cake_novice Have a look at https://github.com/FriendsOfCake/awesome-cakephp#authentication-and-authorization (there is one plugin specifically for JWT) |
# |
Jul 18th 2017, 13:41 |
cake-novice |
which one should i use and best to work in cake3 ? |
# |
Jul 18th 2017, 13:41 |
cake-novice |
Hi, i want to use JWT json web token in my cake3 application. |
# |
Jul 18th 2017, 13:40 |
adriencs |
@rudy1976s strange |
# |
Jul 18th 2017, 13:31 |
rudy1976s |
thank you |
# |
Jul 18th 2017, 13:31 |
rudy1976s |
that is |
# |
Jul 18th 2017, 13:31 |
rudy1976s |
I try to explain: I have lots of records with really lots of relations which took too many time due to joins. I found a solution to create a proxy flat table to use for searching purposes, . When saving I store original data in their table plus a flat copy on that table, flattened without joins.When retrieving I look up at proxy table, and the search is really fast |
# |
Jul 18th 2017, 13:27 |
cholthipaul |
behave |
# |
Jul 18th 2017, 13:27 |
cholthipaul |
But your changes will only affect that table only. so idk what will relations |
# |
Jul 18th 2017, 13:26 |
rudy1976s |
$this->Nodes->schema->columnType(‘pages’, ‘string’); this worked for me |
# |
Jul 18th 2017, 13:26 |
rudy1976s |
In DB I have set some column with type JSON but I wanted to restore as string in the controller |
# |
Jul 18th 2017, 13:25 |
rudy1976s |
no no |
# |
Jul 18th 2017, 13:25 |
cholthipaul |
How ? plain sql queries. No NO |
# |
Jul 18th 2017, 13:25 |
rudy1976s |
while json when inserting data |
# |
Jul 18th 2017, 13:24 |
rudy1976s |
I needed to restore a schema field as string when performing search against it |
# |
Jul 18th 2017, 13:24 |
rudy1976s |
I have solved |
# |
Jul 18th 2017, 13:24 |
cholthipaul |
@rudy1976s No, you can use migrations though but I guess that won't run time anymore |
# |
Jul 18th 2017, 13:23 |
rudy1976s |
I found it |
# |
Jul 18th 2017, 13:13 |
rudy1976s |
Hello all ! is there a way to remove a columnType at runtime ? |
# |
Jul 18th 2017, 13:10 |
dereuromark |
@spriz Have you been able to confirm my ide helper changes for you? |
# |
Jul 18th 2017, 13:09 |
dereuromark |
The same is true for php code, there its token parsing what should be preferred over regex :slightly_smiling_face: |