magius
magius
Explore posts from servers
TCTwill CMS
Created by magius on 10/30/2024 in #👊support
Custom
so for hashing should i use the beforeSave with the repositiory? or their is something i can put on the
public function getForm(TwillModelContract $model): Form
{
$form = parent::getForm($model);
$form->add(
Input::make()
->name('name')
->label('Name')
->maxLength(160),
);
$form->add(
Input::make()
->name('email')
->label('Email')

);
$form->add(
Input::make()
->name('password')
->label('Password')
->type('password')

);
return $form;
}
public function getForm(TwillModelContract $model): Form
{
$form = parent::getForm($model);
$form->add(
Input::make()
->name('name')
->label('Name')
->maxLength(160),
);
$form->add(
Input::make()
->name('email')
->label('Email')

);
$form->add(
Input::make()
->name('password')
->label('Password')
->type('password')

);
return $form;
}
17 replies
TCTwill CMS
Created by magius on 10/30/2024 in #👊support
Custom
now the next step: - its how to display the plain password and not the hashed version from the Bdd - and when i update this password and save he get hashed again before saving
17 replies
TCTwill CMS
Created by magius on 10/30/2024 in #👊support
Custom
thx
17 replies
TCTwill CMS
Created by magius on 10/30/2024 in #👊support
Custom
yeh it worked for the name
17 replies
TCTwill CMS
Created by magius on 10/30/2024 in #👊support
Custom
php
<?php

namespace App\Http\Controllers\Twill;

use A17\Twill\Models\Contracts\TwillModelContract;
use A17\Twill\Services\Listings\Columns\Text;
use A17\Twill\Services\Listings\TableColumns;
use A17\Twill\Services\Forms\Fields\Input;
use A17\Twill\Services\Forms\Fields\Medias;
use A17\Twill\Services\Forms\Fields\Wysiwyg;
use A17\Twill\Services\Forms\Fieldset;
use A17\Twill\Services\Forms\Form;
use A17\Twill\Http\Controllers\Admin\ModuleController as BaseModuleController;

class AccountController extends BaseModuleController
{
protected $moduleName = 'accounts';
protected function setUpController(): void
{

}

}
php
<?php

namespace App\Http\Controllers\Twill;

use A17\Twill\Models\Contracts\TwillModelContract;
use A17\Twill\Services\Listings\Columns\Text;
use A17\Twill\Services\Listings\TableColumns;
use A17\Twill\Services\Forms\Fields\Input;
use A17\Twill\Services\Forms\Fields\Medias;
use A17\Twill\Services\Forms\Fields\Wysiwyg;
use A17\Twill\Services\Forms\Fieldset;
use A17\Twill\Services\Forms\Form;
use A17\Twill\Http\Controllers\Admin\ModuleController as BaseModuleController;

class AccountController extends BaseModuleController
{
protected $moduleName = 'accounts';
protected function setUpController(): void
{

}

}
17 replies
TCTwill CMS
Created by magius on 10/30/2024 in #👊support
Custom
the data arent displaying normally and i cant seem to find the prob when i compare to other module
17 replies
TCTwill CMS
Created by magius on 10/30/2024 in #👊support
Custom
No description
17 replies
TCTwill CMS
Created by magius on 10/30/2024 in #👊support
Custom
i am more near a workable solution now i renamed the absic laravel user table to account and tried to transform it to account module for a account module
17 replies
TCTwill CMS
Created by magius on 10/30/2024 in #👊support
Custom
yeah but dont want to add the profile overhead it just add a step
17 replies
NNuxt
Created by magius on 10/29/2024 in #❓・help
MultiStep Form with zod + nuxt ui
the solution proposed by kapa worked but cant i used 2 schema that can be extend one another
6 replies
NNuxt
Created by magius on 10/1/2024 in #❓・help
Error @nuxtjs/mdc on reload
MDC was created for that he is used behind the curtain by nuxt/content
23 replies
NNuxt
Created by magius on 10/1/2024 in #❓・help
Error @nuxtjs/mdc on reload
remove node module and re install the depency with npm i
23 replies
NNuxt
Created by magius on 10/1/2024 in #❓・help
Error @nuxtjs/mdc on reload
for nuxt/mdc you just need to add this file .npmrc
shamefully-hoist=true
shamefully-hoist=true
23 replies
NNuxt
Created by magius on 10/1/2024 in #❓・help
Error @nuxtjs/mdc on reload
you use nuxt/mdc or nuxt/content ?
23 replies
NNuxt
Created by magius on 10/1/2024 in #❓・help
Error @nuxtjs/mdc on reload
and you can remove the client only it will work
23 replies
NNuxt
Created by magius on 10/1/2024 in #❓・help
Error @nuxtjs/mdc on reload
add a .npmrc file with shamefully-hoist=true
23 replies
NNuxt
Created by magius on 10/1/2024 in #❓・help
Error @nuxtjs/mdc on reload
ok i got the solution without client only
23 replies
NNuxt
Created by magius on 10/1/2024 in #❓・help
Error @nuxtjs/mdc on reload
i think the prob came from the combination with nuxt ui
23 replies
NNuxt
Created by magius on 10/1/2024 in #❓・help
Error @nuxtjs/mdc on reload
i made it work with the reproduction but in my project this still dont work
23 replies
NNuxt
Created by magius on 10/1/2024 in #❓・help
Error @nuxtjs/mdc on reload
No description
23 replies