public function onUserCreateOrEdit(Model $model)
    {
        $this->onUsersList();
        $name = $model->exists ? 'User Edit ' . $model->fullname : 'User Add';
        Breadcrumbs::register('user', function($breadcrumbs) use($name) {
            $breadcrumbs->parent('users-list');
            $breadcrumbs->push($name, '#');
        });
        view()->share('breadcrumbs', Breadcrumbs::render('user'));
    }
public function onUserCreateOrEdit(Model $model)
    {
        $this->onUsersList();
        $name = $model->exists ? 'User Edit ' . $model->fullname : 'User Add';
        Breadcrumbs::register('user', function($breadcrumbs) use($name) {
            $breadcrumbs->parent('users-list');
            $breadcrumbs->push($name, '#');
        });
        view()->share('breadcrumbs', Breadcrumbs::render('user'));
    }
public function onUserCreateOrEdit ( Model $ model ) { $ this -> onUsersList ( ) ; $ name = $ model -> exists ? 'User Edit ' . $ model -> fullname : 'User Add' ; Breadcrumbs :: register ( 'user' , function ( $ breadcrumbs ) use ( $ name ) { $ breadcrumbs -> parent ( 'users-list' ) ; $ breadcrumbs -> push ( $ name , '#' ) ; } ) ; view ( ) -> share ( 'breadcrumbs' , Breadcrumbs :: render ( 'user' ) ) ; }
on user create or edit

@param Model $model
on user create or edit