cleaning
This commit is contained in:
@@ -55,7 +55,7 @@ class Settings extends Page
|
||||
return [
|
||||
Forms\Components\Grid::make(2)
|
||||
->schema([
|
||||
Forms\Components\Grid::make(1)
|
||||
Forms\Components\Grid::make(2)
|
||||
->schema([
|
||||
Forms\Components\TextInput::make('name')
|
||||
->label(__('Company name'))
|
||||
|
||||
@@ -67,7 +67,7 @@ class AlertResource extends Resource
|
||||
'danger' => Alert::TYPE_DANGER,
|
||||
]),
|
||||
Tables\Columns\TextColumn::make('expires_at')
|
||||
->label('Expires Date')
|
||||
->label('Expires')
|
||||
->default('-'),
|
||||
]);
|
||||
}
|
||||
|
||||
@@ -5,11 +5,14 @@ namespace App\Filament\Resources\AlertResource\Pages;
|
||||
use Filament\Actions;
|
||||
use App\Filament\Resources\AlertResource;
|
||||
use Filament\Resources\Pages\ListRecords;
|
||||
use Illuminate\Contracts\Support\Htmlable;
|
||||
|
||||
class ListAlerts extends ListRecords
|
||||
{
|
||||
protected static string $resource = AlertResource::class;
|
||||
|
||||
protected ?string $subheading = 'Alerts are meant to inform your users about things that are going on. For example server migrations, pricing changes. They will display as top-banner inside the panel.';
|
||||
|
||||
protected function getHeaderActions(): array
|
||||
{
|
||||
return [
|
||||
|
||||
@@ -8,22 +8,12 @@ use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class SiteAppRequest extends FormRequest
|
||||
{
|
||||
/**
|
||||
* Determine if the user is authorized to make this request.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function authorize()
|
||||
public function authorize(): bool
|
||||
{
|
||||
return auth()->check();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the validation rules that apply to the request.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function rules()
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
'type' => [
|
||||
@@ -32,7 +22,6 @@ class SiteAppRequest extends FormRequest
|
||||
Rule::in([
|
||||
Site::PROJECT_WORDPRESS,
|
||||
Site::PROJECT_NEXTCLOUD,
|
||||
Site::PROJECT_OCTOBERCMS
|
||||
])
|
||||
]
|
||||
];
|
||||
|
||||
@@ -16,18 +16,11 @@ class InstallApp implements ShouldQueue
|
||||
{
|
||||
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels, HasPloi;
|
||||
|
||||
public Site $site;
|
||||
public $type;
|
||||
public $options;
|
||||
|
||||
public function __construct(Site $site, string $type = Site::PROJECT_WORDPRESS, array $options = [])
|
||||
public function __construct(public Site $site, public string $type = Site::PROJECT_WORDPRESS, public array $options = [])
|
||||
{
|
||||
$this->site = $site;
|
||||
$this->type = $type;
|
||||
$this->options = $options;
|
||||
}
|
||||
|
||||
public function handle()
|
||||
public function handle(): void
|
||||
{
|
||||
$response = $this->getPloi()
|
||||
->server($this->site->server->ploi_id)
|
||||
|
||||
@@ -22,8 +22,6 @@ class Site extends Model
|
||||
|
||||
const PROJECT_WORDPRESS = 'wordpress';
|
||||
const PROJECT_NEXTCLOUD = 'nextcloud';
|
||||
const PROJECT_OCTOBERCMS = 'october-cms';
|
||||
|
||||
public $fillable = [
|
||||
'ploi_id',
|
||||
'domain',
|
||||
|
||||
Reference in New Issue
Block a user