Subiendo proyecto completo sin restricciones de git ignore

This commit is contained in:
Jose Sanchez
2023-08-17 11:44:02 -04:00
parent a0d4f5ba3b
commit 20f1c60600
19921 changed files with 2509159 additions and 45 deletions

View File

@@ -0,0 +1,49 @@
<?php
namespace GeneaLabs\LaravelSocialiter\Providers;
use GeneaLabs\LaravelSocialiter\Socialiter;
use Illuminate\Support\ServiceProvider as LaravelServiceProvider;
class ServiceProvider extends LaravelServiceProvider
{
protected $defer = false;
public function boot()
{
if (Socialiter::$runsMigrations) {
$this->loadMigrationsFrom(__DIR__ . "/../../database/migrations");
}
$this->publishes(
[
__DIR__ . '/../../database/migrations/' => database_path('migrations')
],
'migrations'
);
}
public function register()
{
// $this->registerConfiguration();
$this->registerFacade();
}
protected function registerFacade()
{
$this->app->bind(
'socialiter',
function () {
return new Socialiter;
}
);
}
// protected function registerConfiguration()
// {
// $this->mergeConfigFrom(
// __DIR__ . '/../../config/services.php',
// 'services'
// );
// }
}