mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-09-21 00:41:34 +02:00
e4f46c2a4e
* 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
38 lines
751 B
PHP
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()
|
|
{
|
|
//
|
|
}
|
|
}
|