Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel get polymorphic names

(new Post())->getMorphClass()
// Or
$post->getMorphClass()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #laravel #polymorphic #names
ADD COMMENT
Topic
Name
3+2 =