Buenas muchachos, alguien sabe como utilizar un where like en collections?

|
チチャン Jhan [🍔 Sponsored] 2019-10-07 06:25:55
Database no e-mail and password
bacoa 2019-10-07 06:32:36
Buenas muchachos, alguien sabe como utilizar un where like en collections?
isnopitag 2019-10-07 06:41:10
bacoa 2019-10-07 06:32:36
Buenas muchachos, alguien sabe como utilizar un where like en collections?

Supongo que como viene de collections tienes que escribirlo como si fuera un operador, ya sabes entre comillas, deja te mando un ejemplo

bacoa 2019-10-07 06:41:48
isnopitag 2019-10-07 06:41:10
Supongo que como viene de collections tienes que escribirlo como si fuera un operador, ya sabes entre comillas, deja te mando un ejemplo

dale

skys215 2019-10-07 06:45:01
bacoa 2019-10-07 06:32:36
Buenas muchachos, alguien sabe como utilizar un where like en collections?

Just use whereLike

isnopitag 2019-10-07 06:49:56
bacoa 2019-10-07 06:41:48
dale

->where(‘publications.name’,’LIKE’,’%’.$search.’%’)
Mira men por ejemplo tendrias que hacerlo asi porque viene de un Collection

bacoa 2019-10-07 06:50:41
gracias lo probare
skys215 2019-10-07 06:57:23
isnopitag 2019-10-07 06:49:56
->where(‘publications.name’,’LIKE’,’%’.$search.’%’)
Mira men por ejemplo tendrias que hacerlo asi porque viene de un Collection

Sorry, I don’t understand Spanish

isnopitag 2019-10-07 06:58:21
skys215 2019-10-07 06:57:23
Sorry, I don’t understand Spanish

Not Problem, I just saying that he need to use a normal where function if he want to filter the information from a collection

Mar R. 2019-10-07 06:59:18
Hiring Sr.PHP with experience in Laravel and high proficiency in English,relocation to Costa Rica, for Latin American applicant #PHP #Laravel contact Skype.marrivera.73
Rahul Jacker 2019-10-07 07:50:21
Hi please suscribe my brother channel. It’s a free tutorial for laravel and other tuts. Please click below link and suscribe our channel.

https://www.youtube.com/user/siddharthshukla089

vfd14889 2019-10-07 08:04:45
https://github.com/laravel-frontend-presets/now-ui-dashboard

GitHub – laravel-frontend-presets/now-ui-dashboardGitHub
Contribute to laravel-frontend-presets/now-ui-dashboard development by creating an account on GitHub.
Alaa_Esam 2019-10-07 10:09:42
Sid 2019-10-06 21:47:23
https://www.youtube.com/user/siddharthshukla089

I watched your vidio, it’s veeery nice, but be more confidence ,and sort your words before, all the best👍

Sid 2019-10-07 10:16:12
Thanks Alaa sure I will try
Sid 2019-10-07 10:16:23
Your suggestion really helpful for me
Alaa_Esam 2019-10-07 10:20:00
you welcome, i am sure you will succses👍
Sid 2019-10-07 10:20:35
😊 thanks alaa
praneet81 2019-10-07 17:42:20
I’ve installed laravel 6 on my local host
praneet81 2019-10-07 17:42:29
And am doing auth scaffolding
praneet81 2019-10-07 17:42:45
When i do the npm install && npm run dev
praneet81 2019-10-07 17:42:51
I get this message
praneet81 2019-10-07 17:43:09
laravel_discuss-14867.jpg

2019-10-07 18:21:05
praneet81 2019-10-07 17:42:29
And am doing auth scaffolding

Composer require laravel/ui && PHP artisan vue –auth

praneet81 2019-10-07 18:21:56
2019-10-07 18:21:05
Composer require laravel/ui && PHP artisan vue –auth

Did all that

praneet81 2019-10-07 18:22:03
I’m getting issues in npm
2019-10-07 18:23:04
I think you shouldn’t worried about the npm warn
2019-10-07 18:24:28
Can you show the full output of npm install
2019-10-07 18:32:07
May I ask for help?
2019-10-07 18:41:38
Error:
2019-10-07 18:42:03
laravel_discuss-14878.jpg

2019-10-07 18:42:27
laravel_discuss-14881.jpg
database
2019-10-07 18:42:40
laravel_discuss-14882.jpg
User Model
2019-10-07 18:43:01
laravel_discuss-14883.jpg
User Controller
2019-10-07 18:43:02
laravel_discuss-14884.jpg

2019-10-07 18:43:25
laravel_discuss-14885.jpg
ms_users table
2019-10-07 18:44:28
2019-10-07 18:42:03

It is happened when I try to store ms_users data

2019-10-07 18:46:11
.env:
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=report_management
DB_USERNAME=root
DB_PASSWORD=
DesolatorMagno 2019-10-07 18:49:06
I read, table “USERS” don’t exist

and i see in you DB Manager that there is no “USERS” table.

DesolatorMagno 2019-10-07 18:49:35
(Image load slow, now i see model)
DesolatorMagno 2019-10-07 18:50:27
You know tinker? try doing User::first()
2019-10-07 18:51:50
before that I apologize if my English is not good
2019-10-07 18:52:25
DesolatorMagno 2019-10-07 18:49:06
I read, table “USERS” don’t exist

and i see in you DB Manager that there is no “USERS” table.

Yep the answer is in model

2019-10-07 18:52:39
DesolatorMagno 2019-10-07 18:50:27
You know tinker? try doing User::first()

Im sorry but I didn’t know about that

DesolatorMagno 2019-10-07 18:53:05
You know how to use terminal, right?
2019-10-07 18:53:25
so where should I do User::first() ?
2019-10-07 18:53:35
DesolatorMagno 2019-10-07 18:53:05
You know how to use terminal, right?

Yeah I know

DesolatorMagno 2019-10-07 18:53:36
try this in the terminal
php artisan tinker
DesolatorMagno 2019-10-07 18:54:12
laravel_discuss-14899.jpg
Tinker can help you, a lot, to debug and test.
2019-10-07 18:55:47
DesolatorMagno 2019-10-07 18:54:12
Tinker can help you, a lot, to debug and test.

Output:
[!] Aliasing ‘User’ to ‘AppUser’ for this Tinker session.
=> AppUser {#3025
id: 1,
name: “Kautsar Albana”,
username: “kautsaralbana”,
email: “admin@rpman.com”,
email_verified_at: null,
created_at: “2019-10-07 15:22:05”,
updated_at: “2019-10-07 15:22:05”,
}

DesolatorMagno 2019-10-07 18:55:58
Ok, now go back to the controller.
|