basic configurations

This commit is contained in:
Nabeel Shahzad
2017-06-08 14:16:50 -05:00
parent 28d3f4fec3
commit 1e049fa8a9
8 changed files with 35 additions and 200 deletions

View File

@@ -14,7 +14,7 @@ build:
install: install:
schema: schema:
php artisan infyom:scaffold airlines --fieldsFile=database/schema/airlines.json php artisan infyom:scaffold Airlines --fieldsFile=database/schema/airlines.json
docker: docker:
@mkdir -p $(CURR_PATH)/tmp/mysql @mkdir -p $(CURR_PATH)/tmp/mysql

View File

@@ -3,52 +3,25 @@
return [ return [
/* /*
|--------------------------------------------------------------------------
| Application Name | Application Name
|--------------------------------------------------------------------------
|
| This value is the name of your application. This value is used when the
| framework needs to place the application's name in a notification or
| any other location as required by the application or its packages.
*/ */
'name' => 'phpVMS', 'name' => 'phpVMS',
/* /*
|--------------------------------------------------------------------------
| Application Environment | Application Environment
|--------------------------------------------------------------------------
|
| This value determines the "environment" your application is currently
| running in. This may determine how you prefer to configure various
| services your application utilizes. Set this in your ".env" file.
|
*/ */
'env' => env('APP_ENV', 'production'), 'env' => env('APP_ENV', 'dev'),
/* /*
|--------------------------------------------------------------------------
| Application Debug Mode | Application Debug Mode
|--------------------------------------------------------------------------
|
| When your application is in debug mode, detailed error messages with
| stack traces will be shown on every error that occurs within your
| application. If disabled, a simple generic error page is shown.
|
*/ */
'debug' => env('APP_DEBUG', true), 'debug' => env('APP_DEBUG', true),
/* /*
|--------------------------------------------------------------------------
| Application URL | Application URL
|--------------------------------------------------------------------------
|
| This URL is used by the console to properly generate URLs when using
| the Artisan command line tool. You should set this to the root of
| your application so that it is used when running Artisan tasks.
|
*/ */
'url' => env('APP_URL', 'http://localhost'), 'url' => env('APP_URL', 'http://localhost'),
@@ -65,76 +38,25 @@ return [
*/ */
'timezone' => 'UTC', 'timezone' => 'UTC',
/*
|--------------------------------------------------------------------------
| Application Locale Configuration
|--------------------------------------------------------------------------
|
| The application locale determines the default locale that will be used
| by the translation service provider. You are free to set this value
| to any of the locales which will be supported by the application.
|
*/
'locale' => 'en', 'locale' => 'en',
/*
|--------------------------------------------------------------------------
| Application Fallback Locale
|--------------------------------------------------------------------------
|
| The fallback locale determines the locale to use when the current one
| is not available. You may change the value to correspond to any of
| the language folders that are provided through your application.
|
*/
'fallback_locale' => 'en', 'fallback_locale' => 'en',
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| Encryption Key | Encryption Key
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
|
| This key is used by the Illuminate encrypter service and should be set
| to a random, 32 character string, otherwise these encrypted strings
| will not be safe. Please do this before deploying an application!
|
*/ */
'key' => env('APP_KEY'), 'key' => env('APP_KEY'),
'cipher' => 'AES-256-CBC', 'cipher' => 'AES-256-CBC',
/* /*
|--------------------------------------------------------------------------
| Logging Configuration | Logging Configuration
|--------------------------------------------------------------------------
|
| Here you may configure the log settings for your application. Out of
| the box, Laravel uses the Monolog PHP logging library. This gives
| you a variety of powerful log handlers / formatters to utilize.
|
| Available Settings: "single", "daily", "syslog", "errorlog"
|
*/ */
'log' => env('APP_LOG', 'single'), 'log' => env('APP_LOG', 'single'),
'log_level' => env('APP_LOG_LEVEL', 'debug'), 'log_level' => env('APP_LOG_LEVEL', 'debug'),
/*
|--------------------------------------------------------------------------
| Autoloaded Service Providers
|--------------------------------------------------------------------------
|
| The service providers listed here will be automatically loaded on the
| request to your application. Feel free to add your own services to
| this array to grant expanded functionality to your applications.
|
*/
'providers' => [ 'providers' => [
/* /*
@@ -184,17 +106,6 @@ return [
], ],
/*
|--------------------------------------------------------------------------
| Class Aliases
|--------------------------------------------------------------------------
|
| This array of class aliases will be registered when this application
| is started. However, feel free to register as many as you wish as
| the aliases are "lazy" loaded so they don't hinder performance.
|
*/
'aliases' => [ 'aliases' => [
'App' => Illuminate\Support\Facades\App::class, 'App' => Illuminate\Support\Facades\App::class,

View File

@@ -26,7 +26,7 @@ return [
| |
*/ */
'default' => env('DB_CONNECTION', 'mysql'), 'default' => env('DB_CONNECTION', 'sqlite'),
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
@@ -48,7 +48,7 @@ return [
'sqlite' => [ 'sqlite' => [
'driver' => 'sqlite', 'driver' => 'sqlite',
'database' => env('DB_DATABASE', database_path('database.sqlite')), 'database' => env('DB_DATABASE', database_path('tmp/database.sqlite')),
'prefix' => '', 'prefix' => '',
], ],

View File

@@ -2,173 +2,72 @@
return [ return [
/*
|--------------------------------------------------------------------------
| Paths
|--------------------------------------------------------------------------
|
*/
'path' => [ 'path' => [
'migration' => base_path('database/migrations/'), 'migration' => base_path('database/migrations/'),
'model' => app_path('Models/'), 'model' => app_path('Models/'),
'datatables' => app_path('DataTables/'), 'datatables' => app_path('DataTables/'),
'repository' => app_path('Repositories/'), 'repository' => app_path('Repositories/'),
'routes' => base_path('routes/web.php'), 'routes' => base_path('routes/web.php'),
'api_routes' => base_path('routes/api.php'), 'api_routes' => base_path('routes/api.php'),
'request' => app_path('Http/Requests/'), 'request' => app_path('Http/Requests/'),
'api_request' => app_path('Http/Requests/API/'), 'api_request' => app_path('Http/Requests/API/'),
'controller' => app_path('Http/Controllers/'), 'controller' => app_path('Http/Controllers/'),
'api_controller' => app_path('Http/Controllers/API/'), 'api_controller' => app_path('Http/Controllers/API/'),
'test_trait' => base_path('tests/traits/'), 'test_trait' => base_path('tests/traits/'),
'repository_test' => base_path('tests/'), 'repository_test' => base_path('tests/'),
'api_test' => base_path('tests/'), 'api_test' => base_path('tests/'),
'views' => base_path('resources/views/'), 'views' => base_path('resources/views/'),
'schema_files' => base_path('resources/model_schemas/'), 'schema_files' => base_path('resources/model_schemas/'),
'templates_dir' => base_path('resources/infyom/infyom-generator-templates/'), 'templates_dir' => base_path('resources/infyom/infyom-generator-templates/'),
'modelJs' => base_path('resources/assets/js/models/'), 'modelJs' => base_path('resources/assets/js/models/'),
], ],
/*
|--------------------------------------------------------------------------
| Namespaces
|--------------------------------------------------------------------------
|
*/
'namespace' => [ 'namespace' => [
'model' => 'App\Models', 'model' => 'App\Models',
'datatables' => 'App\DataTables', 'datatables' => 'App\DataTables',
'repository' => 'App\Repositories', 'repository' => 'App\Repositories',
'controller' => 'App\Http\Controllers', 'controller' => 'App\Http\Controllers',
'api_controller' => 'App\Http\Controllers\API', 'api_controller' => 'App\Http\Controllers\API',
'request' => 'App\Http\Requests', 'request' => 'App\Http\Requests',
'api_request' => 'App\Http\Requests\API', 'api_request' => 'App\Http\Requests\API',
], ],
/*
|--------------------------------------------------------------------------
| Templates
|--------------------------------------------------------------------------
|
*/
'templates' => 'adminlte-templates', 'templates' => 'adminlte-templates',
/*
|--------------------------------------------------------------------------
| Model extend class
|--------------------------------------------------------------------------
|
*/
'model_extend_class' => 'Eloquent', 'model_extend_class' => 'Eloquent',
/*
|--------------------------------------------------------------------------
| API routes prefix & version
|--------------------------------------------------------------------------
|
*/
'api_prefix' => 'api', 'api_prefix' => 'api',
'api_version' => 'v1', 'api_version' => 'v1',
/*
|--------------------------------------------------------------------------
| Options
|--------------------------------------------------------------------------
|
*/
'options' => [ 'options' => [
'softDelete' => true, 'softDelete' => true,
'tables_searchable_default' => false, 'tables_searchable_default' => false,
], ],
/*
|--------------------------------------------------------------------------
| Prefixes
|--------------------------------------------------------------------------
|
*/
'prefixes' => [ 'prefixes' => [
'route' => '', // using admin will create route('admin.?.index') type routes 'route' => '', // using admin will create route('admin.?.index') type routes
'path' => '', 'path' => '',
'view' => 'admin',
'view' => '', // using backend will create return view('backend.?.index') type the backend views directory 'public' => 'admin',
'public' => '',
], ],
/*
|--------------------------------------------------------------------------
| Add-Ons
|--------------------------------------------------------------------------
|
*/
'add_on' => [ 'add_on' => [
'swagger' => false, 'swagger' => false,
'tests' => true, 'tests' => true,
'datatables' => false, 'datatables' => false,
'menu' => [ 'menu' => [
'enabled' => false, 'enabled' => false,
'menu_file' => 'layouts/menu.blade.php', 'menu_file' => 'layouts/menu.blade.php',
], ],
], ],
/*
|--------------------------------------------------------------------------
| Timestamp Fields
|--------------------------------------------------------------------------
|
*/
'timestamps' => [ 'timestamps' => [
'enabled' => true, 'enabled' => true,
'created_at' => 'created_at', 'created_at' => 'created_at',
'updated_at' => 'updated_at', 'updated_at' => 'updated_at',
'deleted_at' => 'deleted_at', 'deleted_at' => 'deleted_at',
], ],

View File

@@ -17,6 +17,20 @@
"validations": "required", "validations": "required",
"searchable": true "searchable": true
}, },
{
"name": "name",
"dbType": "string",
"htmlType": "text",
"validations": "required",
"searchable": true
},
{
"name": "enabled",
"dbType": "boolean",
"htmlType": "checkbox",
"validations": "",
"searchable": false
},
{ {
"name": "created_at", "name": "created_at",
"dbType": "timestamp", "dbType": "timestamp",

View File

@@ -39,7 +39,7 @@
<!-- /.login-logo --> <!-- /.login-logo -->
<div class="login-box-body"> <div class="login-box-body">
<p class="login-box-msg">Sign In</p> <p class="login-box-msg">Sign in to start your session</p>
<form method="post" action="{{ url('/login') }}"> <form method="post" action="{{ url('/login') }}">
{!! csrf_field() !!} {!! csrf_field() !!}
@@ -66,7 +66,7 @@
</div> </div>
<div class="row"> <div class="row">
<div class="col-xs-8"> <div class="col-xs-8">
<div class="checkbox"> <div class="checkbox icheck">
<label> <label>
<input type="checkbox" name="remember"> Remember Me <input type="checkbox" name="remember"> Remember Me
</label> </label>
@@ -90,8 +90,18 @@
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script> <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/iCheck/1.0.2/icheck.min.js"></script>
<!-- AdminLTE App --> <!-- AdminLTE App -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/admin-lte/2.3.3/js/app.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/admin-lte/2.3.3/js/app.min.js"></script>
<script>
$(function () {
$('input').iCheck({
checkboxClass: 'icheckbox_square-blue',
radioClass: 'iradio_square-blue',
increaseArea: '20%' // optional
});
});
</script>
</body> </body>
</html> </html>

View File

@@ -143,6 +143,8 @@
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script> <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.2/js/select2.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.2/js/select2.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/iCheck/1.0.2/icheck.min.js"></script>
<!-- AdminLTE App --> <!-- AdminLTE App -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/admin-lte/2.3.3/js/app.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/admin-lte/2.3.3/js/app.min.js"></script>

View File

@@ -17,5 +17,4 @@ Route::get('/', function () {
Auth::routes(); Auth::routes();
Route::get('/home', 'HomeController@index'); Route::get('/home', 'HomeController@index');