[WIP] Fix ergonomics rules
This commit is contained in:
52
config/activitylog.php
Normal file
52
config/activitylog.php
Normal file
@@ -0,0 +1,52 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
* If set to false, no activities will be saved to the database.
|
||||
*/
|
||||
'enabled' => env('ACTIVITY_LOGGER_ENABLED', true),
|
||||
|
||||
/*
|
||||
* When the clean-command is executed, all recording activities older than
|
||||
* the number of days specified here will be deleted.
|
||||
*/
|
||||
'delete_records_older_than_days' => 365,
|
||||
|
||||
/*
|
||||
* If no log name is passed to the activity() helper
|
||||
* we use this default log name.
|
||||
*/
|
||||
'default_log_name' => 'default',
|
||||
|
||||
/*
|
||||
* You can specify an auth driver here that gets user models.
|
||||
* If this is null we'll use the default Laravel auth driver.
|
||||
*/
|
||||
'default_auth_driver' => null,
|
||||
|
||||
/*
|
||||
* If set to true, the subject returns soft deleted models.
|
||||
*/
|
||||
'subject_returns_soft_deleted_models' => false,
|
||||
|
||||
/*
|
||||
* This model will be used to log activity.
|
||||
* It should be implements the Spatie\Activitylog\Contracts\Activity interface
|
||||
* and extend Illuminate\Database\Eloquent\Model.
|
||||
*/
|
||||
'activity_model' => \Spatie\Activitylog\Models\Activity::class,
|
||||
|
||||
/*
|
||||
* This is the name of the table that will be created by the migration and
|
||||
* used by the Activity model shipped with this package.
|
||||
*/
|
||||
'table_name' => 'activity_log',
|
||||
|
||||
/*
|
||||
* This is the database connection that will be used by the migration and
|
||||
* the Activity model shipped with this package. In case it's not set
|
||||
* Laravel database.default will be used instead.
|
||||
*/
|
||||
'database_connection' => env('ACTIVITY_LOGGER_DB_CONNECTION'),
|
||||
];
|
||||
@@ -67,7 +67,7 @@ return [
|
||||
|
|
||||
*/
|
||||
|
||||
'timezone' => 'UTC',
|
||||
'timezone' => 'Europe/Paris',
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
@@ -80,7 +80,7 @@ return [
|
||||
|
|
||||
*/
|
||||
|
||||
'locale' => 'en',
|
||||
'locale' => 'fr',
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
|
||||
@@ -6,7 +6,7 @@ return [
|
||||
'providers' => [
|
||||
'users' => [
|
||||
'driver' => 'eloquent',
|
||||
'model' => Sebastienheyd\Boilerplate\Models\User::class,
|
||||
'model' => App\Models\Core\Auth\User::class,
|
||||
'table' => 'users',
|
||||
],
|
||||
],
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'user' => Sebastienheyd\Boilerplate\Models\User::class,
|
||||
'role' => Sebastienheyd\Boilerplate\Models\Role::class,
|
||||
'permission' => Sebastienheyd\Boilerplate\Models\Permission::class,
|
||||
'user' => App\Models\Core\Auth\User::class,
|
||||
'role' => App\Models\Core\Auth\Role::class,
|
||||
'permission' => App\Models\Core\Auth\Permission::class,
|
||||
];
|
||||
|
||||
304
config/googlmapper.php
Normal file
304
config/googlmapper.php
Normal file
@@ -0,0 +1,304 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Enable Mapping
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Enable Google mapping.
|
||||
|
|
||||
*/
|
||||
'enabled' => true,
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Google API Key
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| A Google API key to link Googlmapper to Google's API.
|
||||
|
|
||||
*/
|
||||
'key' => env('GOOGLE_API_KEY', 'AIzaSyAtqWsq5Ai3GYv6dSa6311tZiYKlbYT4mw'),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Google API version
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| A Google API version to use with Googlmapper.
|
||||
|
|
||||
*/
|
||||
'version' => env('GOOGLE_API_VERSION', 'quarterly'),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Region
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The region Google API should use required in ISO 3166-1 code format.
|
||||
|
|
||||
*/
|
||||
'region' => 'GB',
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Language
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The Language Google API should use required in ISO 639-1 code format.
|
||||
|
|
||||
*/
|
||||
'language' => 'en-gb',
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Asynchronous
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Perform the loading and rendering of Googlmapper map asynchronously.
|
||||
|
|
||||
*/
|
||||
'async' => false,
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Location Marker
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Automatically add a location marker to the provided location for a
|
||||
| Googlmapper displayed map.
|
||||
|
|
||||
*/
|
||||
'marker' => true,
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Center Map
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Automatically center the Googlmapper displayed map on the provided
|
||||
| location.
|
||||
|
|
||||
*/
|
||||
'center' => true,
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Locate Users Location
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Automatically center the Googlmapper displayed map on the users current
|
||||
| location.
|
||||
|
|
||||
*/
|
||||
'locate' => false,
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Default Zoom
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The default zoom level Googlmapper should use.
|
||||
|
|
||||
*/
|
||||
'zoom' => 8,
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Scroll wheel Zoom
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Set if scroll wheel zoom should be used by Googlmapper.
|
||||
|
|
||||
*/
|
||||
'scrollWheelZoom' => true,
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Zoom Control
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Set if zoom control should be displayed by Googlmapper.
|
||||
|
|
||||
*/
|
||||
'zoomControl' => true,
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Map Type Control
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Set if map type control should be displayed by Googlmapper.
|
||||
|
|
||||
*/
|
||||
'mapTypeControl' => true,
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Scale Control
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Set if scale control should be displayed by Googlmapper.
|
||||
|
|
||||
*/
|
||||
'scaleControl' => false,
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Street View Control
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Set if street view control should be displayed by Googlmapper.
|
||||
|
|
||||
*/
|
||||
'streetViewControl' => true,
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Rotate Control
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Set if rotate control should be displayed by Googlmapper.
|
||||
|
|
||||
*/
|
||||
'rotateControl' => false,
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Fullscreen Control
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Set if fullscreen control should be displayed by Googlmapper.
|
||||
|
|
||||
*/
|
||||
'fullscreenControl' => true,
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Map Type
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Set the default Googlmapper displayed map type. (ROADMAP|SATELLITE|HYBRID|TERRAIN)
|
||||
|
|
||||
*/
|
||||
'type' => 'ROADMAP',
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Map UI
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Should the default Googlmapper displayed map UI be shown.
|
||||
|
|
||||
*/
|
||||
'ui' => true,
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Map Marker
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Set the default Googlmapper map marker behaviour.
|
||||
|
|
||||
*/
|
||||
'markers' => [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Marker Icon
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Display a custom icon for markers. (Link to an image)
|
||||
|
|
||||
*/
|
||||
'icon' => '',
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Marker Animation
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Display an animation effect for markers. (NONE|DROP|BOUNCE)
|
||||
|
|
||||
*/
|
||||
'animation' => 'NONE',
|
||||
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Map Marker Cluster
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Enable default Googlmapper map marker cluster.
|
||||
|
|
||||
*/
|
||||
'cluster' => true,
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Map Marker Cluster
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Set the default Googlmapper map marker cluster behaviour.
|
||||
|
|
||||
*/
|
||||
'clusters' => [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cluster Icon
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Display custom images for clusters using icon path. (Link to an image path)
|
||||
|
|
||||
*/
|
||||
'icon' => '//googlearchive.github.io/js-marker-clusterer/images/m',
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cluster Size
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The grid size of a cluster in pixels.
|
||||
|
|
||||
*/
|
||||
'grid' => 60,
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cluster Zoom
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The maximum zoom level that a marker can be part of a cluster.
|
||||
|
|
||||
*/
|
||||
'zoom' => null,
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cluster Center
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Whether the center of each cluster should be the average of all markers
|
||||
| in the cluster.
|
||||
|
|
||||
*/
|
||||
'center' => false,
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cluster Size
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The minimum number of markers to be in a cluster before the markers are
|
||||
| hidden and a count is shown.
|
||||
|
|
||||
*/
|
||||
'size' => 2
|
||||
|
||||
],
|
||||
|
||||
];
|
||||
Reference in New Issue
Block a user