Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

528
Views
Laravel 8-Can i add data into form inputs without JavaScript?

I got data from Restapi and These data obtained controller class . I want to insert, update, delete data with buttons on click button. I want to use 4 button in same tab so I need to do them dynamically. Can I do it without using JavaScript ?

my getHost function:

public function getHost(){

        $enpoint="api/hosts/getHost";

        $api= new ApiAuthController();
        $url=$api->getUrl();
        $headers=$api->getHeaders();
        $url.=$enpoint;

        $response = Http::withHeaders($headers)->post($url,[
            
            'id'=>"11",
            'hostname'=>"",
            'address'=>"",
            'mail'=>"",
            'web'=>"",
            'owner'=>"",
            'contactperson'=>"",
            'mapinfo'=>"",
            'nimage'=>"",
            'description'=>"",
            'telephone'=>"",
            
             
        ]);

        $decode=json_decode( $response->getBody());
         $response=$decode->responseData;
        $data['hostname']=$response->hostname;
        $data['address']=$response->address;
        $data['mail']=$response->mail;
        $data['web']=$response->web;
        $data['owner']=$response->owner;
        $data['contactperson']=$response->contactperson;
        $data['mapinfo']=$response->mapinfo;
        $data['nimage']=$response->nimage;
        $data['description']=$response->description;
        $data['telephone']=$response->telephone;

      
       

        return view('pages.host',$data);
}

enter image description here

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!