You've already forked laravel-connect
Laravel 5 support
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
namespace Bluesquare\Connect;
|
||||
|
||||
use Bluesquare\Connect\Commands\Sync;
|
||||
use Bluesquare\Connect\View\Components\Button;
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
|
||||
class ConnectServiceProvider extends ServiceProvider
|
||||
@@ -54,9 +53,12 @@ class ConnectServiceProvider extends ServiceProvider
|
||||
__DIR__.'/../resources/views/connect' => resource_path('views/vendor/connect'),
|
||||
]);
|
||||
|
||||
$this->loadViewComponentsAs('connect', [
|
||||
Button::class
|
||||
]);
|
||||
if (method_exists($this, 'loadViewComponentsAs')) {
|
||||
// Laravel 7+
|
||||
$this->loadViewComponentsAs('connect', [
|
||||
\Bluesquare\Connect\View\Components\Button::class
|
||||
]);
|
||||
}
|
||||
|
||||
// Commands
|
||||
|
||||
|
||||
Reference in New Issue
Block a user