Skip to content

Commit

Permalink
Added config files
Browse files Browse the repository at this point in the history
  • Loading branch information
elimentz committed Nov 25, 2023
1 parent 1678ae9 commit b921e77
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ixudra/render",
"description": "Custom PHP rendering library for the Laravel framework - developed by Ixudra",
"version": "1.2.0",
"version": "1.3.0",
"keywords": ["Ixudra", "Laravel", "Rendering"],
"homepage": "https://ixudra.be",
"license": "MIT",
Expand Down
8 changes: 8 additions & 0 deletions src/RenderServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@ class RenderServiceProvider extends ServiceProvider {

public function register()
{
$configPath = __DIR__ . '/config/config.php';

$this->mergeConfigFrom($configPath, 'render');

$this->publishes(array(
$configPath => config_path('render.php'),
), 'config');

$this->app->singleton('Render', function () {
return new RenderingEngine();
}
Expand Down
11 changes: 11 additions & 0 deletions src/config/config.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php


return array(

'date' => array(
'nl' => 'd/m/Y',
'en' => 'Y-m-d',
),

);

0 comments on commit b921e77

Please sign in to comment.