But how install pusher packages?

|
cayetanohosma 2020-12-08 19:20:08
Could you be more accurate? I mean When the system ask for the passphrase?
cayetanohosma 2020-12-08 19:20:29
If I’m not wrong it has been related with the SSH key creation not with XAMPP
ismael_medhat 2020-12-08 19:23:00
laravel_discuss-61807.jpg

ismael_medhat 2020-12-08 19:26:51
laravel_discuss-61808.jpg

ismael_medhat 2020-12-08 19:29:06
cayetanohosma 2020-12-08 19:20:29
If I’m not wrong it has been related with the SSH key creation not with XAMPP

I don’t know.. But i’m works on xampp and OS ubuntu20

cayetanohosma 2020-12-08 19:29:50
Why do you need to access XAMP using SSH? Is not possible directly through the XAMPP menus?
ismael_medhat 2020-12-08 19:31:10
laravel_discuss-61811.jpg
Error when try write : composer require pusher/pusher-php-server
ismael_medhat 2020-12-08 19:32:00
cayetanohosma 2020-12-08 19:29:50
Why do you need to access XAMP using SSH? Is not possible directly through the XAMPP menus?

Ok.. But how install pusher packages?

2020-12-08 19:32:13
cayetanohosma 2020-12-08 19:20:29
If I’m not wrong it has been related with the SSH key creation not with XAMPP

yes

cayetanohosma 2020-12-08 19:32:52
I guess that XAMPP give to you a console access, isn’t it?
2020-12-08 19:33:37
cayetanohosma 2020-12-08 19:32:52
I guess that XAMPP give to you a console access, isn’t it?

That’s it

cayetanohosma 2020-12-08 19:34:08
So, in that console you can run the “apt-get” command that I gave to you above
2020-12-08 19:35:19
cayetanohosma 2020-12-08 19:34:08
So, in that console you can run the “apt-get” command that I gave to you above

I am not linux user… I am gonna do ssl in virtual hosts in xampp… i dunno what are u asking

cayetanohosma 2020-12-08 19:36:47
You must run the above commands into the XAMPP console, and it should install curl in your system
cayetanohosma 2020-12-08 19:37:28
By the way, I recommend you to isolate the system, use docker or whatever other virtualización software. XAMPP is not the best option
GistOf 2020-12-08 19:48:27
If I understand what you’re trying to do, I don’t think you need to SSH into anything to install packages on your local machine. You just do that with compiser, the usual way. Building the server to act as a pusher server is a different story though
ismael_medhat 2020-12-08 19:53:12
laravel_discuss-61822.jpg

mynameisbrad 2020-12-08 19:53:24
Hey guys i composer updated my project and now i get this weird error in every api access point:

Syntax error, unexpected ‘Parser’ (T_STRING), expecting function (T_FUNCTION) or const (T_CONST)

mynameisbrad 2020-12-08 19:53:35
Did someone recieve something similar?
mynameisbrad 2020-12-08 19:54:19
ismael_medhat 2020-12-08 19:53:12

sudo apt-get install php7.4-curl

GistOf 2020-12-08 19:54:33
cayetanohosma 2020-12-08 19:29:50
Why do you need to access XAMP using SSH? Is not possible directly through the XAMPP menus?

SSH is just a way of giving you access the the terminal of a remote computer. On your local computer, you use CMD or Powershell for that.

Unlike docker, VirtualBox or a VPS, Xampp does not create something that you can treat like a separate computer

mynameisbrad 2020-12-08 19:54:55
ismael_medhat 2020-12-08 19:53:12

Pusher works only with php versions below 7.4 so maybe u gotta install 7.3/7.2

ismael_medhat 2020-12-08 19:57:02
laravel_discuss-61828.jpg

ismael_medhat 2020-12-08 19:57:45
laravel_discuss-61829.jpg
Php>7.3
GistOf 2020-12-08 19:59:06
ismael_medhat 2020-12-08 19:57:45
Php>7.3

Charlie said PHP has to be 7.3 and below

ismael_medhat 2020-12-08 19:59:37
laravel_discuss-61831.jpg
Thank you gues i solved it
ismael_medhat 2020-12-08 20:00:10
laravel_discuss-61832.jpg
Installed
GistOf 2020-12-08 20:01:30
Awesome!
OmarXtream 2020-12-08 20:14:23
Hello guys i have a simple idea with SQL and i couldn’t get it
OmarXtream 2020-12-08 20:15:09
laravel_discuss-61836.jpg
This is my table
OmarXtream 2020-12-08 20:16:07
i have two tasks i finshed the first one but couldn’t finsh the other one

The first : is to get the max point for each trait

i did it simply like this:

$trait_max = Result::where(‘p_trait_id’,$traitId)
->max(‘points’);

OmarXtream 2020-12-08 20:17:21
the second task is to get the max of each character ( character has two traits )

so i need to sum the two traits for each then find the max

OmarXtream 2020-12-08 20:17:32
please help 🙁 😫
Manoj Mehta 2020-12-08 20:18:00
$data = item::where(‘item.status’, 1)

->leftjoin(‘subcategory’,’subcategory.subcatID’,’=’,’item.subcatID’)
– >leftjoin(‘dealerproduct’,’dealerproduct.itemID’,’=’,’item.itemID’)
->where(‘subcategory.subcatID’,$subcatID)
->where(‘dealerproduct.dealerID’,$dealerID)
->get() ->groupBy(‘item.dimentions’);

Manoj Mehta 2020-12-08 20:18:42
Manoj Mehta 2020-12-08 20:18:00
$data = item::where(‘item.status’, 1)

->leftjoin(‘subcategory’,’subcategory.subcatID’,’=’,’item.subcatID’)
– >leftjoin(‘dealerproduct’,’dealerproduct.itemID’,’=’,’item.itemID’)
->where(‘subcategory.subcatID’,$subcatID)
->where(‘dealerproduct.dealerID’,$dealerID)
->get() ->groupBy(‘item.dimentions’);

i am using this query for data get

|