Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel check if model relation exists

$model->relation()->exists()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #laravel #check #model #relation #exists
ADD COMMENT
Topic
Name
7+3 =