Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel casts

<?php
  
use IlluminateDatabaseEloquentCastsAsCollection;

protected $casts = [
    'options' => AsCollection::class,
];
Source by laravel.com #
 
PREVIOUS NEXT
Tagged: #laravel #casts
ADD COMMENT
Topic
Name
5+2 =