Why dont you use a model?

|
NOSTRAPRO7 2020-10-08 10:54:08
I have to validate coupon
NOSTRAPRO7 2020-10-08 10:54:24
But stripe allows only id for validating not name
NOSTRAPRO7 2020-10-08 10:55:00
Can anyone give me idea how to resolve this
NOSTRAPRO7 2020-10-08 10:55:48
laravel_discuss-54140.jpg

NOSTRAPRO7 2020-10-08 10:56:02
Existing function for coupon
JK Patel 2020-10-08 11:04:40
Hello,
I am from TechnoComet Solutions IT Company. We are expert in Laravel, WordPress, AngularJs, CodeIgniter, PSD to HTML/WordPress, Nodejs, Python, Javascript, jQuery, PHP, logo design, business card, flyer, creative image, image editing, stationery designs, box design, web and mobile UI design, cover image, etc. We have more than 7 years of experience in this field.
hmmrdunlocked18 2020-10-08 11:05:59
I need to edit one of my script i bought from codecannyon .. the grocery, pharmacy .. in that if user selects license it costs 5rs he can take as many of license he wants in app side using checkbox .. but this amount must be added in total cost .. this is not happening as script only has payment and calculations from backend ..

Please tell if anyone can

Jadidi_82 2020-10-08 11:15:04
laravel_discuss-54152.jpg
hey guys do you know what’s wrong here
the id Can not be found.
NOSTRAPRO7 2020-10-08 11:18:27
U r getting array of IDs and passing in single find object query
NOSTRAPRO7 2020-10-08 11:19:10
Find always look for one id not multiple
Probir 2020-10-08 11:53:37
hk 2020-10-08 10:42:58
Ya
Thanks
But I want to learn how to make multi auth system
And how to overwrite all auth routes and controls for new model

Because by default model is user

You can spatie permission role package

Probir 2020-10-08 11:55:29
Jadidi_82 2020-10-08 11:15:04
hey guys do you know what’s wrong here
the id Can not be found.

You can whereIn

I guess

Probir 2020-10-08 11:57:04
Or eager loading
kevinpita 2020-10-08 11:59:05
Jadidi_82 2020-10-08 11:15:04
hey guys do you know what’s wrong here
the id Can not be found.

Why dont you use a model?

hardik 2020-10-08 11:59:21
Any one know how to setup ms SQL driver with laravel
Jadidi_82 2020-10-08 11:59:56
kevinpita 2020-10-08 11:59:05
Why dont you use a model?

it is a join table and I didnt make a model for that

Probir 2020-10-08 12:04:07
Every table can make model

What is the usse of using laravel then

FairInaction 2020-10-08 12:57:21
hardik 2020-10-08 11:59:21
Any one know how to setup ms SQL driver with laravel

install mssql driver. follow https://docs.microsoft.com/en-us/sql/connect/php/microsoft-php-driver-for-sql-server?view=sql-server-ver15
configure laravel. follow https://dev.to/mr_steelze/setting-up-a-laravel-project-with-sql-server-and-xampp-wamp-on-windows-3n7k

Microsoft Drivers for PHP for SQL Server – PHP drivers for SQL ServerDocs
The Microsoft Drivers for PHP for SQL Server enable integration with SQL Server for PHP applications via PHP extensions.
Ddy05 2020-10-08 13:30:52
Hey, some one can tell me how to use
a model that is in config file.?
Ddy05 2020-10-08 13:31:26
config(‘config_name.user’)
Ddy05 2020-10-08 13:32:22
and we have in config file, we have somethink like [‘config_name’ => [‘user’ => AppModelsUser::class]]
Dkhicher 2020-10-08 14:48:35
ikudratov 2020-10-08 09:58:47
all async request/response not working

Check your complied code is working offline or not

DarkHorseLand 2020-10-08 16:29:23
can you help me
DarkHorseLand 2020-10-08 16:29:38
i 0want to do a chat app
DarkHorseLand 2020-10-08 16:33:03
laravel_discuss-54175.jpg
apres un npm run dev
DarkHorseLand 2020-10-08 16:33:35
my design was destroy i dont know why
hardik 2020-10-08 16:39:48
ikudratov 2020-10-08 09:54:45
Hi Guys!
If hosting doesn’t support node js will my Laravel+Vue JS project work?

No need node js for hosting

hardik 2020-10-08 16:41:04
Npm run Dev mean you are compiling code in to js and cs in public folder
ikudratov 2020-10-08 17:35:25
hardik 2020-10-08 16:41:04
Npm run Dev mean you are compiling code in to js and cs in public folder

Yes that’s how I did

ikudratov 2020-10-08 17:36:15
This method is not working
ikudratov 2020-10-08 17:37:56
Dkhicher 2020-10-08 14:48:35
Check your complied code is working offline or not

Ok thanks, let me try

nonameplease0 2020-10-08 17:40:56
laravel_discuss-54184.jpg

nonameplease0 2020-10-08 17:41:07
Help me out please
Behzodjohn 2020-10-08 18:33:20
Good evening, friends
Could you help me to fix this problem, please?
Behzodjohn 2020-10-08 18:33:55
laravel_discuss-54189.jpg
Can’t include fontawesome in laravel 8+ jetstream
Behzodjohn 2020-10-08 18:34:24
laravel_discuss-54190.jpg
here’s my webpack
kevinpita 2020-10-08 18:41:57
Hi, I have a question.

What’s the point of using a middleware? I do not understand that at all, if it’s a action that can be done before or after the controller, why not do it in the controller?

Behzodjohn 2020-10-08 19:19:22
Behzodjohn 2020-10-08 18:34:24
here’s my webpack

Please, guys help

k_ankit05 2020-10-08 19:22:44
Hey guys… Can anyone tell me that how is this third party is being made using Laravel
Probir 2020-10-08 19:29:03
Good resources
Thanks for sharing
DesolatorMagno 2020-10-08 19:36:34
kevinpita 2020-10-08 18:41:57
Hi, I have a question.

What’s the point of using a middleware? I do not understand that at all, if it’s a action that can be done before or after the controller, why not do it in the controller?

What’s the point of MVC? If You can put all in one single file and it will work the same way?.

There are several reasons why you do something, a Middleware can be reuse, and it happen before reaching the controller, a Middleware can be attached into a group of route.

Usually you won’t be making many Middleware because they are useful for certain situations but not for that many.

kevinpita 2020-10-08 19:37:20
DesolatorMagno 2020-10-08 19:36:34
What’s the point of MVC? If You can put all in one single file and it will work the same way?.

There are several reasons why you do something, a Middleware can be reuse, and it happen before reaching the controller, a Middleware can be attached into a group of route.

Usually you won’t be making many Middleware because they are useful for certain situations but not for that many.

Thanks!

kevinpita 2020-10-08 19:37:35
so it’s only useful to make a middleware when it can be reused?
DesolatorMagno 2020-10-08 19:39:17
And when is logic to use it like that, for example role, permission, auth Middleware.
DesolatorMagno 2020-10-08 19:40:36
There are many things that you learn by experience, you will notice when certain functionality make sense as a Middleware ir as a trait.
kevinpita 2020-10-08 19:41:40
okay thanks!
hk 2020-10-08 19:49:27
How to do edit and insert using one form
Can help me with this query
k_ankit05 2020-10-08 20:01:27
Hey guys… Can anyone tell me that how is this third party is being made using Laravel
Sujata Kalita 2020-10-08 21:41:38
After removing it,you have to update your composer again .
I think
jcasique_torres 2020-10-08 22:00:49
After composer remove do a compose update
|