First Commit
This commit is contained in:
@@ -0,0 +1,155 @@
|
||||
<?php
|
||||
|
||||
use Lunar\Actions\Carts\GenerateFingerprint;
|
||||
|
||||
return [
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Fingerprint Generator
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Specify which class should be used when generating a cart fingerprint.
|
||||
|
|
||||
*/
|
||||
'fingerprint_generator' => GenerateFingerprint::class,
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Authentication policy
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| When a user logs in, by default, Lunar will merge the current (guest) cart
|
||||
| with the users current cart, if they have one.
|
||||
| Available options: 'merge', 'override'
|
||||
|
|
||||
*/
|
||||
'auth_policy' => 'merge',
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cart Pipelines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Define which pipelines should be run when performing cart calculations.
|
||||
| The default ones provided should suit most needs, however you are
|
||||
| free to add your own as you see fit.
|
||||
|
|
||||
| Each pipeline class will be run from top to bottom.
|
||||
|
|
||||
*/
|
||||
'pipelines' => [
|
||||
/*
|
||||
* Run these pipelines when the cart is calculating.
|
||||
*/
|
||||
'cart' => [
|
||||
Lunar\Pipelines\Cart\CalculateLines::class,
|
||||
Lunar\Pipelines\Cart\ApplyShipping::class,
|
||||
Lunar\Pipelines\Cart\ApplyDiscounts::class,
|
||||
Lunar\Pipelines\Cart\CalculateTax::class,
|
||||
Lunar\Pipelines\Cart\Calculate::class,
|
||||
],
|
||||
|
||||
/*
|
||||
* Run these pipelines when the cart lines are being calculated.
|
||||
*/
|
||||
'cart_lines' => [
|
||||
Lunar\Pipelines\CartLine\GetUnitPrice::class,
|
||||
],
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cart Actions
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here you can decide what action should be run during a Carts lifecycle.
|
||||
| The default actions should be fine for most cases.
|
||||
|
|
||||
*/
|
||||
'actions' => [
|
||||
'add_to_cart' => Lunar\Actions\Carts\AddOrUpdatePurchasable::class,
|
||||
'get_existing_cart_line' => Lunar\Actions\Carts\GetExistingCartLine::class,
|
||||
'update_cart_line' => Lunar\Actions\Carts\UpdateCartLine::class,
|
||||
'remove_from_cart' => Lunar\Actions\Carts\RemovePurchasable::class,
|
||||
'add_address' => Lunar\Actions\Carts\AddAddress::class,
|
||||
'set_shipping_option' => Lunar\Actions\Carts\SetShippingOption::class,
|
||||
'order_create' => Lunar\Actions\Carts\CreateOrder::class,
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cart Action Validators
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| You may wish to provide additional validation when actions executed on
|
||||
| the cart model. The defaults provided should be enough for most cases.
|
||||
|
|
||||
*/
|
||||
'validators' => [
|
||||
|
||||
'add_to_cart' => [
|
||||
Lunar\Validation\CartLine\CartLineQuantity::class,
|
||||
Lunar\Validation\CartLine\CartLineStock::class,
|
||||
],
|
||||
|
||||
'update_cart_line' => [
|
||||
Lunar\Validation\CartLine\CartLineQuantity::class,
|
||||
Lunar\Validation\CartLine\CartLineStock::class,
|
||||
],
|
||||
|
||||
'remove_from_cart' => [],
|
||||
|
||||
'set_shipping_option' => [
|
||||
Lunar\Validation\Cart\ShippingOptionValidator::class,
|
||||
],
|
||||
|
||||
'order_create' => [
|
||||
Lunar\Validation\Cart\ValidateCartForOrderCreation::class,
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Default eager loading
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| When loading up a cart and doing calculations, there's a few relationships
|
||||
| that are used when it's running. Here you can define which relationships
|
||||
| should be eager loaded when these calculations take place.
|
||||
|
|
||||
*/
|
||||
'eager_load' => [
|
||||
'currency',
|
||||
'lines.purchasable.taxClass',
|
||||
'lines.purchasable.values',
|
||||
'lines.purchasable.product.thumbnail',
|
||||
'lines.purchasable.prices.currency',
|
||||
'lines.purchasable.prices.priceable',
|
||||
'lines.purchasable.product',
|
||||
'lines.cart.currency',
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Prune carts
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Should the cart models be pruned to prevent data build up and
|
||||
| some settings controlling how pruning should be determined
|
||||
|
|
||||
*/
|
||||
'prune_tables' => [
|
||||
|
||||
'enabled' => false,
|
||||
|
||||
'pipelines' => [
|
||||
Lunar\Pipelines\CartPrune\PruneAfter::class,
|
||||
Lunar\Pipelines\CartPrune\WithoutOrders::class,
|
||||
Lunar\Pipelines\CartPrune\WhereNotMerged::class,
|
||||
],
|
||||
|
||||
'prune_interval' => 90, // days
|
||||
|
||||
],
|
||||
];
|
||||
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Session Key
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Specify the session key used when fetching the cart.
|
||||
|
|
||||
*/
|
||||
'session_key' => 'lunar_cart',
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Auto create a cart when none exists for user.
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Determines whether you want to automatically create a cart for a user if
|
||||
| they do not currently have one in the session. By default, this is false
|
||||
| to minimise the amount of carts added to the database.
|
||||
|
|
||||
*/
|
||||
'auto_create' => false,
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Allow Carts to have multiple orders associated.
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Determines whether the same cart instance will be returned if there is already
|
||||
| a completed order associated to the cart which is retrieved in the session.
|
||||
| When set to false, if a cart has a completed order, then a new instance
|
||||
| of a cart will be returned, even if auto_create is set to false
|
||||
|
|
||||
*/
|
||||
'allow_multiple_orders_per_cart' => false,
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Delete cart on logout
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Determines whether the cart sholud be soft deleted when the user logs out.
|
||||
|
|
||||
*/
|
||||
'delete_on_forget' => true,
|
||||
];
|
||||
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
'connection' => null,
|
||||
|
||||
'table_prefix' => 'lunar_',
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Morph Prefix
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If you wish to prefix Lunar's morph mapping in the database, you can
|
||||
| set that here e.g. `lunar_product` instead of `product`
|
||||
|
|
||||
*/
|
||||
'morph_prefix' => null,
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Users Table ID
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Lunar adds a relationship to your 'users' table and by default assumes
|
||||
| a 'bigint'. You can change this to either an 'int' or 'uuid'.
|
||||
|
|
||||
*/
|
||||
'users_id_type' => 'bigint',
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Disable migrations
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Prevent Lunar`s default package migrations from running for the core.
|
||||
| Set to 'true' to disable.
|
||||
|
|
||||
*/
|
||||
'disable_migrations' => false,
|
||||
|
||||
];
|
||||
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
use Lunar\Base\Validation\CouponValidator;
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Coupon Validator
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here you can specify the class which validates coupons. This is useful if you
|
||||
| want to have custom logic for what determines whether a coupon can be used.
|
||||
|
|
||||
*/
|
||||
'coupon_validator' => CouponValidator::class,
|
||||
|
||||
];
|
||||
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
use Lunar\Base\StandardMediaDefinitions;
|
||||
|
||||
return [
|
||||
|
||||
'definitions' => [
|
||||
'asset' => StandardMediaDefinitions::class,
|
||||
'brand' => StandardMediaDefinitions::class,
|
||||
'collection' => StandardMediaDefinitions::class,
|
||||
'product' => StandardMediaDefinitions::class,
|
||||
'product-option' => StandardMediaDefinitions::class,
|
||||
'product-option-value' => StandardMediaDefinitions::class,
|
||||
],
|
||||
|
||||
'collection' => 'images',
|
||||
|
||||
'fallback' => [
|
||||
'url' => env('FALLBACK_IMAGE_URL', null),
|
||||
'path' => env('FALLBACK_IMAGE_PATH', null),
|
||||
],
|
||||
|
||||
];
|
||||
@@ -0,0 +1,121 @@
|
||||
<?php
|
||||
|
||||
use Lunar\Base\OrderReferenceGenerator;
|
||||
|
||||
return [
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Order Reference Format
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Specify the format for the order reference generator to use.
|
||||
|
|
||||
*/
|
||||
'reference_format' => [
|
||||
/**
|
||||
* Optional prefix for the order reference
|
||||
*/
|
||||
'prefix' => null,
|
||||
|
||||
/**
|
||||
* STR_PAD_LEFT: 00001965
|
||||
* STR_PAD_RIGHT: 19650000
|
||||
* STR_PAD_BOTH: 00196500
|
||||
*/
|
||||
'padding_direction' => STR_PAD_LEFT,
|
||||
|
||||
/**
|
||||
* 00001965
|
||||
* AAAA1965
|
||||
*/
|
||||
'padding_character' => '0',
|
||||
|
||||
/**
|
||||
* If the length specified below is smaller than the length
|
||||
* of the Order ID, then no padding will take place.
|
||||
*/
|
||||
'length' => 8,
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Order Reference Generator
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here you can specify how you want your order references to be generated
|
||||
| when you create an order from a cart.
|
||||
|
|
||||
*/
|
||||
'reference_generator' => OrderReferenceGenerator::class,
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Draft Status
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| When a draft order is created from a cart, we need an initial status for
|
||||
| the order that's created. Define that here, it can be anything that would
|
||||
| make sense for the store you're building.
|
||||
|
|
||||
*/
|
||||
'draft_status' => 'awaiting-payment',
|
||||
|
||||
'statuses' => [
|
||||
|
||||
'awaiting-payment' => [
|
||||
'label' => 'Awaiting Payment',
|
||||
'color' => '#848a8c',
|
||||
'mailers' => [],
|
||||
'notifications' => [],
|
||||
'favourite' => true,
|
||||
],
|
||||
|
||||
'payment-offline' => [
|
||||
'label' => 'Payment Offline',
|
||||
'color' => '#0A81D7',
|
||||
'mailers' => [],
|
||||
'notifications' => [],
|
||||
'favourite' => true,
|
||||
],
|
||||
|
||||
'payment-received' => [
|
||||
'label' => 'Payment Received',
|
||||
'color' => '#6a67ce',
|
||||
'mailers' => [],
|
||||
'notifications' => [],
|
||||
'favourite' => true,
|
||||
],
|
||||
|
||||
'dispatched' => [
|
||||
'label' => 'Dispatched',
|
||||
'mailers' => [],
|
||||
'notifications' => [],
|
||||
'favourite' => true,
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Order Pipelines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Define which pipelines should be run throughout an order's lifecycle.
|
||||
| The default ones provided should suit most needs, however you are
|
||||
| free to add your own as you see fit.
|
||||
|
|
||||
| Each pipeline class will be run from top to bottom.
|
||||
|
|
||||
*/
|
||||
'pipelines' => [
|
||||
'creation' => [
|
||||
Lunar\Pipelines\Order\Creation\FillOrderFromCart::class,
|
||||
Lunar\Pipelines\Order\Creation\CreateOrderLines::class,
|
||||
Lunar\Pipelines\Order\Creation\CreateOrderAddresses::class,
|
||||
Lunar\Pipelines\Order\Creation\CreateShippingLine::class,
|
||||
Lunar\Pipelines\Order\Creation\CleanUpOrderLines::class,
|
||||
Lunar\Pipelines\Order\Creation\MapDiscountBreakdown::class,
|
||||
],
|
||||
],
|
||||
|
||||
];
|
||||
@@ -0,0 +1,51 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Enable Variants
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| When `true` this will show the Variants manager when editing a product. If your
|
||||
| storefront doesn't support variants, set this to false.
|
||||
|
|
||||
*/
|
||||
'enable_variants' => true,
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| PDF Streaming
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| When handling PDF's in the panel, you can decide whether to stream the PDF in
|
||||
| a new tab or download the PDF to your hard drive.
|
||||
|
|
||||
| Available options are 'download' or 'stream'
|
||||
|
|
||||
*/
|
||||
'pdf_rendering' => 'download',
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Enable Scout when searching on supported models.
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Some models in the core have Scout implemented as a search driver, if you
|
||||
| want to use Scout when possible on tables in the panel, enable it here.
|
||||
|
|
||||
*/
|
||||
'scout_enabled' => false,
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Navigation counts
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The admin panel will show a count of orders in the left navigation.
|
||||
| This is based upon specific order statuses. You can define the statuses
|
||||
| to include in the count below.
|
||||
|
|
||||
*/
|
||||
'order_count_statuses' => ['payment-received'],
|
||||
|
||||
];
|
||||
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
'default' => env('PAYMENTS_TYPE', 'cash-in-hand'),
|
||||
|
||||
'types' => [
|
||||
'cash-in-hand' => [
|
||||
'driver' => 'offline',
|
||||
'authorized' => 'payment-offline',
|
||||
],
|
||||
],
|
||||
|
||||
];
|
||||
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
|
||||
use Lunar\Pricing\DefaultPriceFormatter;
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Pricing Stored Inclusive of Tax
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Specify whether the prices entered into the system include tax or not.
|
||||
|
|
||||
*/
|
||||
'stored_inclusive_of_tax' => env('LUNAR_STORE_INCLUSIVE_OF_TAX', false),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Price formatter
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Specify which class to use when formatting price data types
|
||||
|
|
||||
*/
|
||||
'formatter' => DefaultPriceFormatter::class,
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Pricing Pipelines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Define which pipelines should be run when retrieving purchasable price.
|
||||
|
|
||||
| Each pipeline class will be run from top to bottom.
|
||||
|
|
||||
*/
|
||||
'pipelines' => [
|
||||
// App\Pipelines\Pricing\Example::class,
|
||||
],
|
||||
|
||||
];
|
||||
@@ -0,0 +1,5 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'association_types_enum' => \Lunar\Base\Enums\ProductAssociation::class,
|
||||
];
|
||||
@@ -0,0 +1,56 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Models for indexing
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The model listed here will be used to create/populate the indexes.
|
||||
| You can provide your own model here to run them all on the same
|
||||
| search engine.
|
||||
|
|
||||
*/
|
||||
'models' => [
|
||||
/*
|
||||
* These models are required by the system, do not change them.
|
||||
*/
|
||||
Lunar\Models\Brand::class,
|
||||
Lunar\Models\Collection::class,
|
||||
Lunar\Models\Customer::class,
|
||||
Lunar\Models\Order::class,
|
||||
Lunar\Models\Product::class,
|
||||
Lunar\Models\ProductOption::class,
|
||||
|
||||
/*
|
||||
* Below you can add your own models for indexing...
|
||||
*/
|
||||
// App\Models\Example::class,
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Search engine mapping
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| You can define what search driver each searchable model should use.
|
||||
| If the model isn't defined here, it will use the SCOUT_DRIVER env variable.
|
||||
|
|
||||
*/
|
||||
'engine_map' => [
|
||||
// Lunar\Models\Product::class => 'algolia',
|
||||
// Lunar\Models\Order::class => 'meilisearch',
|
||||
// Lunar\Models\Collection::class => 'meilisearch',
|
||||
],
|
||||
|
||||
'indexers' => [
|
||||
Lunar\Models\Brand::class => Lunar\Search\BrandIndexer::class,
|
||||
Lunar\Models\Collection::class => Lunar\Search\CollectionIndexer::class,
|
||||
Lunar\Models\Customer::class => Lunar\Search\CustomerIndexer::class,
|
||||
Lunar\Models\Order::class => Lunar\Search\OrderIndexer::class,
|
||||
Lunar\Models\Product::class => Lunar\Search\ProductIndexer::class,
|
||||
Lunar\Models\ProductOption::class => Lunar\Search\ProductOptionIndexer::class,
|
||||
],
|
||||
|
||||
];
|
||||
@@ -0,0 +1,99 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Measurements
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| You can use any measurements available at
|
||||
| https://github.com/cartalyst/converter/edit/master/src/config/config.php
|
||||
|
|
||||
*/
|
||||
'measurements' => [
|
||||
|
||||
'length' => [
|
||||
|
||||
'm' => [
|
||||
'format' => '1,0.000 m',
|
||||
'unit' => 1.00,
|
||||
],
|
||||
|
||||
'mm' => [
|
||||
'format' => '1,0.000 mm',
|
||||
'unit' => 1000,
|
||||
],
|
||||
|
||||
'cm' => [
|
||||
'format' => '1!0 cm',
|
||||
'unit' => 100,
|
||||
],
|
||||
|
||||
'ft' => [
|
||||
'format' => '1,0.00 ft.',
|
||||
'unit' => 3.28084,
|
||||
],
|
||||
|
||||
'in' => [
|
||||
'format' => '1,0.00 in.',
|
||||
'unit' => 39.3701,
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
'area' => [
|
||||
|
||||
'sqm' => [
|
||||
'format' => '1,00.00 sq m',
|
||||
'unit' => 1,
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
'weight' => [
|
||||
|
||||
'kg' => [
|
||||
'format' => '1,0.00 kg',
|
||||
'unit' => 1.00,
|
||||
],
|
||||
|
||||
'g' => [
|
||||
'format' => '1,0.00 g',
|
||||
'unit' => 1000.00,
|
||||
],
|
||||
|
||||
'lbs' => [
|
||||
'format' => '1,0.00 lbs',
|
||||
'unit' => 2.20462,
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
'volume' => [
|
||||
|
||||
'l' => [
|
||||
'format' => '1,00.00l',
|
||||
'unit' => 1,
|
||||
],
|
||||
|
||||
'ml' => [
|
||||
'format' => '1,00.000ml',
|
||||
'unit' => 1000,
|
||||
],
|
||||
|
||||
'gal' => [
|
||||
'format' => '1,00.000gal',
|
||||
'unit' => 0.264172,
|
||||
],
|
||||
|
||||
'floz' => [
|
||||
'format' => '1,00.000Fl oz.',
|
||||
'unit' => 33.814,
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
];
|
||||
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Tax Driver
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here you can specify which tax driver should be used. By default system is used
|
||||
| and should work for you in most cases.
|
||||
|
|
||||
*/
|
||||
'driver' => 'system',
|
||||
|
||||
];
|
||||
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
use Lunar\Generators\UrlGenerator;
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
| Set whether URLs should be required across the system. Setting this as true
|
||||
| will affect how validation works when creating/editing products in the hub.
|
||||
|
|
||||
| If you have a generator specified below, this setting will have no effect
|
||||
| on validation rules across the system.
|
||||
*/
|
||||
'required' => true,
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| URL Generator
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here you can specify a class to automatically generate URLs for models which
|
||||
| implement the `HasUrls` trait. If left null no generation will happen.
|
||||
| You are free to use your own generator, or you can use the one that
|
||||
| ships with Lunar, which by default will use the name attribute.
|
||||
|
|
||||
*/
|
||||
'generator' => UrlGenerator::class,
|
||||
|
||||
];
|
||||
Reference in New Issue
Block a user