Skip to content

Commit e7a4e21

Browse files
committed
Fix editing newly created models in Laravel 8
The special-casing of :Artisan make:model should apply only to Laravel versions < 8, since the command now places models in app/Models/. Fixes #17.
1 parent 10f82d8 commit e7a4e21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/laravel/artisan.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ function! s:artisan_edit(command) abort
220220
return ''
221221
elseif a:command.name ==# 'console'
222222
let type = 'command'
223-
elseif a:command.name ==# 'model'
223+
elseif a:command.name ==# 'model' && laravel#app().has('laravel < 8')
224224
let type = 'lib'
225225
else
226226
let type = a:command.name

0 commit comments

Comments
 (0)