Creating an Admin page

Building a basic administration page with Titan for your extension

Admin Controller

If you require an administration side to the extension then the AdminController is needed. Simply create a file called AdminController in the root

namespace Extensions\Titan\HelloWorld;
use App\Http\Controllers\Controller;
use Illuminate\View\View;
class AdminController extends Controller {
public function index(): View {
return view('hello-world::index');

This allows entry to display a settings page in the administration panel, as you may have noticed, we namespaced the hello-world view so we can easily call it via hello-world::template

index() must always return a View.