Exe to your path variables?

|
Kvngthrive 2022-09-27 03:30:50
guys
Kvngthrive 2022-09-27 03:31:21
am kinda new to laravel,I didnt know about livewire and I began my project with just blade and laravel
Kvngthrive 2022-09-27 03:31:39
along the way,I got to know about livewire and how cool it is
Kvngthrive 2022-09-27 03:32:17
and i saw the need to use it but then since I started development(already),I cant reset every view to use livewire default layout
Kvngthrive 2022-09-27 03:32:31
so after doing a livewire component,I do this
Kvngthrive 2022-09-27 03:32:54
return view(‘admin.sections.sections’)->with(compact(‘sections’,’admin_details’))->layout(‘admin.layout.layout’);
Kvngthrive 2022-09-27 03:33:16
so all my views have a layout different fromthat of livewire
Kvngthrive 2022-09-27 03:33:37
all seems to be working but unfortunately,I think my livewire have issues
Kvngthrive 2022-09-27 03:34:04
I cant invoke a simple click from my livewire controller
Kvngthrive 2022-09-27 03:34:24
<?php
// the controller
namespace AppHttpLivewireAdmin;

use LivewireComponent;
use AppModelsAdmin as AdminModel;
use AppModelsSections as SectionsModel;
use IlluminateSupportFacadesAuth;
use IlluminateSupportFacadesSession;

class SectionsComp extends Component
{

public function doSomething()
{

dd(‘fdsgsg’);

}

public function render()
{
Session::put(‘page’,’sections’);
$admin_details = AdminModel::where(’email’, Auth::guard(‘admin’)->user()->email)->first()->toArray();

$sections=SectionsModel::get()->toArray();

return view(‘admin.sections.sections’)->with(compact(‘sections’,’admin_details’))->layout(‘admin.layout.layout’);

}
}

Kvngthrive 2022-09-27 03:37:24
laravel_discuss-139662.jpg
please this is the view of the component
Kvngthrive 2022-09-27 03:38:25
please help ,all I want to succeed in doing is to invoke a click event from the front end to a controller and check is working with a dd(“some text from the backend”);
Kvngthrive 2022-09-27 03:38:59
I will be happy if I get a helper and thanks in advance,Ive done all I can and is still not working.THanks
Kvngthrive 2022-09-27 03:40:32
please dms are open,you can also provide a solution here.Thanks
Almas 2022-09-27 09:12:56
i am trying to order results using the child column in the relationship anyone got a clue on how i can achieve this please
Almas 2022-09-27 09:16:26
laravel_discuss-139668.jpg
i am trying to sort using the column which is inside patients table (patient as relationship)
RETRIC PRIVATE LIMITED 2022-09-27 12:23:00
Looking for Laravel Developer

Exp: 2.5 -3 Years

Salary : 45,000 INR month

fulltime – remote

#Math 2022-09-27 12:35:58
namdi 2022-09-26 23:34:38
$now = date(‘h:ia’);
$endTime = date(‘h:ia’, strtotime(“9:00pm”));
$point = date(‘h:ia’, strtotime($now));

if (user == ‘male’) {

return something

} else if ($point > $endTime) {

return user is a female}

else { return something}

U dont to create point var

#Math 2022-09-27 12:36:10
namdi 2022-09-26 23:34:38
$now = date(‘h:ia’);
$endTime = date(‘h:ia’, strtotime(“9:00pm”));
$point = date(‘h:ia’, strtotime($now));

if (user == ‘male’) {

return something

} else if ($point > $endTime) {

return user is a female}

else { return something}

Point and now vars are the same

#Math 2022-09-27 12:37:05
namdi 2022-09-26 23:34:38
$now = date(‘h:ia’);
$endTime = date(‘h:ia’, strtotime(“9:00pm”));
$point = date(‘h:ia’, strtotime($now));

if (user == ‘male’) {

return something

} else if ($point > $endTime) {

return user is a female}

else { return something}

What u wanna check with if statement

Martial Kpan 2022-09-27 13:00:18
laravel_discuss-139688.jpg
Hi laravel developper please someone can help me to fix this css problem
#Math 2022-09-27 13:24:53
Martial Kpan 2022-09-27 13:00:18
laravel_discuss-139688.jpg
Hi laravel developper please someone can help me to fix this css problem

Show us ur css code please

#Math 2022-09-27 13:25:27
namdi 2022-09-26 23:35:19
laravel_discuss-139688.jpg
Here’s what I wrote

laravel_discuss-139691.jpg

#Math 2022-09-27 13:26:00
namdi 2022-09-26 23:35:19
laravel_discuss-139688.jpg
Here’s what I wrote

Inside now function u can specify timezone for example ‘Asia/Yerevan’

manukminasyan 2022-09-27 14:16:24
Hello all. How I can convert this SQL code to laravel eloquent. Thanks

WITH orders_rank AS (
SELECT
id, created_at, number,
DENSE_RANK() OVER(PARTITION BY account_id ORDER BY created_at) AS rank
FROM orders
)
SELECT
*
FROM orders_rank
WHERE rank = 1

VasuKush 2022-09-27 14:16:44
laravel_discuss-139696.jpg

VasuKush 2022-09-27 14:17:03
Hey artisan commands are not working
VasuKush 2022-09-27 14:17:15
Please help
agzpresh 2022-09-27 14:18:05
VasuKush 2022-09-27 14:16:44
laravel_discuss-139696.jpg

Have you added you php.exe to your path variables?

donnyutama 2022-09-27 14:18:38
VasuKush 2022-09-27 14:16:44
laravel_discuss-139696.jpg

check by run command php -v

VasuKush 2022-09-27 14:19:25
donnyutama 2022-09-27 14:18:38
laravel_discuss-139696.jpg
check by run command php -v

This command is not working

donnyutama 2022-09-27 14:19:58
VasuKush 2022-09-27 14:19:25
laravel_discuss-139696.jpg
This command is not working

if not working,, do what @agzpresh said

VasuKush 2022-09-27 14:20:26
Php version 8.0.19
donnyutama 2022-09-27 14:27:10
VasuKush 2022-09-27 14:20:26
laravel_discuss-139696.jpg
Php version 8.0.19

run command which php

scotttresor 2022-09-27 14:52:18
RETRIC PRIVATE LIMITED 2022-09-27 12:23:00
laravel_discuss-139696.jpg
Looking for Laravel Developer

Exp: 2.5 -3 Years

Salary : 45,000 INR month

fulltime – remote

Here I’m

|