Server : Apache System : Linux 145.162.205.92.host.secureserver.net 5.14.0-611.45.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Apr 1 05:56:53 EDT 2026 x86_64 User : tradze ( 1001) PHP Version : 8.1.34 Disable Function : NONE Directory : /home/tradze/.trash/app_old/Modules/Postcodes/Providers/ |
<?php
namespace App\Modules\Postcodes\Providers;
use App;
use Config;
use Lang;
use View;
use Caffeinated\Modules\Support\ServiceProvider;
class PostcodesServiceProvider extends ServiceProvider
{
/**
* Register the Postcodes module service provider.
*
* This service provider is a convenient place to register your modules
* services in the IoC container. If you wish, you may make additional
* methods or service providers to keep the code more focused and granular.
*
* @return void
*/
public function register()
{
App::register('App\Modules\Postcodes\Providers\RouteServiceProvider');
Lang::addNamespace('postcodes', realpath(__DIR__.'/../Resources/Lang'));
View::addNamespace('postcodes', base_path('resources/views/vendor/postcodes'));
View::addNamespace('postcodes', realpath(__DIR__.'/../Resources/Views'));
}
/**
* Bootstrap the application events.
*
* Here you may register any additional middleware provided with your
* module with the following addMiddleware() method. You may pass in
* either an array or a string.
*
* @return void
*/
public function boot()
{
// $this->addMiddleware('');
}
/**
* Additional Compiled Module Classes
*
* Here you may specify additional classes to include in the compiled file
* generated by the `artisan optimize` command. These should be classes
* that are included on basically every request into the application.
*
* @return array
*/
public static function compiles()
{
$basePath = realpath(__DIR__.'/../');
return [
// $basePath.'/example.php',
];
}
}