File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 33namespace Davinet \ArtisanCommand \Commands ;
44
55use Illuminate \Console \Command ;
6+ use Illuminate \Support \Arr ;
67use Illuminate \Support \Str ;
78
89class Repository extends Command
@@ -73,7 +74,7 @@ protected function replaceClassName($name, $stub)
7374 */
7475 protected function replacePropertyName ($ name , $ stub )
7576 {
76- $ property = lcfirst (camel_case ($ name ));
77+ $ property = lcfirst (Str:: camel ($ name ));
7778 return str_replace ('DummyProperty ' , $ property , $ stub );
7879 }
7980
@@ -125,7 +126,7 @@ protected function putInFile($filename, $content)
125126 protected function setModelAndNamespace (&$ model , &$ namespace )
126127 {
127128 $ exploded = explode ('\\' , $ model );
128- $ model = array_last ($ exploded );
129+ $ model = Arr:: last ($ exploded );
129130 $ namespace = '' ;
130131
131132 for ($ i = 0 ; $ i < count ($ exploded ) - 1 ; $ i ++)
You can’t perform that action at this time.
0 commit comments