This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.
There is no license information available for the latest version (dev-master) of this package.

Core package

dev-master 2020-01-27 21:25 UTC

This package is auto-updated.

Last update: 2021-11-28 01:19:45 UTC


Total Downloads Latest Stable Version

Pulsar is an application that generates a control panel where you start creating custom solutions, provides the resources necessary for any web application.


1 - After install Laravel framework, execute on console:

composer require syscover/pulsar-core

Register service provider, on file config/app.php add to providers array**

 * DH2 Application Service Providers...

2 - Execute publish command

php artisan vendor:publish --provider="Syscover\Core\CoreServiceProvider"

3 - And execute migrations

php artisan migrate

4 - Execute command to create encryption keys fot laravel passport

php artisan passport:install

5 - Add Passport::routes method within the boot method of your app/Providers/AuthServiceProvider

This method will register the routes necessary to issue access tokens and revoke access tokens, clients, and personal access tokens

use Laravel\Passport\Passport;

 * Register any authentication / authorization services.
 * @return void
public function boot()
    Passport::routes();  // add laravel passport routes

6 - Don't forget to register CORS in your server, the following example is for apache server

Header add Access-Control-Allow-Origin "*"
Header add Access-Control-Allow-Headers "authorization, origin, x-requested-with, content-type"
Header add Access-Control-Expose-Headers "authorization"
Header add Access-Control-Allow-Methods "PUT, GET, POST, DELETE, OPTIONS"

7 - You may need to extend both the PHP memory on your server as well as the upload limit

php_value post_max_size 1000M
php_value upload_max_filesize 1000M
php_value memory_limit 256M

8 - create link to storage folder

php artisan storage:link

9 - Execute publish command

php artisan vendor:publish --provider="Nuwave\Lighthouse\LighthouseServiceProvider"
php artisan vendor:publish --provider="Syscover\Core\CoreServiceProvider"

10 - Set GraphQl middleware

In config/lighthouse.php add to route => middleware array

'middleware' => ['api', 'client'],

and add the validation handler in error_handlers

'error_handlers' => [

11 - Consumption of the API from localhost To consume API resources from your own domain you can use the following route.

You will need to send CSRF token in your requests to verify that you make the requests from laravel.

12 - Add scss In file in resources/assets/sass/app.scss you can add utilities scss files

// Material
@import "../../../vendor/syscover/pulsar-core/src/resources/sass/material/elevations";

// Partials
@import "../../../vendor/syscover/pulsar-core/src/resources/sass/partials/forms";
@import "../../../vendor/syscover/pulsar-core/src/resources/sass/partials/typography";
@import "../../../vendor/syscover/pulsar-core/src/resources/sass/partials/helpers";
@import "../../../vendor/syscover/pulsar-core/src/resources/sass/partials/cookies-consent";
@import "../../../vendor/syscover/pulsar-core/src/resources/sass/partials/vue";

if you use Laravel Mix set this code

    ], 'public/css/all.css')
    ], 'public/css/app.css')
    ], 'public/js/all.js')