- Added standard Laravel directory structure and configuration. - Included Svelte and Tailwind configuration for the admin interface. - Added core PHPUnit and testing scripts.
27 lines
531 B
PHP
27 lines
531 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\Admin\Forms;
|
|
|
|
use App\Http\Controllers\Controller;
|
|
use App\Models\Form;
|
|
use Illuminate\View\View;
|
|
|
|
/**
|
|
* Controller for showing the form edit UI.
|
|
*/
|
|
class FormEditController extends Controller
|
|
{
|
|
/**
|
|
* Show the form for editing the specified form.
|
|
*
|
|
* @param \App\Models\Form $form
|
|
* @return \Illuminate\View\View
|
|
*/
|
|
public function __invoke(Form $form): View
|
|
{
|
|
return view('admin.forms.editor', [
|
|
'form' => $form,
|
|
]);
|
|
}
|
|
}
|