towhid

towhid

Member Since 3 Years Ago

Bangladesh

Experience Points
10,740
Total
Experience

4,260 experience to go until the next level!

In case you were wondering, you earn Laracasts experience when you:

  • Complete a lesson — 100pts
  • Create a forum thread — 50pts
  • Reply to a thread — 10pts
  • Leave a reply that is liked — 50pts
  • Receive a "Best Reply" award — 500pts
Lessons Completed
18
Lessons
Completed
Best Reply Awards
0
Best Reply
Awards
  • start-engines Created with Sketch.

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • first-thousand Created with Sketch.

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • 1-year Created with Sketch.

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • 2-years Created with Sketch.

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • 3-years Created with Sketch.

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • 4-years Created with Sketch.

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • 5-years Created with Sketch.

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • school-session Created with Sketch.

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • welcome-newcomer Created with Sketch.

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • full-time-student Created with Sketch.

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • pay-it-forward Created with Sketch.

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • subscriber-token Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer-token Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • lara-evanghelist Created with Sketch.

    Laracasts Evangelist

    Earned if you share a link to Laracasts on social media. Please email [email protected] with your username and post URL to be awarded this badge.

  • chatty-cathy Created with Sketch.

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • lara-veteran Created with Sketch.

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • 10k-strong Created with Sketch.

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • lara-master Created with Sketch.

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • laracasts-tutor Created with Sketch.

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • laracasts-sensei Created with Sketch.

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • top-50 Created with Sketch.

    Top 50

    Earned once your experience points ranks in the top 50 of all Laracasts users.

Level 3
10,740 XP
Jan
16
1 week ago
Activity icon

Replied to How To Validate A Laravel Form Using JQuery Ajax

HEllo @signar ,

i have one issue , if my data is exist its show perfect , but if my data is not exist ,. its also show validation error show .. please make sure how to do solve that ? thank you

Dec
04
1 month ago
Activity icon

Replied to NEXT PREVIOUS Functionality In Single Page View And Going To Next And Previous Item When I Want .

Dear brother @jlrdw

you are too much helpful person . i know that i will follow your instruction as mu local any project then i will understand its solve my problem or not .. give me time . i will update soon thank you after next 2nd week because now time the feature developing pause . thank you

Activity icon

Replied to NEXT PREVIOUS Functionality In Single Page View And Going To Next And Previous Item When I Want .

Thanks @snapey for full support from you ,. but bad news is when i am trying to multi pagination in my project its so complex because of already 80 % user panel user profile Details ... i f change i cannot fix out easily ... that's why now its pause this feature . i will try again .. next 2nd week ,

Dec
02
1 month ago
Activity icon

Replied to How To Clear Config Cache Data From Route In Laravel 5.5

php artisan cache:clear;
php artisan config:clear;
php artisan route:clear;
php artisan view:clear;

if you want you can clear , i hope everything will be fine . thank you @chitrasen

Activity icon

Replied to NEXT PREVIOUS Functionality In Single Page View And Going To Next And Previous Item When I Want .

Brother @jlrdw

does ver 6 now support paginate for collections.

i have 5.8 version of laravel , and one thing i don't understand your reference link code how to do ?

/**
  * Gera a paginação dos itens de um array ou collection.
  *
  * @param array|Collection      $items
  * @param int   $perPage
  * @param int  $page
  * @param array $options
  *
  * @return LengthAwarePaginator
  */
public function paginate($items, $perPage = 15, $page = null, $options = [])
{
    $page = $page ?: (Paginator::resolveCurrentPage() ?: 1);
    $items = $items instanceof Collection ? $items : Collection::make($items);
    return new LengthAwarePaginator($items->forPage($page, $perPage), $items->count(), $perPage, $page, $options);
}

how to do use ? where i can make previous and next link how ? can i use for-each loop in my single profile ??

Activity icon

Replied to NEXT PREVIOUS Functionality In Single Page View And Going To Next And Previous Item When I Want .

@snapey you said

you can use regular paginate With page size of 1 .

but how to do how can please give me example code or give me practical code .

Activity icon

Replied to In This Forum How To Post Details With Image

Yes i will follow - wait for my - update reply their for my other post @jlrdw

Activity icon

Started a new Conversation In This Forum How To Post Details With Image

how to image add in my details here

Dec
01
1 month ago
Activity icon

Replied to NEXT PREVIOUS Functionality In Single Page View And Going To Next And Previous Item When I Want .

hi , @jlrdw

no one understand my post ?? no one ? is this wrote hard word or hard think ?? i don't believe no one understand my question , how much details i share with you ?

its simple -- NEXT and Previous link in single page --- blade . when i click next then move next item if i want i can move previous item also .

this i want - if you don't understand then ask me question what you want to know from me ?

Activity icon

Replied to Laravel Intervention Image GD Library Not Support As Like Feature

but i want to resolution control in run time selected criteria

Activity icon

Started a new Conversation NEXT PREVIOUS Functionality In Single Page View And Going To Next And Previous Item When I Want .

i have many kind of collection , my favorite list, who favorite me list , my contact pick list , who contact me list . contact trashed list , favorite trash list , many kind of and difference difference type of collections.

now imagine i have 5 items record set in any collection's list Order by date DESC , collections = [ 4,7,9,2,12],

now when i click 7th item then show single details about 7th item .there are two button available

NEXT and PREVIOUS

when i click Next button then show 9th item single page and details about 9th item , and if i click again next Button in 9th number single item page then show 2nd item single page , in this moment if i think i am going to previous item then click previous button and go to 9th number item single page again ....

i hope you are all understand my problem . please suggest me about this functionality .

please guide me practically bu some code of suggestion . if any kind of quarry please ask me -

thank you

Nov
28
1 month ago
Activity icon

Replied to Next Previous Profile In Single Profile View

@tisuchi hi

in this setuation i found one solution but dont know how long run my this thing . but J i think i can use helper function for this thing .. i follwed this link https://laracasts.com/discuss/channels/general-discussion/best-practices-for-custom-helpers-on-laravel-5?page=1#reply-28978

Nov
27
1 month ago
Activity icon

Replied to Next Previous Profile In Single Profile View

yes , i know brother . but what can i do my exiting project running this application architecture plan . i just followed existed.

but what i do now ? record set how to keep my single profile view - ? please read my problem again if you help m some thing then really help my Task . in this laracasts video tutorial has no video in this topics . (record set view with previews next ) and centrally variable collect difference difference - controller

Activity icon

Replied to Next Previous Profile In Single Profile View

@tisuchi Hi , This is my problem scenario :

i have one controller name userprofile controller here i call method name index() and this is my single profile view controller

this is my single profile route

Route::get('user/user-profile-view/{id}', 'User\[email protected]');

i have many kind of record set - like .

contact list # proposal list # favorite list # trash list #all user list # active user list

so when record list show then click single profile view button . when action button click

 <a href="{{ url('user/user-profile-view',$userInfo->user_id) }}">

there are many different type record set for click single view profile ...

in this moment i want this previous and next record .

its good news i follow your instruction and complete next previous issue . but new thing is , how to do for all kind of different different type record set from different different controller .

now i am direct call all variable from userprofile controller

that's why arise new issue if i have record set for one quarry contact list controller then my previous and next data show ... but if some one try to another single page from other controller like favorite controller then show

Trying to get property 'id' of non-object

this is my quarry

 $userID =  ContactRequest::where('contact_receiver_user_id', $id)->where('mode', 1)->where('contact_request.contact_sender_user_id', auth()->user()->id)->select('id')->first()->id;

        //    dd($userID);

        $next = ContactRequest::join('user_infos', 'user_infos.user_id', 'contact_request.contact_receiver_user_id')
            ->where('contact_request.contact_sender_user_id', auth()->user()->id)
            ->whereIn('contact_request.contact_receiver_user_id', [DB::raw("SELECT id FROM active_users_id")])
            ->where('mode', 1)
            ->where('contact_request.id', '<', $userID)
            ->orderBy('contact_request.contact_date', 'desc')
            ->first();



        $previous = ContactRequest::join('user_infos', 'user_infos.user_id', 'contact_request.contact_receiver_user_id')
            ->where('contact_request.contact_sender_user_id', auth()->user()->id)
            ->whereIn('contact_request.contact_receiver_user_id', [DB::raw("SELECT id FROM active_users_id")])
            ->where('mode', 1)
            ->where('contact_request.id', '>', $userID)
            ->orderBy('contact_request.contact_date', 'desc')
            ->first();

        // dd($previous);

        $first = ContactRequest::join('user_infos', 'user_infos.user_id', 'contact_request.contact_receiver_user_id')
            ->where('contact_request.contact_sender_user_id', auth()->user()->id)
            ->whereIn('contact_request.contact_receiver_user_id', [DB::raw("SELECT id FROM active_users_id")])
            ->where('mode', 1)
            ->orderBy('contact_request.contact_date', 'desc')
            ->first();

        $last = ContactRequest::join('user_infos', 'user_infos.user_id', 'contact_request.contact_receiver_user_id')
            ->where('contact_request.contact_sender_user_id', auth()->user()->id)
            ->whereIn('contact_request.contact_receiver_user_id', [DB::raw("SELECT id FROM active_users_id")])
            ->where('mode', 1)
            ->orderBy('contact_request.contact_date', 'desc')
            ->get()
            ->last();


its error for this code

 $userID =  ContactRequest::where('contact_receiver_user_id', $id)->where('mode', 1)->where('contact_request.contact_sender_user_id', auth()->user()->id)->select('id')->first()->id;

how to condition use for this quarry ?

or do you have others way to solve this kind problem-

this is my blade next previous action button

  <ul class="pagination pull-right profile_pag">
@if($first->contact_receiver_user_id != $id)
<li>
 <a class="btn btn-circle btn-xs" href="{{url('user/user-profile-view',$first->contact_receiver_user_id)}}">
<i class="fa fa-angle-left"></i> First
 </a>
</li>
@endif
@if(!empty($previous->contact_receiver_user_id))
<li>
<a class="btn btn-circle btn-xs" href="{{url('user/user-profile-view',$previous->contact_receiver_user_id)}}">
<i class="fa fa-angle-left"></i> Prev
</a>
</li>
@endif
@if(!empty($next->contact_receiver_user_id))
<li>
<a class="btn btn-circle btn-xs" href="{{url('user/user-profile-view',$next->contact_receiver_user_id)}}">
 Next<i class="fa fa-angle-right"></i>
</a>
</li>
  @endif
  @if($last->contact_receiver_user_id != $id)
 <li>
 <a class="btn btn-circle btn-xs" href="{{url('user/user-profile-view',$last->contact_receiver_user_id)}}">
 <i class="fa fa-angle-right"></i> Last
 </a>
</li>
  @endif
 </ul>

thank you

Nov
26
2 months ago
Activity icon

Replied to Next Previous Profile In Single Profile View

Yes its Work its 100 Work :) thanks my big brother :) , but i have one another question which one i share with you

other things i have many kind of record set for difference type of record collection .

how to centrally this ? or every record collection depend s on every difference quarry for this single profile view - like

1# my contact list some record list collection 2# my proposal list record list collection 3# my search list record list collection 4# [one important thing i ave many type of search form which one get collect data and through different different search pagination ] - so whats i do ? centrally dynamic quarry or single single different type of quarry for all single profile view page .

thank you @tisuchi

Activity icon

Started a new Conversation Next Previous Profile In Single Profile View

scenario : i have a result set for 20 profile , if i click then single profile view show . now i want to next profile and previews profile view button . when i click next button then go next profile in my result set collection by descending wise data .

i don't understand how to get next id and previews id in my profile view blade , please help me . thank you

if any kind of quarry please ask me - then i will discuss details .

as like i have contact list when i click then show 4 record descending wise . if i click one contact profile then show one single page , and now i want to next profile view out of 4 descending wise . so how to to ? that ?

i have contact profile controller where i collect my contact list collection , and my user profile controller for single profile view page .. . and other things i have many kind of record set for difference type of record collection .

so how to do and what the procedure in laravel for next previous profile view

Nov
08
2 months ago
Activity icon

Replied to Laravel Intervention Image GD Library Not Support As Like Feature

@Snapey Please hep me i need this Solve Thank you

Activity icon

Replied to Help Me In Foreach Loop Scope Of Variable With Redirect To View.

user this code this file app/Providers/AppServiceProvider.php


public function boot()
{
   // add this
$referral_user_2 = ReferralUser::where('referral_id' , $first_referral->user_id)->where('status' ,1)->get();
    view()->share('referral_user_2',$referral_user_2);
}

try this one

Nov
05
2 months ago
Activity icon

Replied to Laravel Intervention Image GD Library Not Support As Like Feature

OK - understand your point ,thanks for suggestion @maverickchan

Activity icon

Replied to Laravel Intervention Image GD Library Not Support As Like Feature

hello , thanks for your Message , i don't understand what are you saying ? thanks @maverickchan

Activity icon

Replied to Laravel Intervention Image GD Library Not Support As Like Feature

hello , this reference link show me how to upload time image size resize but i want to know when show time in blade then show my selected size like -

my profile image upload size 145 height , but when show my admin panel all of user details then show time profile image size 45 , and the image size not crop or resize before just view page load my selected size that's it

if i download then file then size is 45 height and image size also less then original size ..

i don't want to save any selected size just save my store only original size , but Show time all list just 45 height and if some one download this image then show 45 height with size ration Thank you @nakov

Activity icon

Replied to Laravel Intervention Image GD Library Not Support As Like Feature

Thanks for your Reply @nakov Could you please explain the process of work GD library in laravel project or any reference where i follow - the instruction and solve my problem .

IS this right way to code structure for GD library work which one i show you ?

like think this scenario : when i declare the size of image in controller the image show in my view page those sizes . not original size which one i uploaded before the image for my profile picture -

this library need because my site load badly for long time for a page load

if i can use this library i think the loading time much less Thanks again

Nov
04
2 months ago
Activity icon

Started a new Conversation Laravel Intervention Image GD Library Not Support As Like Feature

this is my direct route in web.php file

Route::get('userimage/{img}/{h}/{w}',function($img, $h=60, $w=60){
   return \Image::make(public_path("/storage/users/images/".$img))->resize($h, $w)->response('jpg');
});

ths is my blade template

<img src="{!! url('storage/users/images', [$usergallery->image_url]) !!}"
                                         class="img-responsive" alt="">

when iam trying to resize my image load the page then its not work , not error also , if any ony who did complete this library in laravel perfectly please inform me its really help me complete my task . thank you

Oct
28
2 months ago
Activity icon

Replied to Mark As Read A Specific Notification In Laravel Notifications

ok after this instruction try i will inform you thank you

Activity icon

Started a new Conversation Mark As Read A Specific Notification In Laravel Notifications

when i click the who notification show and my notification box is empty , but i want to se if i click selected notification then only mark as read this notification .

but probelm is i dont underatnd how to do this ? please help m eout this problem ..

thank you

Oct
14
3 months ago
Activity icon

Replied to Laravel Collective Form Value Select From Database And Show Others Value Name Problem

DB data not show when i am select the Value in drop down list

Activity icon

Started a new Conversation Laravel Collective Form Value Select From Database And Show Others Value Name Problem

this is my another service provider code

        if (Schema::hasTable('registration_fields')) {
            $marital = RegistrationField::where('slug', '=', 'maritual_status')->first();
            $maritals = RegistrationFieldValue::where('registration_field_id', '=', $marital->id)->select([
                'id', 'value_name', 'value_id'
            ])->get();
            View::share('maritals', $maritals);
        }

this is my library code where i get for marital status value

    public static function getMaritalStatusList()
    {
        $slug = RegistrationField::where('slug', '=', 'maritual_status')->first();
        $marital = RegistrationFieldValue::where('registration_field_id', '=', $slug->id)->pluck('value_name', 'value_id');
        // array_add($marital, "", "Maritual Status");
        return $marital;
    }

this is my serviceprovider code

        Form::macro('selectMaritalStatus', function ($name, $selected = null, $options = []) {
            $marital = \App\Libraries\RegistrationfieldLibrary::getMaritalStatusList();
            return Form::select($name, $marital, $selected, $options);
        });

this is my controller collection

      $users = Auth::user();

this is my relation code

  public function user_info()
    {
        return $this->hasOne('App\UserInfo', 'user_id', 'id');
    }

this is my Collective form code

{!! Form::selectMaritalStatus('marital_status', [$marital->value == 2 ? 'selected' : ''], ['class'=>'form-control', 'id'=>'marital_status']) !!}

form select code

@foreach($maritals as $marital)
 @if($users->user_info->user_marital_status == $marital->value_id)
 {!! Form::select('marital_status',[$marital->value_name], ['class'=>'form-control', 'id'=>'marital_status']) !!}
@endif
@endforeach

please help me ..

Oct
07
3 months ago
Activity icon

Replied to Same Data Show In Foreach Loop How To Unique Data Show In Blade ?

No i just collect data from Database and data save as like my requirement - you just tell me - if any function laravel or any other process to show unique value ?

after googling i try this kind of function but not understand why not show output accurately.

unique(),
distinct()
pluck()
Activity icon

Started a new Conversation Same Data Show In Foreach Loop How To Unique Data Show In Blade ?

@foreach($religions as $religion)
@if($religion->value_id == $user->user_info->user_religion)
{{$religion->value_name}}
@endif
@endforeach

here is show three times show data

Here is  my data  table value 
column name 
valuename, value_id 
muslim => 1, 
buddhist => 2, 
hindu ] => 3;
muslim = > 1,
hindu => 3,

checking value_id show value name     , 

i need answer only muslim  when value id match 1 
Activity icon

Replied to Big Project LARAVEL MIX Problem

BTW this is unsolved problem , i just avoid this issue . thanks all

Sep
09
4 months ago
Activity icon

Replied to Big Project LARAVEL MIX Problem

hmm this is not free only this video --- and its not clearly understand in this video

Sep
07
4 months ago
Activity icon

Replied to Big Project LARAVEL MIX Problem

Sorry for late reply , i want to share my project senario .

i wan to use mix but there are three types css and js one is globally second is panel wise public panel , user panel , admin panel , and third is page wise css and js , i cannot understand how to use by mix , because if i use globally then ok all are supported same for full project but i don't know how to use mix for panel wise when user panel hit then use selected css - in mix .... am i make you understand ? @bobbybouwmann

Sep
04
4 months ago
Activity icon

Replied to Big Project LARAVEL MIX Problem

@jlrdw

Guys, I managed to figure it out. I am coming from Yii2 where you have frontend and backend directories, and everything is split. I've always created a new subdomain for the backend, which I did now as well. That's why the root was public/admin. Now I've just created a prefix 'admin' instead of a subdomain and everything works perfectly.

This is not help full - because i have one -domain and everything work single domain not sub domain -

Sep
02
4 months ago
Activity icon

Replied to Big Project LARAVEL MIX Problem

Hi , thanks for your reply - is it possible compiled separately for separate panel ? like when i hit admin panel then admin template css and js load or work -- is this possible in web pack mix .

i tried last days in one combined but its not work - i just want to know my project situation wise can i use webpack mix use in laravel ? thats is thank you

Sep
01
4 months ago
Activity icon

Started a new Conversation Big Project LARAVEL MIX Problem

i have a scenario :

my project has 3 part layout Design -

  1. Front End
  2. User panel
  3. Admin Panel

for that i have Global css typeof panel CSS and Page wise individually internally CSS

for this reason i want to use laravel mix == but my question is if i all css [global + panel wise ] is combine in laravel webpack mix then its possible ?

and mu all of js can i use webpack mix ..

and how do i use image which one use project

Aug
27
4 months ago
Activity icon

Replied to Multi Auth Sytem Log Out Problem

OK its work perfectly - my last query is if i want to use two type auth table user and admin , and i want to use two login panel , but if any type auth person logged in no one can browse others auth access , like : i have one user logged in user panel in this time any admin or super admin hit this login page then redirect auto my user panel . please help m ,,,,eeee

Aug
11
5 months ago
Activity icon

Replied to Custom Create Route For A Specific Resource

just over right the code= the route code

Activity icon

Replied to Multi Auth Sytem Log Out Problem

@jlrdw

Edit: to add I am still confused why you want an admin and a user logged in at the same time on the same computer.

ok i forget it for same login both in same browser ..

BTW tell one thing i have Two guard one is web another id admin - can any view section show for check guard type ?

@if(Auth::gurad('admin'))
<a href="{{route('button.one')}}">button one </a>
@else
 <a href="{{route('button.two')}}">button two  </a>
@endif

is it work for guard type check process ?

Aug
10
5 months ago
Activity icon

Replied to Multi Auth Sytem Log Out Problem

@jlrdw

The logged in user can be stored in the same table. That's what the role is for.

i understand this thing which one you suggested : for single table one extra field where i use role type or admin type .. and i also know how to check for difference role type view section lik =e example

@if(Auth::user()->roleType == 'admin')
<a href="{{route('admin.logout')}}">admin logout </a>
@else
 <a href="{{route('logout')}}">user log out </a>
@endif

but my question is how to logout button show fro check system when i used multi type guard for multi table like i have two type auth guard one is default web and another id my customize Auth guard admin

so to do that please help me out , if its not possible for builtin auth by any overweight system then how to do ? thank you

Activity icon

Replied to Multi Auth Sytem Log Out Problem

@snapey

If this is the case, thats a really dumb solution. Why would you allow a user to login twice in the same browser? Thanks for your Reply = i am just following one video from you tube - where show how to make multi Auth system , so every thing is ok. login panel multi type . Auth type multi type depend on guard type ... same time browser login in multi panel . now i want to know i have now one Logout button

route('logout')

if i logout then both panel also logout - from browser ..

bu ti want when admin logout from only admin panel and if user want to logout then only logout from user panel .. so i want to know first thing , if i want to show guard wise how to code for check guard type and secondly how to do this by multi type logout system thank you

Aug
09
5 months ago
Activity icon

Replied to Multi Auth Sytem Log Out Problem

@jlrdw

Brother do you understand what i want to do ? == please check my last comment about my view things after that then i am not using route url then how and where i do that ?

Activity icon

Replied to Multi Auth Sytem Log Out Problem

@miaababikir

but i have same problem still because i create this route as like your instructon

Route::post('admin-logout', 'Admin\[email protected]')->name('admin.logout');

and in login controller i add this code

    public function adminLogout(Request $request)
    {
        $this->guard('admin')->logout();

        $request->session()->invalidate();

        return $this->loggedOut($request) ?: redirect('/admin-login');
    }

but now think i ahve two button one is user log out and other is admin log out two route two method

like


<a href="{{route('logout')}}">user log out </a>
<a href="{{route('admin.logout')}}">admin logout </a>

but now show all button i want to view button only guard wise - if logged person user auth then show user logout button if logged user person admin then show admin log out

how to check , i hope you understand my quarry thank you

Activity icon

Started a new Conversation Multi Auth Sytem Log Out Problem

Hi , i am use here two type Auth Admin and User , i use two guards and two providers

    'guards' => [
        'web' => [
            'driver' => 'session',
            'provider' => 'users',
        ],

        'admin' => [
            'driver' => 'session',
            'provider' => 'admins',
        ],

        'api' => [
            'driver' => 'token',
            'provider' => 'users',
            'hash' => false,
        ],
    ],

  'providers' => [
        'users' => [
            'driver' => 'eloquent',
            'model' => App\User::class,
        ],

        'admins' => [
            'driver' => 'eloquent',
            'model' => App\Admin::class,
        ],

        // 'users' => [
        //     'driver' => 'database',
        //     'table' => 'users',
        // ],
    ],


    'passwords' => [
        'users' => [
            'provider' => 'users',
            'table' => 'password_resets',
            'expire' => 60,
        ],

        'admins' => [
            'provider' => 'admins',
            'table' => 'password_resets',
            'expire' => 60,
        ],
    ],

i am using built in Auth system , and overright the Another auth guard , this is my admin login controller

    public function __construct()
    {
        $this->middleware('guest:admin')->except('logout');
    }
    /**
     * Show the application's login form.
     *
     * @return \Illuminate\Http\Response
     */
    public function showLoginForm()
    {
        return view('admin.auth.login');
    }

    protected function guard()
    {
        return Auth::guard('admin');
    }

this is my guest -redirectauthenticated middle ware

    public function handle($request, Closure $next, $guard = null)
    {
        switch ($guard) {
            case 'admin':
                if (Auth::guard($guard)->check()) {
                    return redirect('admin/home');
                }
                break;
            default:
                if (Auth::guard($guard)->check()) {
                    return redirect('/home');
                }
                break;
        }

        return $next($request);
    }

this is my handle .php file code

protected function unauthenticated($request, AuthenticationException $exception)
    {
        if ($request->expectsJson()) {
            return response()->json(['error' => 'unauthenticated.'], 401);
        }
        $guard = array_get($exception->guards(), 0);
        switch ($guard) {
            case 'admin':
                $login = 'admin.login';
                break;
            default:
                $login = 'login';
                break;
        }
        return redirect()->guest(route($login));
    }

this is my Route file

Auth::routes();

Route::get('/', function () {
    return view('welcome');
});

Route::get('/home', '[email protected]')->name('home');

Route::get('admin/home', '[email protected]');

Route::get('admin', 'Admin\[email protected]')->name('admin.login');
Route::post('admin', 'Admin\[email protected]');

Route::post('admin-password/email', 'Admin\[email protected]')->name('admin.password.email');
Route::get('admin-password/reset', 'Admin\[email protected]')->name('admin.password.request');

Route::post('admin-password/reset', 'Admin\[email protected]');
Route::get('admin-password/reset/{token}', 'Admin\[email protected]')->name('admin.password.reset');

this is y app file for layout master page

<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!-- CSRF Token -->
    <meta name="csrf-token" content="{{ csrf_token() }}">

    <title>{{ config('app.name', 'Laravel') }}</title>

    <!-- Scripts -->
    <script src="{{ asset('js/app.js') }}" defer></script>

    <!-- Fonts -->
    <link rel="dns-prefetch" href="//fonts.gstatic.com">
    <link href="https://fonts.googleapis.com/css?family=Nunito" rel="stylesheet">

    <!-- Styles -->
    <link href="{{ asset('css/app.css') }}" rel="stylesheet">
</head>
<body>
    <div id="app">
        <nav class="navbar navbar-expand-md navbar-light bg-white shadow-sm">
            <div class="container">
                <a class="navbar-brand" href="{{ url('/') }}">
                    {{ config('app.name', 'Laravel') }}
                </a>
                <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="{{ __('Toggle navigation') }}">
                    <span class="navbar-toggler-icon"></span>
                </button>

                <div class="collapse navbar-collapse" id="navbarSupportedContent">
                    <!-- Left Side Of Navbar -->
                    <ul class="navbar-nav mr-auto">

                    </ul>

                    <!-- Right Side Of Navbar -->
                    <ul class="navbar-nav ml-auto">
                        <!-- Authentication Links -->
                        @guest
                            <li class="nav-item">
                                <a class="nav-link" href="{{ route('login') }}">{{ __('Login') }}</a>
                            </li>
                            @if (Route::has('register'))
                                <li class="nav-item">
                                    <a class="nav-link" href="{{ route('register') }}">{{ __('Register') }}</a>
                                </li>
                            @endif
                        @else
                            <li class="nav-item dropdown">
                                <a id="navbarDropdown" class="nav-link dropdown-toggle" href="#" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" v-pre>
                                    {{ Auth::user()->name }} <span class="caret"></span>
                                </a>

                                <div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown">
                                    <a class="dropdown-item" href="{{ route('logout') }}"
                                       onclick="event.preventDefault();
                                                     document.getElementById('logout-form').submit();">
                                        {{ __('Logout') }}
                                    </a>

                                    <form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
                                        @csrf
                                    </form>
                                </div>
                            </li>

                        @endguest
                        
                    </ul>
                </div>
            </div>
        </nav>

        <main class="py-4">
            @yield('content')
        </main>
    </div>
</body>
</html>

if i want i can login two user same browser at a time . but

now i want to logout - but i don't understand how to manage built in logout process for my all guard admin and user also

but now problem is when i click log out - its log out all user type , user and admin also ..

i want if i am user panel logout button rout to user logout method and if i am admin panel then only admin logout --

please help me expert Brother thank you