Anyone ever made a tour and travels website, can you tell me some functions and options in tours and travels provider panel?

|
SureshLaraDev 2021-04-28 19:01:46
laravel_discuss-78494.jpg

SureshLaraDev 2021-04-28 19:02:48
laravel_discuss-78495.jpg

Francio00 2021-04-28 19:21:57
Hi everyone, I need some information: I am working on the login and registration of a site and I would like to add a redirect such that when you try to access via the login page if the username is not among those already registered you have a redirect to the registration page. how can I do?

Of course with php I did it with “if” etc, but on laravel I don’t know where to start.

Prem Soni 2021-04-28 19:23:42
Francio00 2021-04-28 19:21:57
Hi everyone, I need some information: I am working on the login and registration of a site and I would like to add a redirect such that when you try to access via the login page if the username is not among those already registered you have a redirect to the registration page. how can I do?

Of course with php I did it with “if” etc, but on laravel I don’t know where to start.

you can use if in laravel also
you can make a function in controller and inside that function you can use if and all

Francio00 2021-04-28 19:25:23
yes, but when i do this how can i use the function? Where is the “post.php” page for example that i use normally with php?
Prem Soni 2021-04-28 19:26:54
you will find controller
thekiharani 2021-04-28 20:38:16
Can I listen to *creating* and *updating* events in Eloquent Model Observers?
shinejemi 2021-04-28 20:51:10
Anyone ever made a tour and travels website , can you tell me some functions and options in tours and travels provider panel?
simon_an 2021-04-28 21:02:54
thekiharani 2021-04-28 20:38:16
Can I listen to *creating* and *updating* events in Eloquent Model Observers?

Yes

simon_an 2021-04-28 21:03:28
They are not there by default but you can add them on the observer
thekiharani 2021-04-28 21:05:42
OK,

I questioned the reason(s) for omissions. Will try it out

thekiharani 2021-04-28 21:13:18
It works, but not with transactions ($afterCommit = true)

That’s the catch 🤔

DesolatorMagno 2021-04-28 21:33:11
thekiharani 2021-04-28 21:13:18
It works, but not with transactions ($afterCommit = true)

That’s the catch 🤔

Can you explain a little better what you expect?

thekiharani 2021-04-28 21:41:40
DesolatorMagno 2021-04-28 21:33:11
Can you explain a little better what you expect?

OK, here is the thing:

I usually use observers with transactions, so the events will only fire after commit.

So I wanted a way to generate a slug from title in a model, preferably during creating event. But unless the slug is nullable, it will trow an exception coz it will try to save the model before firing any event, so the slug will be null

DesolatorMagno 2021-04-28 21:43:26
There is creating and created
DesolatorMagno 2021-04-28 21:43:52
https://laravel.com/docs/8.x/eloquent#events
DesolatorMagno 2021-04-28 21:44:09
laravel_discuss-78513.jpg

DesolatorMagno 2021-04-28 21:44:55
Besides that, if you want to create a slug there is options
thekiharani 2021-04-28 21:45:10
DesolatorMagno 2021-04-28 21:43:26
There is creating and created

Yes, but provided $afterCommit is set to true, they will all fire after the DB transaction is committed

DesolatorMagno 2021-04-28 21:47:08
https://laravel.com/docs/8.x/eloquent-mutators#defining-a-mutator
DesolatorMagno 2021-04-28 21:50:27
Just in case, can you post a screen shot of the inside of the transaction?
Farkhad 2021-04-28 22:24:09
Hello guys 👋👋 how I can know ‘id’ item after paying?
Farkhad 2021-04-28 22:25:22
Bank gived orderid, but givent other information
Farkhad 2021-04-28 22:26:28
But about order id I can’t find ‘id’ item, because request don’t work
Und3rscore 2021-04-28 22:39:58
Hello guys, i need help with Cors policy, can anyone help me? Also in dm, I need to test it with test-cors.org but idk how to do it
PoojaExperts 2021-04-28 22:47:06
can any one help me to make multistep form in laravel ?

DM me

simon_an 2021-04-28 22:53:40
Und3rscore 2021-04-28 22:39:58
Hello guys, i need help with Cors policy, can anyone help me? Also in dm, I need to test it with test-cors.org but idk how to do it

What is the problem you’re facing?

simon_an 2021-04-28 22:54:42
PoojaExperts 2021-04-28 22:47:06
can any one help me to make multistep form in laravel ?

DM me

You can approach it differently depending on your level of creativity

yewess97 2021-04-28 23:05:46
guys !
what is the best free server choice to deploy laravel project with its mysql database ??
yewess97 2021-04-28 23:06:58
rather than heroku
Acird Burn 2021-04-28 23:29:31
yewess97 2021-04-28 23:05:46
guys !
what is the best free server choice to deploy laravel project with its mysql database ??

Digital Ocean their are servers for $3.50/month

Hayi 2021-04-29 00:50:11
Hello guys please what is the best way to update a Laravel project from one version to another version. I want to migrate from 6 to the latest version
DesolatorMagno 2021-04-29 00:52:17
Best is always hard to say, and it will depend in your budget.
DesolatorMagno 2021-04-29 00:53:23
https://laravelshift.com/

Laravel ShiftLaravelshift
Automated and human services for upgrading, auditing, and testing your Laravel applications.
Hayi 2021-04-29 01:01:49
Wow thanks
|