Skip to content
Discussion options

You must be logged in to vote

Hey @ericjanofski

To run a custom logic after the page form is submitted. You don't need a custom view.
And... If it's something else you can have it.

Let's see how to customize form submission on PageCrudController of Pagemanager.

  1. Create app/Http/Controllers/Admin/PageCrudController.php
  2. Extend Backpack\PageManager\app\Http\Controllers\Admin\PageCrudController
  3. Add Route::crud('page', 'PageCrudController'); in routes/backpack/custom.php
  4. Use Callbacks of your choice. Example:
<?php

namespace App\Http\Controllers\Admin;

use Backpack\PageManager\app\Http\Controllers\Admin\PageCrudController as CrudController;

class PageCrudController extends CrudController
{

    use \Backpack\CRUD\app\Http

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ericjanofski
Comment options

Answer selected by ericjanofski
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants