Hii Can we clone the website made of codeigniter in Laravel?

Gidi 2022-08-07 03:53:13
Ops sorry
Lemme copy paste what I had so you help me with ones I need to change
Gidi 2022-08-07 03:54:44
$img = $this->portofolio->portofolioimg()->select(‘imgUrl’)->get();
foreach (json_decode($img) as $image)


Gidi 2022-08-07 03:55:29

+”imgUrl”: “[“cQ1maZT9prxzAGRR1yqEN8q2rDUpPJ5XPYPgSkdI.jpg”,”6dNzXeLxxVoFTltaLh8CgpqtQv9p030L9dTe6ksk.jpg”]”

DesolatorMagno 2022-08-07 03:56:04
Ok, so
$img return a array of json like that?
“imgUrl” =>[“cQ1maZT9prxzAGRR1yqEN8q2rDUpPJ5XPYPgSkdI.jpg”,”6dNzXeLxxVoFTltaLh8CgpqtQv9p030L9dTe6ksk.jpg”]”,
“imgUrl” =>[“cQ1maZT9prxzAGRR1yqEN8q2rDUpPJ5XPYPgSkdI.jpg”,”6dNzXeLxxVoFTltaLh8CgpqtQv9p030L9dTe6ksk.jpg”]”,
“imgUrl” =>[“cQ1maZT9prxzAGRR1yqEN8q2rDUpPJ5XPYPgSkdI.jpg”,”6dNzXeLxxVoFTltaLh8CgpqtQv9p030L9dTe6ksk.jpg”]”,
“imgUrl” =>[“cQ1maZT9prxzAGRR1yqEN8q2rDUpPJ5XPYPgSkdI.jpg”,”6dNzXeLxxVoFTltaLh8CgpqtQv9p030L9dTe6ksk.jpg”]”
Gidi 2022-08-07 03:57:33
Doesnt do this
What it does is this
Gidi 2022-08-07 03:58:14
I infact dont know why it even does not return things like this on iteration
DesolatorMagno 2022-08-07 03:59:25
Ok, change get() for first()
DesolatorMagno 2022-08-07 04:00:05
The proble is that you have one array with onle 1 item, that’s why it return that
Gidi 2022-08-07 04:01:22
return result for first()


DesolatorMagno 2022-08-07 04:02:39
$arr[‘image’] = array_values($img);
DesolatorMagno 2022-08-07 04:04:03
OR read about collection and check what you can do

Laravel – The PHP Framework For Web ArtisansLaravel
Laravel is a PHP web application framework with expressive, elegant syntax. We’ve already laid the foundation — freeing you to create without sweating the small things.
Gidi 2022-08-07 04:04:59

array_values(): Argument #1 ($array) must be of type array, string given

Gidi 2022-08-07 04:15:02
Gidi 2022-08-07 04:15:15
This should be something about strings
Gidi 2022-08-07 04:15:39
If there any way to split multi strings belonging to one array key please?
Gidi 2022-08-07 04:17:13
“[“cQ1maZT9prxzAGRR1yqEN8q2rDUpPJ5XPYPgSkdI.jpg”, “6dNzXeLxxVoFTltaLh8CgpqtQv9p030L9dTe6ksk.jpg”]”

so I could split thearray of strings into 2 or based on the n elements and use as such?

Gidi 2022-08-07 04:47:48
Will check it
VasuKush 2022-08-07 06:12:48
How many maximum column quantity can be create in a row of SQL table.

I need to create 300 column in table …
Which will be the best practice to do so.

DesolatorMagno 2022-08-07 06:14:48
Or just use the ‘,’ ase separator..
Gidi 2022-08-07 07:22:01
I’ll come in dm
Right now.. it’s bed time😁
anujrock1 2022-08-07 07:31:03
You can explain it? I didn’t understand it
anujrock1 2022-08-07 07:39:07
Yes but keeping name and identifying customer based on it wrong way.

Instant of customer name, keep customer_id in this table

fredaster23 2022-08-07 07:39:51
If I get that, how should I proceed into merging the data?
anujrock1 2022-08-07 07:41:12
What you want as a resulated data?

Can you show ne your ui?

fredaster23 2022-08-07 07:41:26
Can I dm?
anujrock1 2022-08-07 07:41:33
Donald Okaragba 2022-08-07 08:59:49
Good day! I’m trying to change the path of my file, so I can run my first PHP Hello world project and it’s not working on my xampp terminal.

I’m using the:
cd ~/Desktop/php-learning/

Please, I need help.

. . 2022-08-07 09:13:29

Simple Invoice App with Laravel 9 and Vuejs 3YouTube
In this video we are going to learn How to build Simple Invoice App with Laravel 9 and Vuejs 3
; Good viewing.

Professional contact:

Github: https://github.com/share-tutorials-dev

Did you like the video? Let me know by subscribe,like and comment🤔
Congratulations to today’s signings
YouTube: https://www.youtube.com/channel/UCgME7xUx_PrCdphF2k8bupg?sub_confirmation=1
Github: https://github.com/share-tutorials-dev

Rahul Kothari 2022-08-07 09:27:50
Hi anyone know how to save the data in json file in laravel .
I have to create a user register api in which I have to save the data in json file not in db and data is edited from json file while calling edit api
Rahul Kothari 2022-08-07 09:28:05
Can anybody know how to do this
Rahul Kothari 2022-08-07 09:30:15
Hi anybody know I have to create api in which i have to save the data in json file not in database and while calling update api the data is update on json file . I have to do this in laravel can anybody help me on this
fredaster23 2022-08-07 10:05:02
You could return a response as a json array
lonely_princee 2022-08-07 10:37:31
Hello, how do you find remote work?
Shaikhalam 2022-08-07 11:37:40
Hii Can we clone the website made of codeigniter in Laravel??


Khinsokha 2022-08-07 11:40:42
I got an error why it say not defined?