Skip to content

Instantly share code, notes, and snippets.

@oscarnascimento
Created February 20, 2018 10:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oscarnascimento/4505d2202ef25fbf45e3ad6966fcb33e to your computer and use it in GitHub Desktop.
Save oscarnascimento/4505d2202ef25fbf45e3ad6966fcb33e to your computer and use it in GitHub Desktop.
<?php
return [
/*
|--------------------------------------------------------------------------
| Paths
|--------------------------------------------------------------------------
|
*/
'path' => [
'migration' => base_path('database/migrations/'),
'model' => app_path('Models/Admin/'),
'datatables' => app_path('DataTables/Admin/'),
'repository' => app_path('Repositories/Admin/'),
'routes' => base_path('routes/web.php'),
'api_routes' => base_path('routes/api.php'),
'request' => app_path('Http/Requests/Admin/'),
'api_request' => app_path('Http/Requests/API/'),
'controller' => app_path('Http/Controllers/Admin/'),
'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/'),
],
/*
|--------------------------------------------------------------------------
| Namespaces
|--------------------------------------------------------------------------
|
*/
'namespace' => [
'model' => 'App\Models\Admin',
'datatables' => 'App\DataTables\Admin',
'repository' => 'App\Repositories\Admin',
'controller' => 'App\Http\Controllers\Admin',
'api_controller' => 'App\Http\Controllers\API',
'request' => 'App\Http\Requests\Admin',
'api_request' => 'App\Http\Requests\API',
],
/*
|--------------------------------------------------------------------------
| Templates
|--------------------------------------------------------------------------
|
*/
'templates' => 'adminlte-templates',
/*
|--------------------------------------------------------------------------
| Model extend class
|--------------------------------------------------------------------------
|
*/
'model_extend_class' => 'Eloquent',
/*
|--------------------------------------------------------------------------
| API routes prefix & version
|--------------------------------------------------------------------------
|
*/
'api_prefix' => 'api',
'api_version' => 'v1',
/*
|--------------------------------------------------------------------------
| Options
|--------------------------------------------------------------------------
|
*/
'options' => [
'softDelete' => true,
'tables_searchable_default' => false,
],
/*
|--------------------------------------------------------------------------
| Prefixes
|--------------------------------------------------------------------------
|
*/
'prefixes' => [
'route' => 'admin', // using admin will create route('admin.?.index') type routes
'path' => '',
'view' => 'admin', // using backend will create return view('backend.?.index') type the backend views directory
'public' => '',
],
/*
|--------------------------------------------------------------------------
| Add-Ons
|--------------------------------------------------------------------------
|
*/
'add_on' => [
'swagger' => false,
'tests' => true,
'datatables' => false,
'menu' => [
'enabled' => true,
'menu_file' => 'layouts/admin/menu.blade.php',
],
],
/*
|--------------------------------------------------------------------------
| Timestamp Fields
|--------------------------------------------------------------------------
|
*/
'timestamps' => [
'enabled' => true,
'created_at' => 'created_at',
'updated_at' => 'updated_at',
'deleted_at' => 'deleted_at',
],
/*
|--------------------------------------------------------------------------
| Save model files to `App/Models` when use `--prefix`. see #208
|--------------------------------------------------------------------------
|
*/
'ignore_model_prefix' => false,
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment