for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Scool\EnrollmentMobile\Providers;
use Illuminate\Support\ServiceProvider;
/**
* Class EnrollmentServiceProvider
* @package Scool\Enrollment\Providers
*/
class EnrollmentMobileServiceProvider extends ServiceProvider
{
public function register()
if (!defined('SCOOL_ENROLLMENT_MOBILE_PATH')) {
define('SCOOL_ENROLLMENT_MOBILE_PATH', realpath(__DIR__.'/../../'));
}
public function boot()
$this->loadMigrations();
$this->publishFactories();
$this->publishConfig();
$this->publishTests();
public function loadMigrations()
$this->loadMigrationsFrom(SCOOL_ENROLLMENT_MOBILE_PATH.'/database/migrations');
public function publishFactories()
$this->publishes(
[ SCOOL_ENROLLMENT_MOBILE_PATH . '/database/Enrollment.php' =>
database_path().'/factories/EnrollmentMobileFactory.php'],
"scool_enrollment_mobile"
);
public function publishTests()
[
SCOOL_ENROLLMENT_MOBILE_PATH .
'/tests/EnrollmentMobileTest.php' => 'tests/EnrollmentMobileTest.php'
], "scool_enrollment_mobile"
private function publishConfig() {
[ SCOOL_ENROLLMENT_MOBILE_PATH . '/config/enrollment.php' =>
database_path().'/factories/EnrollmentMobileFactory.php'],"scool_enrollment_mobile"
$this->mergeConfigFrom(
SCOOL_ENROLLMENT_MOBILE_PATH . '/config/enrollment_mobile.php', 'scool_enrollment_mobile'