mardi 18 août 2020

How to embed forms to another website using laravel

I have a two projects using laravel framework. I have a form for project 1 that I want to embed on my project 2.

Here is my FormController in project 1

public function show(Form $form)
{
  
    return view('formbuilder.render', compact('form'))->render();
}

View on project 2 where I want to embed the form on project 1

@extends('layouts.app')
@section('content')
   div class="card rounded-0">
      <div class="card-body">
          <script type="text/javascript" src="https://route/for/first-project-form"></script>
      </div>
   </div>
                        
@endsection

I want to imitate how jot form works. https://www.jotform.com/help/34-Embedding-a-Form-to-a-Web-Page.

How do I achieve this?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire