phpvms/config/infyom/laravel_generator.php

75 lines
2.3 KiB
PHP
Raw Normal View History

2017-06-09 02:28:26 +08:00
<?php
return [
'path' => [
'migration' => base_path('database/migrations/'),
'model' => app_path('Models/'),
'datatables' => app_path('DataTables/'),
'repository' => app_path('Repositories/'),
'routes' => base_path('routes/web.php'),
'api_routes' => base_path('routes/api.php'),
'request' => app_path('Http/Requests/'),
'api_request' => app_path('Http/Requests/API/'),
'controller' => app_path('Http/Controllers/'),
'api_controller' => app_path('Http/Controllers/API/'),
'test_trait' => base_path('tests/traits/'),
'repository_test' => base_path('tests/'),
'api_test' => base_path('tests/'),
'views' => base_path('resources/views/'),
'schema_files' => base_path('resources/model_schemas/'),
'templates_dir' => base_path('resources/infyom/infyom-generator-templates/'),
'modelJs' => base_path('resources/assets/js/models/'),
],
'namespace' => [
'model' => 'App\Models',
'datatables' => 'App\DataTables',
'repository' => 'App\Repositories',
'controller' => 'App\Http\Controllers',
'api_controller' => 'App\Http\Controllers\API',
'request' => 'App\Http\Requests',
'api_request' => 'App\Http\Requests\API',
],
'templates' => 'adminlte-templates',
'model_extend_class' => 'Eloquent',
'api_prefix' => 'api',
'api_version' => 'v1',
'options' => [
'softDelete' => true,
'tables_searchable_default' => false,
],
'prefixes' => [
2017-06-09 09:02:52 +08:00
'route' => 'admin', // using admin will create route('admin.?.index') type routes
2017-06-09 02:28:26 +08:00
'path' => '',
2017-06-09 03:16:50 +08:00
'view' => 'admin',
'public' => 'admin',
2017-06-09 02:28:26 +08:00
],
'add_on' => [
'swagger' => false,
'tests' => true,
'datatables' => false,
'menu' => [
'enabled' => false,
'menu_file' => 'layouts/menu.blade.php',
],
],
'timestamps' => [
'enabled' => true,
'created_at' => 'created_at',
'updated_at' => 'updated_at',
'deleted_at' => 'deleted_at',
],
];