I tried the following:
public $casts = [
'slug->en' => Slug::class,
I didn't get any error, but it didn't set the slug as it should.
Model::create(['slug->en' => 'Title'])
Please sign in or create an account to participate in this conversation.
There's no shortage of content at Laracasts. In fact, you could watch nonstop
for days upon days, and still not see everything!