1 year ago

Using sql function in laravel eloquent

Posted 1 year ago by nightf

Hey, Is it possible to use an Sql Server "Scalar Valued Function" in Laravel eloquent model instance?

example code:

$category = new Category;
$category->type = "abc";

If the function name is "db_convert_field", and it's configured as a "scalar valued function" in sql server db, how would it be implemented on the "type" field?


Please sign in or create an account to participate in this conversation.