1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-21 00:41:34 +02:00
invoiceninja/app/Providers/AppServiceProvider.php
David Bomba e4f46c2a4e
Presenters, skinned views, model refactoring (#2464)
* Default database connection - set defaults for engine and strict

* Working on tests for refactored model

* Fixes for tests, use polymorphic relationships for Invitations

* skin the password reset pages
2018-10-22 23:04:37 +11:00

38 lines
751 B
PHP

<?php
namespace App\Providers;
use Illuminate\Database\Eloquent\Relations\Relation;
use Illuminate\Support\Facades\Blade;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
{
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
Relation::morphMap([
'invoices' => '\App\Models\Invoice',
'proposals' => '\App\Models\Proposal',
]);
Blade::if('env', function($environment){
return config('ninja.environment') === $environment;
});
}
/**
* Register any application services.
*
* @return void
*/
public function register()
{
//
}
}