I have an app, where am supposed to pass a variable from view and be used in a controller, but the variable am inputing is not related to Auth how can I do that?

|
Hasi_boi 2021-02-05 14:26:20
Hey everyone,
I have created three projects as supplier, product and supplier material.. I want to load all supplier details to supplier material project. But the problem is supplier details are in different database. Simple.. Can I add two databases in one laravel project.. Or any solution pls?
Hasi_boi 2021-02-05 14:32:54
Hasi_boi 2021-02-05 14:26:20
Hey everyone,
I have created three projects as supplier, product and supplier material.. I want to load all supplier details to supplier material project. But the problem is supplier details are in different database. Simple.. Can I add two databases in one laravel project.. Or any solution pls?

I’m going to copy all the stuff from those projects to new project.. Models, controllers and views.. What can I do in this case instead of this

2021-02-05 15:25:29
I think you can
2021-02-05 15:26:03
But its you dont need live data of that db, its better that you import it on the actual db
2021-02-05 15:27:14
If you need live data, check this web
2021-02-05 15:27:24
https://stackoverflow.com/questions/58144473/how-to-connect-to-another-database-in-laravel-multiple-database-hundreds

How to connect to another database in Laravel (Multiple Database HUNDREDS)Stack Overflow
So I have hundreds of database and I want to change what database to use according to what value I pass in

For example I have many company branch that has branch_code (000,001,002,003, etc. up to …

Hasi_boi 2021-02-05 15:30:47
2021-02-05 15:27:14
If you need live data, check this web

Okay thank you

simon_an 2021-02-05 17:19:08
truecode_ke 2021-02-05 14:18:57
I have an app , where am supposed to pass a variable from view and be used in a controller , but the variable am inputing is not related to Auth how can I do that ?

Can’t you pass it in the route? If I understood the question right.

truecode_ke 2021-02-05 17:33:15
simon_an 2021-02-05 17:19:08
Can’t you pass it in the route? If I understood the question right.

I can and if I dd it’s visible , but when passing it in an SQL select statement (same controller) it fails

segungreat 2021-02-05 17:39:43
truecode_ke 2021-02-05 17:33:15
I can and if I dd it’s visible , but when passing it in an SQL select statement (same controller) it fails

What have you tried

theman_behind 2021-02-05 18:55:38
Any freelancer
2021-02-05 19:04:57
theman_behind 2021-02-05 18:55:38
Any freelancer

Yes

Hasi_boi 2021-02-05 19:39:39
2021-02-05 15:25:29
I think you can

Dude.. I think its better to connect three projects with one database instead of these things. What r u think abut that?? Is it good way?

Kim Jong un 2021-02-05 20:05:36
laravel_discuss-69358.jpg
Can anyone suggest me a small project that can be done in one day 😐 … Tomorrow is submission
Lovesha Sharma 2021-02-05 20:13:53
Can some one tell Y my suggestion list is not showing in my view page but it come in response page pls tell me where i do a mistake ?
Lovesha Sharma 2021-02-05 20:14:50
laravel_discuss-69360.jpg
That’s my web page where all routes define in this last route is used
Lovesha Sharma 2021-02-05 20:15:35
laravel_discuss-69361.jpg
This code is used for calling ajax
Lovesha Sharma 2021-02-05 20:16:11
laravel_discuss-69362.jpg
This function is define in my controller
Lovesha Sharma 2021-02-05 20:16:57
laravel_discuss-69363.jpg
This is response come from this code but it’s not showing in my view page
Lovesha Sharma 2021-02-05 20:17:57
laravel_discuss-69364.jpg
In this view page i take a id for add a data which come from ajax success
Lovesha Sharma 2021-02-05 20:18:32
Can some one tell what’s prob. In this code ??
aamer_dirar_05_02 2021-02-05 20:25:52
Hi guys. If anyone dealing with uploading and downloading autocad files in laravel????
Dushyantsinghds 2021-02-05 20:57:51
Anyone need microsoft certification voucher?
imhajiiii 2021-02-05 22:16:17
kuzmich321 2021-02-02 14:58:29
Session

soory i can message to you pv

Waxikevin 2021-02-05 22:42:16
Got a question
I need to restrict access to blocked or banned accounts where they have a value of 1 and use this restrict them how can I do this….I am using laravel ui as my login package
Waxikevin 2021-02-05 22:42:49
laravel_discuss-69371.jpg
This is attribute
Waxikevin 2021-02-05 22:43:45
laravel_discuss-69372.jpg
This is the current logic but still the blocked user gets logged in
Batu157 2021-02-05 23:00:37
Waxikevin 2021-02-05 22:42:49
This is attribute

there’s something easier hold a second

Batu157 2021-02-05 23:03:01
Waxikevin 2021-02-05 22:43:45
This is the current logic but still the blocked user gets logged in

laravel_discuss-69374.jpg

Batu157 2021-02-05 23:03:11
copy that in your LoginController
Batu157 2021-02-05 23:06:06
in your case use 0 instead of “N”
Waxikevin 2021-02-05 23:07:51
Thanks …let me try this
Batu157 2021-02-05 23:40:40
Waxikevin 2021-02-05 23:07:51
Thanks …let me try this

did it work?

Waxikevin 2021-02-06 00:00:29
Worked thanks bud 👍👍
justine_chacko 2021-02-06 04:00:28
I disabled register button on click using js. But it renabled on submit after validation check. Means button was active when data store. My data store need more time, during that time button is in enabled state. Any other way to disable button not only upto validatiin but upto data store. Any controller method?
|