Please tell me where I get best tutorials or best material for laravel framework?

|
ktmsulaim 2020-07-26 15:52:23
laravel_discuss-46265.jpg
Db with data
Siberfx 2020-07-26 15:52:57
Do you know how to use tinker ?
ktmsulaim 2020-07-26 15:53:06
Yes
Siberfx 2020-07-26 15:53:48
Go for it, test the condition with slug as static to see what it returns
ktmsulaim 2020-07-26 15:54:02
Gets result
Siberfx 2020-07-26 15:54:20
So your regex on route blocks something
ktmsulaim 2020-07-26 15:54:35
laravel_discuss-46271.jpg
Tinker
ktmsulaim 2020-07-26 15:55:07
Siberfx 2020-07-26 15:54:20
So your regex on route blocks something

Grouped route has the problem. Out of it, shows the record as expected

Siberfx 2020-07-26 16:00:29
So the way i guide you, not because i dont know where the problem is, just wanted you to see how to locate error in such cases, where to look, how to check 🙂
ktmsulaim 2020-07-26 16:02:21
Thanks sir, but not fixed yet.
Siberfx 2020-07-26 16:03:27
Your issue can be with the middleware
ktmsulaim 2020-07-26 16:05:15
laravel_discuss-46276.jpg
Middleware
Siberfx 2020-07-26 16:07:09
make it one line
Siberfx 2020-07-26 16:07:37
$available = Language::whereActive(1)->pluck(‘locale’)->toArray();
ktmsulaim 2020-07-26 16:07:47
Ok
Siberfx 2020-07-26 16:08:03
get() you dont need there if you use pluck already
2020-07-26 16:08:37
ktmsulaim 2020-07-26 16:05:15
Middleware

Why don’t you use localization package?! It’s much easier and better.
mcamara/laravel-localization

Siberfx 2020-07-26 16:09:32
I dont use any packages for such 🙂 very simple and basic solution I follow
ktmsulaim 2020-07-26 16:10:32
Is there any way without grouping route?
2020-07-26 16:10:51
ktmsulaim 2020-07-26 16:10:32
Is there any way without grouping route?

I don’t think so.

Siberfx 2020-07-26 16:11:02
laravel_discuss-46288.jpg

ktmsulaim 2020-07-26 16:11:06
Ok, so how to fix?
ktmsulaim 2020-07-26 16:11:59
Siberfx 2020-07-26 16:11:02

Oh, get rid of middleware?

2020-07-26 16:12:14
Siberfx 2020-07-26 16:09:32
I dont use any packages for such 🙂 very simple and basic solution I follow

You may be right, but so many people have worked on this package. Somebody has spent a lot of time on it. Sometimes it’s better to use packages

ktmsulaim 2020-07-26 16:12:17
Siberfx 2020-07-26 16:11:02

It’s clean

Siberfx 2020-07-26 16:13:06
2020-07-26 16:12:14
You may be right, but so many people have worked on this package. Somebody has spent a lot of time on it. Sometimes it’s better to use packages

package dependencies are not making your project better dude 🙂 as long as you have your own simple solutions, why do you still need to use packages to make your app heavy then it is ? 🙂

Siberfx 2020-07-26 16:13:51
well its my opinion ofcourse, I dont judge anyone with that. I prefer not to use unless its needed
2020-07-26 16:16:44
Siberfx 2020-07-26 16:13:06
package dependencies are not making your project better dude 🙂 as long as you have your own simple solutions, why do you still need to use packages to make your app heavy then it is ? 🙂

+1 😉 We usully say: don’t reproduce the wheel twice!
But you’re right, sometiems things are so easy and it doesn’t worth to use a heavy package.

Pro 2020-07-26 16:17:55
2020-07-26 16:12:14
You may be right, but so many people have worked on this package. Somebody has spent a lot of time on it. Sometimes it’s better to use packages

“sometimes”

Siberfx 2020-07-26 16:18:02
as long you are working with ready stuffs, you dont learn how to solve or produce some features. as long as it is not a huge stuff, you can stick with your own skills 🙂
Siberfx 2020-07-26 16:19:52
Siberfx 2020-07-26 16:11:02

this example can be used with a database result, and the query can be cached forever, with an observer on update/create/delete you can just refresh the cached available languages list

Siberfx 2020-07-26 16:20:06
so there are still many options that you can implement 🙂
ktmsulaim 2020-07-26 17:41:21
Siberfx 2020-07-26 16:11:02

Thank you sir, fixed!

Siberfx 2020-07-26 17:41:35
welcome
Ekansh Bihal 2020-07-26 19:28:15
Hello everyone.
Please tell me where I get best tutorials or best material for laravel framework? Guide me.
natghi2010 2020-07-26 19:34:44
Ekansh Bihal 2020-07-26 19:28:15
Hello everyone.
Please tell me where I get best tutorials or best material for laravel framework? Guide me.

google laracasts

Ekansh Bihal 2020-07-26 19:36:21
natghi2010 2020-07-26 19:34:44
google laracasts

Okay sir I am checking this

Ekansh Bihal 2020-07-26 19:44:25
Ekansh Bihal 2020-07-26 19:36:21
Okay sir I am checking this

Thank you sir

MuneerahAsqah 2020-07-26 21:07:12
Hello everyone, Can anybody tell me what is the equivalent to unset($_post) for $request in laravel? I’m new to laravel and I’m trying to add some item, the item inserts to the database just fine, however the post request would still hold the parameters of the old request.
Siberfx 2020-07-26 21:08:16
unset($request->field_name) ? :))
Siberfx 2020-07-26 21:08:59
I dont like racist bot
Siberfx 2020-07-26 21:09:14
there are many different country people.. as I am one of them, so why arabs are not allowed ?
Pro 2020-07-26 21:09:38
same question ?
Siberfx 2020-07-26 21:09:51
sometimes I type here turkish, sometimes russian, so what ?
Pro 2020-07-26 21:11:30
this bot should be deleted
2020-07-26 21:33:44
How do I set the middleware to the user’s lifetime. The user is blocked
Siberfx 2020-07-26 21:35:55
use google translate with your own language dude
Siberfx 2020-07-26 21:36:06
its more understandable can be than this
natghi2010 2020-07-27 01:40:10
anyone know post gres?
oxbir 2020-07-27 02:33:03
Call to a member function extension() on array
|