1 month ago

Laravel Select Option List on change to route pages

Posted 1 month ago by noblemfd

I am working on a project using Laravel-5.8. In my header.blade, I have this dropdownlist:

<form class="form-inline ml-3">
    <div class="input-group input-group-sm">
                  <div class="form-group">
                    <select class="form-control" data-placeholder="Select a State">

I want the dropdownlist on change to route different pages

If Dashboard then display {{ route('hr-default') }}

If Assets then display {{ route('asset-default') }}

If HR then display {{ route('hr-default') }}

How do I achieve this?

Please sign in or create an account to participate in this conversation.