Or should I create an array by iterating the collection in controller then passing that array to the view?

|
venkataadithan 2021-08-02 18:07:50
2021-08-02 12:24:18
I need E commerce
simple open source Laravel

Have you tried aimeos, it’s a free open-source ecommerce

Akhilbansal122 2021-08-02 19:51:35
laravel_discuss-90241.jpg

Akhilbansal122 2021-08-02 19:51:46
Any idea i use factory
venkataadithan 2021-08-02 20:03:59
Akhilbansal122 2021-08-02 19:51:35

Check the data type of gender

Arceus003 2021-08-02 20:25:07
Hello
I am new to laravel
I was earlier working on CI

Wanted to ask that as i was populating some data
So should i pass the whole laravel collection [Model::all()] to the view

Or should I create an array by iterating the collection in controller then passing that array to the view?

2021-08-02 21:48:09
Arceus003 2021-08-02 20:25:07
Hello
I am new to laravel
I was earlier working on CI

Wanted to ask that as i was populating some data
So should i pass the whole laravel collection [Model::all()] to the view

Or should I create an array by iterating the collection in controller then passing that array to the view?

Drop the code right here…most of our skills are in sight.

YOUCODEWORLD 2021-08-02 21:49:05
Arceus003 2021-08-02 20:25:07
Hello
I am new to laravel
I was earlier working on CI

Wanted to ask that as i was populating some data
So should i pass the whole laravel collection [Model::all()] to the view

Or should I create an array by iterating the collection in controller then passing that array to the view?

You work on CI learn Laravel easy so easy!

YOUCODEWORLD 2021-08-02 21:49:51
You go to official and read the document . maybe 1 week expret!
Arceus003 2021-08-02 21:52:34
2021-08-02 21:48:09
Drop the code right here…most of our skills are in sight.

Bro I am not getting any problem in code
In CI we used to query the data and pass the formed array to view

In laravel while using eloquent model I got to know about the collection so
What is the best pratice passing the whole collection or creating the array for the desired using getAttributes then passing that

Arceus003 2021-08-02 21:54:03
YOUCODEWORLD 2021-08-02 21:49:51
You go to official and read the document . maybe 1 week expret!

Yes it is easy to get going

YOUCODEWORLD 2021-08-02 21:56:06
Most of the people in this group are beginners!šŸ˜
YOUCODEWORLD 2021-08-02 21:57:03
Maybe they not know what collection
Arceus003 2021-08-02 21:58:00
YOUCODEWORLD 2021-08-02 21:56:06
Most of the people in this group are beginners!šŸ˜

Okay

Phemorah 2021-08-02 22:18:53
mustafaemadeldeen 2021-08-02 13:06:06
good morning developers
is there any way to handle subdomains in laravel&vue app?

Use Route::domain in your web.php file

mustafaemadeldeen 2021-08-02 22:25:21
Phemorah 2021-08-02 22:18:53
Use Route::domain in your web.php file

thanks for replying I found this solution but subdomains works from browser bar directly or <a> tag not work with router-link

mustafaemadeldeen 2021-08-02 22:25:42
mustafaemadeldeen 2021-08-02 22:25:21
thanks for replying I found this solution but subdomains works from browser bar directly or <a> tag not work with router-link

https://gosink.in/vue-js-how-to-handle-multiple-subdomains-on-a-single-app/

Vue.js – How to handle multiple subdomains on a single app.Sink In – Tech Learnings
In this article, Iā€™m going to show you how we can divide a Vue.js application into multiple subdomains (or multiple domains if you want) like example.com, admin.example.com, test.example.com etc.
Phemorah 2021-08-02 22:38:10
Arceus003 2021-08-02 20:25:07
Hello
I am new to laravel
I was earlier working on CI

Wanted to ask that as i was populating some data
So should i pass the whole laravel collection [Model::all()] to the view

Or should I create an array by iterating the collection in controller then passing that array to the view?

Depending on which is suitable for your need, you can directly pass the result-set collection into your view or simply convert it to an array by using json_encode() function to format it before passing it down

web_design_develop 2021-08-02 22:48:51
YOUCODEWORLD 2021-08-02 21:56:06
Most of the people in this group are beginners!šŸ˜

Wow very interesting

Arceus003 2021-08-02 22:56:03
Phemorah 2021-08-02 22:38:10
Depending on which is suitable for your need, you can directly pass the result-set collection into your view or simply convert it to an array by using json_encode() function to format it before passing it down

Okay thanks

Mhd_keramati 2021-08-02 23:10:15
Wich solution for socket in laravel suggested?
Phemorah 2021-08-03 01:13:16
tracygrey57 2021-07-27 05:12:39
hi can anyone make a php script to upload image and save it to database image_name for $5 anyone please fast

Hello Guys.

Please beware of this person. He requested for a php script to upload images and save it on database for $5.

I offered what he wanted but he ended up not paying.

His name is Big Chris and he’s a big SCAM.. Pls beware of him.

saudi200 2021-08-03 01:59:08
If you are interested about Machine Learning
Please answer this questionnaire for my project
It will take 2 minutes

https://docs.google.com/forms/d/e/1FAIpQLSfL4U-l1h_DVdln2LwPH4d6_jNdky0xkktBkbmo4FHCwSIa-g/viewform?vc=0&c=0&w=1&flr=0

Thanks

Online collaboration to manage machine learning projectsGoogle Docs
This questionnaire aims to get information about online collaboration to manage machine learning projects.
we are developing machine learning project collaboration tools where these teams will be able to connect and communicate effectively. The tool will manage the life cycle of machine learning researches and provide a systematic way to achieve goals as a team. Such a platform contains essential sections to complete the project which are gather the data , build the models , show the results , writing scientific papers and there is visualization to present the progress status of the project.
Laura 2021-08-03 02:19:14
Hi guys, I have a question that I would like to help me solve, my main view includes a partial view (ver_descargo), in my controller I have a function that returns the partial view (htmlDescargo), in my js I am supposed to return the partial view in the id(download-detail) but it does not. Thank you
Laura 2021-08-03 02:19:37
laravel_discuss-90280.jpg

Laura 2021-08-03 02:19:37
laravel_discuss-90279.jpg

Laura 2021-08-03 02:19:38
laravel_discuss-90281.jpg

2021-08-03 03:11:06
Hello guys,
I have a project that already done by some developers but when I can’t run it in my environment.
My php version is : 7.4.21
My laravel version : 8.40
2021-08-03 03:11:42
laravel_discuss-90283.jpg

2021-08-03 03:11:53
File configuration
2021-08-03 03:13:01
laravel_discuss-90285.jpg

2021-08-03 03:13:12
The error that I get
2021-08-03 03:13:51
When I run php artisan serve
venkataadithan 2021-08-03 05:05:42
2021-08-03 03:13:51
When I run php artisan serve

composer dump auto load fails

venkataadithan 2021-08-03 05:06:21
Try this composer dump-autoload
venkataadithan 2021-08-03 05:07:16
Else try reinstalling all the composer dependencies
|