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