Add laravel Files for VS Code
- app/Models/MyResource.php
- app/Http/Controllers/MyResourceController.php
- app/Repository/MyResourceRepository.php
- app/Services/MyResourceService.php
- app/Http/Requests/MyResourceRequest.php
- database/seeds/MyResourceSeeder.php
- tests/Feature/Crud/MyResourceTest.php
- app/Doc/MyResourceDoc.php
- database/migrations/2013_04_22_150007_create_myresources_table.php
- Append route to the routes/api.php file:
/*
|--------------------------------------------------------------------------
| Routes about my-resources
|--------------------------------------------------------------------------
*/
Route::resource('my-resources', 'MyResourceController');
Installation
- From the command palette
Ctrl -Shift -P (Windows, Linux) or Cmd -Shift -P / fn -F1 (OSX)
- Select
Install Extension
- Type
vscode-add-laravel-files and press enter
- Select the extension from the list and click
Install
- Reload Visual Studio Code
Usage
- From the command palette
Ctrl -Shift -P (Windows, Linux) or Cmd -Shift -P / fn -F1 (OSX)
- Search for
InnovareTI: Add Laravel files
- Type the name of the new resource
TODO
[ ] - Update DatabaseSeeder file with the new seeder
License
MIT
| |