Add External URL Field to Product Schema and Localization: Introduced an 'external_url' field in the ProductForm for enhanced product management. Updated the Product model to include this new field and created a migration to add it to the products table. Enhanced localization support by adding relevant translations in both English and Turkish language files. Updated the menu-item Blade component to utilize the external URL, allowing links to open in a new tab if provided, improving user experience.
This commit is contained in:
@@ -61,6 +61,10 @@ class ProductForm
|
||||
->label(__('products.view_template'))
|
||||
->placeholder(__('products.view_template_placeholder'))
|
||||
->helperText(__('products.view_template_helper')),
|
||||
TextInput::make('external_url')
|
||||
->label(__('products.external_url'))
|
||||
->url()
|
||||
->helperText(__('products.external_url_helper')),
|
||||
TextInput::make('sort_order')
|
||||
->label(__('products.sort_order'))
|
||||
->numeric()
|
||||
|
||||
@@ -19,6 +19,7 @@ class Product extends Model
|
||||
'hero_image',
|
||||
'content',
|
||||
'view_template',
|
||||
'external_url',
|
||||
'sort_order',
|
||||
'is_active',
|
||||
'landing_page_data',
|
||||
|
||||
Reference in New Issue
Block a user