Are you in position to make a clean install of php and composer?

|
Meoeeeew 2020-06-13 20:01:06
kevin7G 2020-06-13 19:59:37
How to downgrade laravel version..??
from 7.4 to 6

7.4? i dont think its release yet

Meoeeeew 2020-06-13 20:01:43
karthick_sivakumar 2020-06-13 19:58:47
How can I implement this

use method orderBy(<column>, ASC or DESC)

Siberfx 2020-06-13 20:01:43
you can rm -rf vendor folder after ensuring all your packaesg supporting laravel 6.x or not
kevin7G 2020-06-13 20:01:51
Sorry 7.0
Siberfx 2020-06-13 20:02:04
so change your composer.json file
Siberfx 2020-06-13 20:02:23
laravel “^7.0” to laravel “7.0”
kevin7G 2020-06-13 20:02:31
Siberfx 2020-06-13 20:02:04
so change your composer.json file

after that

Siberfx 2020-06-13 20:02:46
then composer update
karthick_sivakumar 2020-06-13 20:03:52
Meoeeeew 2020-06-13 20:01:43
use method orderBy(<column>, ASC or DESC)

Thanks. But my issue is how to add orderby no to the category, not how to retreivew by order.

Meoeeeew 2020-06-13 20:04:16
Siberfx 2020-06-13 20:02:46
then composer update

also dont forget to check if u use any function or modules that only available on ver 7.x onwards

Siberfx 2020-06-13 20:04:55
its not a big deal, at least it shows satisfiable versions
Siberfx 2020-06-13 20:05:43
there is another way;
composer require laravel/framework:”7.0″
Roham0010 2020-06-13 20:06:50
karthick_sivakumar 2020-06-13 19:58:17
I have colum position, if a row as already set to position 1 & if I want another row to set position 1

you are planning to re-order your rows? like changing them with sending a form?
if so, you can use js or jquery or other libraries to re-order your rows and send an array of new orders to your back then change your entire ordering values
But
if you want to just set a order to a row and if a new row added order column get increamented
you can get total count of rows of that category and increament that total count so it will be your new order

karthick_sivakumar 2020-06-13 20:08:01
Thanks. But how can I modify the order of already added row
Siberfx 2020-06-13 20:08:35
another field you can add for depth
Siberfx 2020-06-13 20:08:49
to get them sorted
karthick_sivakumar 2020-06-13 20:09:00
Can’t get u
Roham0010 2020-06-13 20:09:18
karthick_sivakumar 2020-06-13 20:08:01
Thanks. But how can I modify the order of already added row

by updating it what do you mean?

Siberfx 2020-06-13 20:09:19
tell me is that a hook system ?
Siberfx 2020-06-13 20:10:16
so if, you can add a column after “position” as “position_order”, to be able to change their orders on listing
karthick_sivakumar 2020-06-13 20:10:54
Roham0010 2020-06-13 20:09:18
by updating it what do you mean?

Test1 – 1
Test2 – 2
Test3 – 3
Test4 – 4

Say these are row, if I want to change the order of Test2 into 1, how should implement this.

Siberfx 2020-06-13 20:11:39
the conflict is he way you asking the question :))
karthick_sivakumar 2020-06-13 20:11:48
Siberfx 2020-06-13 20:10:16
so if, you can add a column after “position” as “position_order”, to be able to change their orders on listing

Name – Column Position

Test1 – 1
Test2 – 2
Test3 – 3
Test4 – 4

Say these are row, if I want to change the order of Test2 into 1, how should implement this.

karthick_sivakumar 2020-06-13 20:12:26
Siberfx 2020-06-13 20:11:39
the conflict is he way you asking the question :))

Sry, can’t u get wat am asking fr

Roham0010 2020-06-13 20:12:57
karthick_sivakumar 2020-06-13 20:10:54
Test1 – 1
Test2 – 2
Test3 – 3
Test4 – 4

Say these are row, if I want to change the order of Test2 into 1, how should implement this.

change test1 order column to 2 and test2 order column to 1 and leave test3 and test4
that’s what I can suggest base on your question

Siberfx 2020-06-13 20:12:59
so afterr you updating the test2 as first item you want it automatically reorder the list as in;
Test2 – 1
Test1 – 2
Test3 – 3
Test4 – 4
karthick_sivakumar 2020-06-13 20:14:24
Roham0010 2020-06-13 20:12:57
change test1 order column to 2 and test2 order column to 1 and leave test3 and test4
that’s what I can suggest base on your question

Is that a best approach Im asking or can u suggest any approach for reordering the rows

karthick_sivakumar 2020-06-13 20:14:35
Siberfx 2020-06-13 20:12:59
so afterr you updating the test2 as first item you want it automatically reorder the list as in;
Test2 – 1
Test1 – 2
Test3 – 3
Test4 – 4

S

karthick_sivakumar 2020-06-13 20:15:39
Sry, Is my ques is not clear.
Siberfx 2020-06-13 20:16:19
listen, its not a simple “hi how are you?” question, so you should explain the logic by the question instead of blaming people who understand who doesnt
karthick_sivakumar 2020-06-13 20:17:33
Siberfx 2020-06-13 20:16:19
listen, its not a simple “hi how are you?” question, so you should explain the logic by the question instead of blaming people who understand who doesnt

Hey, I’m not blaming anyone here. I’m just asking if my ques is not clear, if u say s I would repeat them in a clear way dats it.

Roham0010 2020-06-13 20:17:48
karthick_sivakumar 2020-06-13 20:14:24
Is that a best approach Im asking or can u suggest any approach for reordering the rows

I don’t think so
You have to add order column and then you have to do this series of thing to re-order

karthick_sivakumar 2020-06-13 20:18:39
Roham0010 2020-06-13 20:17:48
I don’t think so
You have to add order column and then you have to do this series of thing to re-order

I have already added a column. Thanks I will reorder as u mentioned.

natghi2010 2020-06-13 20:19:40
Roham0010 2020-06-13 19:49:22
https://laravel.com/docs/7.x/seeding

“Laravel includes a simple method of seeding your database with test data using seed classes.”

kevin7G 2020-06-13 20:20:23
Siberfx 2020-06-13 20:05:43
there is another way;
composer require laravel/framework:”7.0″

how?i m getting this error while change the version in composer.json,and update

kevin7G 2020-06-13 20:20:52
laravel_discuss-41320.jpg

karthick_sivakumar 2020-06-13 20:21:56
I think there is version prblm with some of the packages
Anu 2020-06-13 20:23:28
kevin7G 2020-06-13 20:20:52

PHP version

kevin7G 2020-06-13 20:24:12
Anu 2020-06-13 20:23:28
PHP version

7.2

Siberfx 2020-06-13 20:24:22
What was the previous version and to which you trying ?
TheGuyi 2020-06-13 20:24:32
kevin7G 2020-06-13 20:24:12
7.2

Use 7.3

TheGuyi 2020-06-13 20:24:44
See if it happens again
kevin7G 2020-06-13 20:25:57
Siberfx 2020-06-13 20:24:22
What was the previous version and to which you trying ?

the previous version is 7.0..and i want to convert it into 6.0

TheGuyi 2020-06-13 20:26:03
Are you in position to make a clean install of php and composer?
TheGuyi 2020-06-13 20:26:24
This will help solve small issues that arise
kevin7G 2020-06-13 20:26:47
TheGuyi 2020-06-13 20:26:03
Are you in position to make a clean install of php and composer?

Sorry

Siberfx 2020-06-13 20:27:01
ok listen, there can be several packages that you shoud update too.. even in required-dev area.. for downgrading
TheGuyi 2020-06-13 20:27:36
kevin7G 2020-06-13 20:26:47
Sorry

Backup your projects make a clean install of both is what I advise

TheGuyi 2020-06-13 20:27:48
Including laravel installer
TheGuyi 2020-06-13 20:28:25
Siberfx 2020-06-13 20:27:01
ok listen, there can be several packages that you shoud update too.. even in required-dev area.. for downgrading

Correct .. Thus why clean install is advised. Many things changed from php 7.0 to 7.2 and 7.3

|