Laravel 5 support
This commit is contained in:
parent
771be10e9a
commit
c7cf296d98
|
@ -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'),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
if (method_exists($this, 'loadViewComponentsAs')) {
|
||||||
|
// Laravel 7+
|
||||||
$this->loadViewComponentsAs('connect', [
|
$this->loadViewComponentsAs('connect', [
|
||||||
Button::class
|
\Bluesquare\Connect\View\Components\Button::class
|
||||||
]);
|
]);
|
||||||
|
}
|
||||||
|
|
||||||
// Commands
|
// Commands
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue