Commenting on a scope in Models/Company.php

This commit is contained in:
akemidx 2022-12-15 15:18:24 -05:00
parent 29c2ff56ec
commit 133d6ffa50

View file

@ -73,6 +73,10 @@ final class Company extends SnipeModel
}
}
/**
* Adding scope to table queires, where only authorized users will be able to see a company's ID value
*
*/
private static function scopeCompanyablesDirectly($query, $column = 'company_id', $table_name = null)
{
if (Auth::user()) {