How can you register another service provider in a service provider?

|
rootkings 2020-12-27 16:05:17
where is your code for check
natghi2010 2020-12-27 16:13:17
laravel_discuss-64326.jpg

natghi2010 2020-12-27 16:13:32
how to auth only these routes?
natghi2010 2020-12-27 16:13:49
evertyhing in the admin group routes
2020-12-27 16:14:09
Add middleware auth
natghi2010 2020-12-27 16:14:28
2020-12-27 16:14:09
Add middleware auth

okay

natghi2010 2020-12-27 16:14:40
was hoping for a simple way
niyazvpp 2020-12-27 16:18:04
natghi2010 2020-12-27 16:13:49
evertyhing in the admin group routes

Chain middleware auth to route group itself!
Quite simple

natghi2010 2020-12-27 16:18:21
niyazvpp 2020-12-27 16:18:04
Chain middleware auth to route group itself!
Quite simple

tried

natghi2010 2020-12-27 16:21:00
niyazvpp 2020-12-27 16:18:04
Chain middleware auth to route group itself!
Quite simple

yeah is easier

natghi2010 2020-12-27 16:21:14
laravel_discuss-64337.jpg

natghi2010 2020-12-27 16:21:36
laravel_discuss-64338.jpg

natghi2010 2020-12-27 16:21:50
it works individually but not on group
niyazvpp 2020-12-27 16:22:04
Route::middleware([‘web’])->group(function () {
//
});
This is the way
niyazvpp 2020-12-27 16:22:16
niyazvpp 2020-12-27 16:22:04
Route::middleware([‘web’])->group(function () {
//
});
This is the way

Example

niyazvpp 2020-12-27 16:22:39
Add to the first
natghi2010 2020-12-27 16:22:46
niyazvpp 2020-12-27 16:22:39
Add to the first

where are you getting this? From the laravel docs?

niyazvpp 2020-12-27 16:22:54
Yeah
natghi2010 2020-12-27 16:23:30
oh i was looking under auth
niyazvpp 2020-12-27 16:23:56
https://laravel.com/docs/8.x/middleware#middleware-groups
niyazvpp 2020-12-27 16:24:17
I am already familiar with…
😂
natghi2010 2020-12-27 16:25:16
i should read the docs like a book one day
niyazvpp 2020-12-27 16:26:50
natghi2010 2020-12-27 16:25:16
i should read the docs like a book one day

Sure… 🤩

natghi2010 2020-12-27 16:27:54
niyazvpp 2020-12-27 16:26:50
Sure… 🤩

laravel_discuss-64353.jpg

natghi2010 2020-12-27 16:28:34
didn’t know this for instance. I make /home the same as /dashboard.
natghi2010 2020-12-27 16:28:48
why you may ask? Because im lazy.😎
Sacsbrainz 2020-12-27 16:41:40
hello am having error
Sacsbrainz 2020-12-27 16:41:54
SQLSTATE[42000]: Syntax error or access violation: 1101 BLOB, TEXT, GEOMETRY or JSON column ‘key’ can’t have a default value
Sacsbrainz 2020-12-27 16:42:20
how can i fix this please
jovialcore 2020-12-27 16:50:55
chiserge 2020-12-23 08:28:30
Hey,

I installed a fresh laravel project on my machine and when I launched, the respond was 500 server error.

Please someone should five me a helping had

Thanks and waiting

Is it on live server you launched?

niyazvpp 2020-12-27 17:03:54
natghi2010 2020-12-27 16:28:48
why you may ask? Because im lazy.😎

Google is the fastest answer provider! 🤪

amirvalhalla 2020-12-27 17:21:42
niyazvpp 2020-12-27 17:03:54
Google is the fastest answer provider! 🤪

So are you register google provider into routeServiceProvider😂😂

Parsa212 2020-12-27 17:24:15
amirvalhalla 2020-12-27 17:21:42
So are you register google provider into routeServiceProvider😂😂

How can you register another service provider in a service provider? Is that possible?

Parsa212 2020-12-27 17:26:51
Ok using $this->app->register method
2020-12-27 17:59:09
natghi2010 2020-12-27 16:23:30
oh i was looking under auth

Are you sure you dint know about it before😋

|