company_controller extends controller
Public SDK Controller.
Extend this class to implement HTTP controllers in your plugin while benefiting from the framework routing and middleware lifecycle.
Table of Contents
Properties
- $admin_section : string
Methods
Properties
$admin_section
protected
string
$admin_section
= 'middagcompany'
Methods
create()
public
create([mixed $id = 0 ]) : Response
Parameters
- $id : mixed = 0
Attributes
- #[Route]
- $path: '/company/create'
- $name: 'create_index'
- $methods: ['GET', 'POST']
Return values
Responseedit()
public
edit([mixed $id = 0 ]) : Response
Parameters
- $id : mixed = 0
Attributes
- #[Route]
- $path: '/company/edit/{id}'
- $name: 'company_edit'
- $methods: ['GET', 'POST']
Return values
Responseindex()
public
index() : Response
Attributes
- #[Route]
- $path: '/company'
- $name: 'company_index'
- $methods: ['GET']