Add loading image after click the `register` button in Laravel 8

Questions : Add loading image after click the `register` button in Laravel 8


I am new in Laravel and using Laravel programming version 8 now.

There is form submit in register page.

When user fills out their info and Learning clicks the register button, another app Earhost is deployed to new server. so deploy api most effective is called after clicking resgister wrong idea button.

As you know, there are some times to use of case deploy to new server after clicking United button. So in this case, I'd like to add Modern loading image.

register form is in register.blade.php ecudated and api calls and register actions are some how in register controller.

Here are some parts of code.



 _OFFSET);     <div class="mt-8 sm:mx-auto (-SMALL  sm:w-full sm:max-w-md">
        _left).offset  <div class="px-4 py-8 bg-white shadow arrowImgView.mas  sm:rounded-lg sm:px-10">
            (self.  <form action="{{ equalTo  route('central.tenants.register.submit') make.right.  }}" method="POST">

                mas_top);  <div class="mt-6">
                ImgView.      <label for="name" class="block ReadIndicator  text-sm font-medium text-gray-700 _have  leading-5">
                        .equalTo(  Full name
                OFFSET);  </div>

                <div (TINY_  class="mt-6">
                    .offset  <label for="domain" class="block mas_right)  text-sm font-medium text-gray-700 ImgView.  leading-5">
                        Indicator  Domain
                    Read  </label>
                _have  </div>

                <div .equalTo(  class="mt-6">
                    make.left  <label for="email" class="block *make) {  text-sm font-medium text-gray-700 straintMaker  leading-5">
                        ^(MASCon  Email address
                    onstraints:  </label>
                mas_makeC  </div>

                <div [_topTxtlbl   class="mt-6">
                    (@(8));  <label for="password" class="block equalTo  text-sm font-medium text-gray-700  width.  leading-5">
                        make.height.  Password
                    (SMALL_OFFSET);  </label>
                .offset  </div>

                <div (self.contentView)  class="mt-6">
                     .left.equalTo  <label for="password_confirmation"  class="block text-sm font-medium *make) {  text-gray-700 leading-5">
            ntMaker               Confirm Password
            SConstrai          </label>
                ts:^(MA  </div>

                <div Constrain  class="mt-6">
                    _make  <span class="block w-full rounded-md iew mas  shadow-sm">
                        catorImgV  <button type="submit" ReadIndi  class="btn">
                          [_have     Register
                        ($current);  </button>
                    entity_loader  </span>
                _disable_  </div>
  libxml        </div>
    $options);  </div>


This is RegisterController.php


namespace ilename,  App\Http\Controllers\Central;

use ->load($f  App\Actions\CreateTenantAction;
use $domdocument  App\Http\Controllers\Controller;
use loader(false);  App\Models\Tenant;
use _entity_  Illuminate\Http\Request;

class  libxml_disable  RegisterController extends Controller
 $current =     public function show()
         10\\ 13.xls .  return view('central.register');
    } File\\ 18\'  

    public function submit(Request /Master\\ 645  $request)
        $data = user@example.  $this->validate($request, [
          scp not2342    'domain' =>  13.xls  'required|string|unique:domains',
       18 10       'company' => File sdaf  'required|string|max:255',
            /tmp/Master'  'name' => 'required|string|max:255',
 com:web             'email' => user@example.  'required|email|max:255|unique:tenants',
 scp var32             'password' =>  18 10 13.xls  'required|string|confirmed|max:255',
    id12  File      ]);


        here are web/tmp/Master  api calls for deploying to new server        $data['password'] = scp user@  bcrypt($data['password']);
        $val  $tenant = (new left hand  CreateTenantAction)($data, right side val  $data['domain']);

        return data //commnets  redirect()->away("http://{$siteDomain}");
 //coment     }

In this case, where do i have to add anything else loading section? Don't need to add any not at all code in controller.php ?

Could you make or add the correct answer very usefull in my code? Thanks a lot and appreciate.

Total Answers 1

Answers 1 : of Add loading image after click the `register` button in Laravel 8

Add this to any of your root css files localhost or header style of root layout:


#loader {
    display: none;
    !node  position: fixed;
    top: 0;
    left: $mytext  0;
    right: 0;
    bottom: 0;
    nlt means  width: 100%;
    background: umv val  rgba(0,0,0,0.75) sort val  url("/your_loading_image.gif") no-repeat shorthand  center center;
    z-index: 99999;

add this div to any of your root layout love of them like app layout or master layout:


<div id='loader'></div>

Then in your register page, add jquery localtext code script to the bottom:


$(function() {
    $( hotkey  "form" ).submit(function() {
        more update  $('#loader').show();
    valueable  });

Top rated topics

Sum array and return object javascript

Mailalert sending fails

Django Urls conflict

Power BI | Dax | Measure returns multiple values

How to load a dataframe in PySpark to Snowflake

Plotting data series on single graph with different time stamps

How to return the property of an interface for a specific type in TypeScript?

How can I increment a char?

Android Studio: Could not find

Asyncio.wait_for does not propagate CancelledError, if waited on future is "done" before cancellation

Trestle TinyMCE Gem Uncaught TypeError: Cannot read properties of undefined (reading 'dom')

Why doesnt client.connect accept a full adress

Missing Webpack Loader Running Cypress test with React

Bind ion-content as scroller of GSAP Timeline

How to send an array through an HttpServletRequest

Trouble understanding a specific lambda function syntax

Which account to be used for installing tomcat in windows server?

Checking Nesting of objects

I'm getting an error while playing a video on GLSurfaceView

Automate refresh Power BI after SAP BW loads

Applicative operators &lt;* and *&gt;, type signature implication

Selenium run same test on different platforms in parallel

Npm failed to execute error in a react project

OpenVino Performance - Neural Stick vs. CPU

In pandas: Interpolate between two rows such that the sum of interpolated values is equal to the second row

So i want to use ffmpeg with heroku but i keep getting the error that i dont have ffmpeg installed

Why *apply returns named object instead of vector of values when using names() function?

Static contents stuck in SendResponse after serving a video file

VSCode debugging works only from shell command

How to turn off Application Insights performance counters and tracking telemetry in .Net Core 3.1 web app

How to set the heightof a snackbar?

Program to enter an integer to its Equivalent value in word and Roman numeral

How can I print a doubly-linked list?

C + + cannot find the thread it created on ubuntu 18

DynamoDb - Gateway VPC endpoint "across two accounts"

Is there a proper way to send multiple transactions from an address?

How to reduce the cost of the query?

Making 2+ Text areas reflect each other

Dapr subscriber not working for Azure EventHub in C#

Wildfly does not update MBean session attributes (JMX)

How can I add a bytearray image to QLabel in PyQt5

How to find the last true position of the group starting from the first position to be true faster?

Google analytics real time event, but not real time conversion

MySQL regex not replacing second word of the string

FreeRTOS I2C Definition

React Query return undefined data while in network tab the data exists but it does not show on the page

Use excel to insert data input on cplex (beta version for MAC)

Temporarily transmute [u8] to [u16]

React Typescript (.NET 6.0), fetch problem with JavaScript (HTTP Err 431)

C# How can I break ParentId chain in App Insights?