for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Yoeunes\Rateable;
use Yoeunes\Rateable\Services\Raty;
use Illuminate\Support\ServiceProvider;
class RateableServiceProvider extends ServiceProvider
{
/**
* Bootstrap the application events.
*/
public function boot()
$this->publishes([
__DIR__.'/../config/rateable.php' => config_path('rateable.php'),
], 'config');
if (! class_exists('CreateRatingsTable')) {
__DIR__.'/../migrations/create_ratings_table.php' => database_path('migrations/'.date('Y_m_d_His', time()).'_create_ratings_table.php'),
], 'migrations');
}
* Register the service provider.
public function register()
$this->mergeConfigFrom(__DIR__.'/../config/rateable.php', 'rateable');
$this->app->bind('raty', function () {
return new Raty();
});