Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F8198194
SkuObserver.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
301 B
Referenced Files
None
Subscribers
None
SkuObserver.php
View Options
<?php
namespace
App\Observers
;
use
App\Sku
;
class
SkuObserver
{
/**
* Ensure the SKU ID is a custom ID (uuid).
*
* @param Sku $sku
*
* @return void
*/
public
function
creating
(
Sku
$sku
)
{
$sku
->{
$sku
->
getKeyName
()}
=
\App\Utils
::
uuidStr
();
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Wed, Jul 8, 6:26 PM (1 d, 20 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1051763
Default Alt Text
SkuObserver.php (301 B)
Attached To
Mode
R2 kolab
Attached
Detach File
Event Timeline
Log In to Comment