for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace MadWeb\Seoable;
use Illuminate\Support\ServiceProvider;
class SeoableServiceProvider extends ServiceProvider
{
/**
* Bootstrap the application services.
*/
public function boot()
if ($this->app->runningInConsole()) {
$this->publishResources();
}
// Translations
$this->loadTranslationsFrom(__DIR__.'/../resources/lang', 'seoable');
$this->app->register(\Artesaos\SEOTools\Providers\SEOToolsServiceProvider::class);
* Register the application services.
public function register()
$this->mergeConfigFrom(__DIR__.'/../config/seoable.php', 'seoable');
protected function publishResources()
// Config
$this->publishes([
__DIR__.'/../config/seoable.php' => config_path('seoable.php'),
], 'config');
// Database
if (! class_exists('CreateSeoTable')) {
// Publish the migration
$timestamp = date('Y_m_d_His', time());
__DIR__.'/../database/migrations/create_seo_table.php.stub' => $this->app->databasePath().'/migrations/'.$timestamp.'_create_seo_table.php',
databasePath()
Illuminate\Contracts\Foundation\Application
basePath()
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.
], 'migrations');
__DIR__.'/../resources/lang' => resource_path('lang/vendor/seoable'),
], 'lang');
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.