Laravel 2021-06-07 20:42

|
NjoguAmos 2021-06-07 20:42:41
NjoguAmos 2021-06-07 20:42:17
Create ann inverse relationship

public function child()….

A comment has many replies/childrens

Then you can load comment with childrens

*an inverse

RahiMSuleymaN 2021-06-07 20:43:31
NjoguAmos 2021-06-07 20:42:17
Create ann inverse relationship

public function child()….

A comment has many replies/childrens

Then you can load comment with childrens

public function replies()
{
return $this->hasMany(__CLASS__, ‘parent_id’)->orderBy(‘id’,’desc’);
}

RahiMSuleymaN 2021-06-07 20:44:08
I look at debugbar in this case too I have many query
NjoguAmos 2021-06-07 20:45:02
RahiMSuleymaN 2021-06-07 20:43:31
public function replies()
{
return $this->hasMany(__CLASS__, ‘parent_id’)->orderBy(‘id’,’desc’);
}

This query has infinite loop

Oshincyber 2021-06-07 20:45:40
hello sirs , please how can i stop running php artisan serve to start laravel, instead using localhost sorry sir am a newbie in laravel
NjoguAmos 2021-06-07 20:47:17
Oshincyber 2021-06-07 20:45:40
hello sirs , please how can i stop running php artisan serve to start laravel, instead using localhost sorry sir am a newbie in laravel

Just close the terminal or On Mac presss CMD + C or on Crl + C

Oshincyber 2021-06-07 20:48:09
NjoguAmos 2021-06-07 20:47:17
Just close the terminal or On Mac presss CMD + C or on Crl + C

if i close the terminal sir , the localhost for laravel wont respond si

RahiMSuleymaN 2021-06-07 20:48:17
NjoguAmos 2021-06-07 20:45:02
This query has infinite loop

laravel_discuss-84507.jpg
because may be reply every comment(or reply)

Oshincyber 2021-06-07 20:49:03
NjoguAmos 2021-06-07 20:47:17
Just close the terminal or On Mac presss CMD + C or on Crl + C

and i dont like when am starting it taht way sir, i prefer using localhost/public but i dont understand how they go about it after checking online

NjoguAmos 2021-06-07 20:50:12
RahiMSuleymaN 2021-06-07 20:48:17
because may be reply every comment(or reply)

laravel_discuss-84509.jpg
If you dont add contraint, then you will have infinite loop of queries

NjoguAmos 2021-06-07 20:50:51
NjoguAmos 2021-06-07 20:50:12
If you dont add contraint, then you will have infinite loop of queries

Not every comment is reply, you need a condition to distinguish them

NjoguAmos 2021-06-07 20:52:06
Oshincyber 2021-06-07 20:49:03
and i dont like when am starting it taht way sir, i prefer using localhost/public but i dont understand how they go about it after checking online

You asked how to stop a php artisan server command, and I gave you the several options. If you are asking something else, then be clear

Oshincyber 2021-06-07 20:52:35
NjoguAmos 2021-06-07 20:52:06
You asked how to stop a php artisan server command, and I gave you the several options. If you are asking something else, then be clear

let me come again sir

RahiMSuleymaN 2021-06-07 20:52:56
NjoguAmos 2021-06-07 20:50:51
Not every comment is reply, you need a condition to distinguish them

laravel_discuss-84513.jpg
that is way I added root_comment column

NjoguAmos 2021-06-07 20:53:20
Oshincyber 2021-06-07 20:48:09
if i close the terminal sir , the localhost for laravel wont respond si

If you stop the serve command then you wont be able to access the site from your browser. You have to start the command again.

NjoguAmos 2021-06-07 20:54:25
RahiMSuleymaN 2021-06-07 20:52:56
that is way I added root_comment column

Adding is not enough, you have to include it in your relationship. Otherwise, you will have 1000s of queries

Oshincyber 2021-06-07 20:54:38
NjoguAmos 2021-06-07 20:53:20
If you stop the serve command then you wont be able to access the site from your browser. You have to start the command again.

i was thinking if there was another way, because when i use git cmd to start serve it will just be loading i will show screenshot now, my other cmd terminal takes time before it loads

Oshincyber 2021-06-07 20:55:14
laravel_discuss-84517.jpg
this what am talking about sir but the page are working fine sir
NjoguAmos 2021-06-07 20:56:12
When you run serve command, you have to create another terminal window
RahiMSuleymaN 2021-06-07 20:56:13
NjoguAmos 2021-06-07 20:54:25
Adding is not enough, you have to include it in your relationship. Otherwise, you will have 1000s of queries

thank you very much i will have to investigate a bit

Oshincyber 2021-06-07 20:56:51
NjoguAmos 2021-06-07 20:56:12
When you run serve command, you have to create another terminal window

ehhn ehhn , now i see

Oshincyber 2021-06-07 20:57:38
NjoguAmos 2021-06-07 20:56:12
When you run serve command, you have to create another terminal window

sorry for not making myself clear sir, am just new to this laravel sir

NjoguAmos 2021-06-07 20:59:19
Oshincyber 2021-06-07 20:57:38
sorry for not making myself clear sir, am just new to this laravel sir

No problem.

NjoguAmos 2021-06-07 21:00:11
RahiMSuleymaN 2021-06-07 20:56:13
thank you very much i will have to investigate a bit

Good. Remember that different constraint have to be added to replies and parent. Good luck.

Uncle Castle 2021-06-07 21:06:41
Uncle Castle 2021-06-07 20:24:57
Hello family
Any one to help please, I want to send an email from a web application from a local server, I’m getting challenge on the right domain to place at sendmail_from =……..
And SMTP = ……
Any one to help please

Anyone who is familiar with configuration of php.ini for mail function
#i’m using core php#
May I get help please

Relaxed Guy 2021-06-07 21:32:01
Getting 302 error on login and register wat cud be the issue it was working before I input the jwt package now it’s not working
maudrico 2021-06-07 21:39:12
https://youtu.be/xgQwzPsuAEo

HOW TO INTEGRATE THE HTML TEMPLATE INTO THE LOGIN WITH LARAVELYouTube
Link do Github
https://github.com/mauriciocoelho/tinydash-master-
https://bit.ly/3yl9wlJ
Chrisdavid32 2021-06-07 21:47:09
Good evening Devs
Chrisdavid32 2021-06-07 21:51:56
I wan to build laravel Api driven application with endpoints to be consumed by a mobile dev. Thus, this is my first time.
Chrisdavid32 2021-06-07 21:53:15
So is there anyone with good material recommendations that will help me complete the application. Thanks as u help
Joesmith123 2021-06-07 21:53:37
Chris start building it
Joesmith123 2021-06-07 21:54:02
It would be something which would evolve. Face difficulties along side. It would be done
Joesmith123 2021-06-07 21:54:20
It’s feasible and not something very difficult.
Chrisdavid32 2021-06-07 21:55:38
Joesmith123 2021-06-07 21:54:20
It’s feasible and not something very difficult.

Wow, but don’t u think I need to go through some docs so to be on good track?

2021-06-07 22:00:57
Chrisdavid32 2021-06-07 21:55:38
Wow, but don’t u think I need to go through some docs so to be on good track?

YouTube, laracast, Google, and the best Laravel docs.

|