← prev | next →
vasanthamohan 2019-03-02 11:55:36
Yes it’s working fine in before 2 hours
vasanthamohan 2019-03-02 11:56:20
I am using route resource for that in edit method it’s working fine still
vasanthamohan 2019-03-02 11:57:18
Is it mandatory to define all methods like index,show,edit…. In controller when using route resource
vasanthamohan 2019-03-02 12:03:04
Find that issue
vasanthamohan 2019-03-02 12:04:06
Don’t use folder or file name same as resources.views
vasanthamohan 2019-03-02 12:04:47
vasanthamohan 2019-03-02 11:57:18
Is it mandatory to define all methods like index,show,edit…. In controller when using route resource
It’s not mandatory
StanleyMasinde 2019-03-02 12:40:43
vasanthamohan 2019-03-02 11:18:02
You need to set up all your requests redirect to public index.php…
php -S localhost:8000 -t public
can help
vasanthamohan 2019-03-02 12:53:38
Yes I find that
vasanthamohan 2019-03-02 12:53:55
StanleyMasinde 2019-03-02 12:40:43
You need to set up all your requests redirect to public index.php…
php -S localhost:8000 -t public
can help
Ok bro thaks
vasanthamohan 2019-03-02 12:54:09
*thanks
R_IT_Geek 2019-03-02 13:02:41
I wrote the resource for each of information.
R_IT_Geek 2019-03-02 13:02:41
hi
I wrote a resource for the return of all information by API,
I do not know how to return the fields by this method.
public function toArray($request)
{
return [
‘sliders’=> SliderIndexResource::collection($this??)
];
}
and my index method of controller is
public function index()
{
$slider = Slider::all();
$user = Auth::user();
$products = Product::with([‘type_product’,])->get();
}
R_IT_Geek 2019-03-02 13:22:06
Thanks, solved.
Inside the index method, I wrote the following and did not need a general resource.
return [
SliderIndexResource::collection($slider),
UserIndexResource::make($user),
];
R_IT_Geek 2019-03-02 14:18:58
Should I change the design?
R_IT_Geek 2019-03-02 14:18:58

another question 😊
according to the above design, I want to get the following query:
“Products with the most sales.”
$product=Product::all();
$product=$product-> ????
What should I do?
R_IT_Geek 2019-03-02 14:21:38
R_IT_Geek 2019-03-02 14:18:58
Should I change the design?
do I have to put all the fields in the product?
2019-03-02 15:52:44
R_IT_Geek 2019-03-02 14:18:58
another question 😊
according to the above design, I want to get the following query:
“Products with the most sales.”
$product=Product::all();
$product=$product-> ????
What should I do?
Get max(count(sell)) and then group them by product id
vasanthamohan 2019-03-03 04:50:09
Yes bro
vasanthamohan 2019-03-03 04:51:29
Maybe you using same file or folder name in views as same as in public folder
R_IT_Geek 2019-03-03 07:57:54
2019-03-02 15:52:44
Get max(count(sell)) and then group them by product id
👍🏻tnx
Hfally 2019-03-03 09:37:43
Hfally 2019-03-01 13:10:45
Hi everyone!
I just created a new tool.
We all are victims of messy folders, containing lots of file types, ranging from music files to pictures, web-files, etc. A perfect example of such is our Downloads folder.
This tool was built for me and you to help us cleanup such folder with just a single command from the terminal.
https://github.com/hfally/cleanup
I’d appreciate feedback, suggestions and corrections if any. Thanks for your time y’all…
Good morning everyone..
Just to alert y’all that there is a new update on *cleanup*.
– You can now undo/revert your ‘cleanup’.
– And commands have been modified.
See *cleanup help* or the readme for more information.
Thanks y’all 😊
2019-03-03 10:57:04
What is the problem
StanleyMasinde 2019-03-03 10:58:51
2019-03-03 10:57:04
What is the problem
adminController not found…. check for typos in routes/web.php
2019-03-03 11:04:11
StanleyMasinde 2019-03-03 10:58:51
adminController not found…. check for typos in routes/web.php

2019-03-03 11:04:36
this route admin
StanleyMasinde 2019-03-03 11:05:41
2019-03-03 11:04:36
this route admin
Create admin controller or rename it (case sensitive)
ErgashevXurshid 2019-03-03 11:06:46
ErgashevXurshid 2019-03-03 11:06:52
AdminController
2019-03-03 11:07:14
StanleyMasinde 2019-03-03 11:05:41
Create admin controller or rename it (case sensitive)
ok thinks
2019-03-03 11:12:22
Why is this error on the home page?
StanleyMasinde 2019-03-03 11:13:10
2019-03-03 11:12:22
Why is this error on the home page?
The image is null
StanleyMasinde 2019-03-03 11:13:22
Maybe your form did not submit it
2019-03-03 11:14:36
StanleyMasinde 2019-03-03 11:13:22
Maybe your form did not submit it
How can I check the presence of an image in a file or not
StanleyMasinde 2019-03-03 11:15:33
2019-03-03 11:14:36
How can I check the presence of an image in a file or not
Put
return $request;
Before any other code in the method
ErgashevXurshid 2019-03-03 11:32:33
2019-03-03 11:33:34
ErgashevXurshid 2019-03-03 11:32:33
$request->file(‘img’)
ok i trying
ErgashevXurshid 2019-03-03 11:35:04
Can you send img form?
2019-03-03 12:30:23
ErgashevXurshid 2019-03-03 11:32:33
$request->file(‘img’)

2019-03-03 12:35:21
I like laravel but laravel is too slow why?
ErgashevXurshid 2019-03-03 13:07:18
ErgashevXurshid 2019-03-03 13:07:38
Request ::ip()
ErgashevXurshid 2019-03-03 13:09:19
2019-03-03 12:35:21
I like laravel but laravel is too slow why?
If you use template, you need js scripts or Internet connection ))
ErgashevXurshid 2019-03-03 13:10:11
Or DB foreign keys
igr_nchvn 2019-03-03 13:12:49
Set logic of creating or updating record in model. Controller should only get params and return result.
2019-03-03 13:17:08
my database 3nf, js best optimised, server is strong and I use redis but laravel’s performance not good
hey_archer 2019-03-03 13:47:07
I am really beginner to laravel.
Is there any best mvc generator for laravel 5.7. Please suggest?
← prev | next →