Orders function in customer?

|
JeevaniSM 2020-11-10 15:28:11
ok, sorry my bad πŸ™‚
natghi2010 2020-11-10 15:40:17
delete this pls
2020-11-10 16:51:40
excuse me
2020-11-10 16:52:07
laravel_discuss-58725.jpg
someone help me
hreza05 2020-11-10 16:53:33
2020-11-10 16:52:07
someone help me

Use php artisan Serve command instead of run code with phpstrom

amir881231 2020-11-10 16:54:09
2020-11-10 16:52:07
someone help me

Type 127.0.0.1:localhost in bar address

2020-11-10 16:54:36
hreza05 2020-11-10 16:53:33
Use php artisan Serve command instead of run code with phpstrom

shit.. _- it seems easy but I don’t know
thanks bro

amir881231 2020-11-10 16:54:47
U should turn on ur server with php artisan serve
2020-11-10 16:55:50
laravel_discuss-58730.jpg
but why I cant use chrome? in top of right
amir881231 2020-11-10 16:57:42
2020-11-10 16:55:50
but why I cant use chrome? in top of right

In laravel u cant use this
That is just for front and html pages
U work in blade system

2020-11-10 16:58:21
thanks for your information mr…
amir881231 2020-11-10 16:58:41
Ur welcome
2020-11-10 17:04:04
laravel_discuss-58735.jpg
and why (in right) can open without php artisan serve? however, i must use php artisan serve or I open my localhost?
2020-11-10 17:09:35
i’m sorry it’s happen again
2020-11-10 17:09:49
laravel_discuss-58737.jpg

shaddieh 2020-11-10 17:33:56
2020-11-10 17:09:49

can you try php artisan up

2020-11-10 17:35:14
Yes… Then?
shaddieh 2020-11-10 17:39:10
2020-11-10 17:35:14
Yes… Then?

has it show… application is already up?

2020-11-10 17:39:21
Yup
shaddieh 2020-11-10 17:40:48
2020-11-10 17:39:21
Yup

are you trying to access the hi bro string?

2020-11-10 17:40:58
Yes
shaddieh 2020-11-10 17:42:06
then it’s 127.0.0.1:8000/admin/posts
DesolatorMagno 2020-11-10 17:42:39
laravel_discuss-58745.jpg

shaddieh 2020-11-10 17:43:41
DesolatorMagno 2020-11-10 17:42:39

I gues he has not yet created a controller..

PhyoWaiHlanHtun 2020-11-10 17:49:50
Please share me best laravel e-book. Thanks u all.
2020-11-10 18:14:57
what happen?
shaddieh 2020-11-10 18:17:46
This is general.. what about in the code
gaidyjg 2020-11-10 18:18:27
you view don’t exists or not was create
2020-11-10 18:20:03
you must read write “hi”
2020-11-10 18:20:53
if you want print string and if you want show view you must create viewBlade in directory resources/view/…..blde.php
2020-11-10 18:21:09
and write : return view(‘nameView’);
2020-11-10 18:22:34
laravel_discuss-58758.jpg
and this too
shaddieh 2020-11-10 18:24:56
2020-11-10 18:22:34
and this too

remove view from the return

gaidyjg 2020-11-10 18:26:08
2020-11-10 18:22:34
and this too

bad declaration of name for a view file. if you want return just string, you just should doing return ‘This post number’;. The function view, return the fetched file with the name that you typed

b46u_s 2020-11-10 18:29:34
thanks😭😭
NanoCellMusic 2020-11-10 18:45:00
2020-11-10 18:22:34
and this too

remove view(); s it is just: return ‘This post number ‘ . $id;

badralwattar 2020-11-10 18:47:12
laravel_discuss-58764.jpg
what is customer()->orders() ??
where did it come from?
DesolatorMagno 2020-11-10 18:47:49
Relationship
badralwattar 2020-11-10 18:48:02
DesolatorMagno 2020-11-10 18:47:49
Relationship

which model?

DesolatorMagno 2020-11-10 18:48:08
orders…
badralwattar 2020-11-10 18:48:14
orders function in customer?
DesolatorMagno 2020-11-10 18:48:21
Yes
DesolatorMagno 2020-11-10 18:48:31
Order Relationship in Customer
badralwattar 2020-11-10 18:48:50
is it the same as
Customer::orders() ?
DesolatorMagno 2020-11-10 18:49:12
Nope
badralwattar 2020-11-10 18:49:24
badralwattar 2020-11-10 18:47:12
what is customer()->orders() ??
where did it come from?

with this form Customer model is not loaded in the controller

badralwattar 2020-11-10 18:49:48
I can use model_name() in all controllers?
DesolatorMagno 2020-11-10 18:50:50
I would recommend that you read the documentation
badralwattar 2020-11-10 18:52:23
DesolatorMagno 2020-11-10 18:50:50
I would recommend that you read the documentation

what part?

2020-11-10 18:52:36
laravel_discuss-58777.jpg
hi guys
i,m want create function to build switch case for me : but dosnt work ::( what me do?
|