mirror of
https://github.com/barryvdh/laravel-ide-helper.git
synced 2026-08-22 20:13:08 +00:00
@@ -242,7 +242,7 @@ class ModelsCommand extends Command {
|
|||||||
$methods = get_class_methods($model);
|
$methods = get_class_methods($model);
|
||||||
if($methods){
|
if($methods){
|
||||||
foreach($methods as $method){
|
foreach($methods as $method){
|
||||||
if(\Str::startsWith($method, 'get') && \Str::endsWith($method, 'Attribute') && $method !== 'setAttribute'){
|
if(\Str::startsWith($method, 'get') && \Str::endsWith($method, 'Attribute') && $method !== 'getAttribute'){
|
||||||
//Magic get<name>Attribute
|
//Magic get<name>Attribute
|
||||||
$name = \Str::snake(substr($method, 3, -9));
|
$name = \Str::snake(substr($method, 3, -9));
|
||||||
if(!empty($name)){
|
if(!empty($name)){
|
||||||
|
|||||||
Reference in New Issue
Block a user