@acanto/laravel-frontend

PHP composer package to assist Laravel frontend apps

Usage no npm install needed!

<script type="module">
  import acantoLaravelFrontend from 'https://cdn.skypack.dev/@acanto/laravel-frontend';
</script>

README

Laravel Frontend

composer

For all the documentation refer to the Acanto Framework Docs.

This package is automatically mirrored as a standalone repository to GitLab through a postpublish npm script that lerna run after its publish work. Composer installs acanto/laravel-frontend through the packagist.org's package which points to this public GitLab repo.

How to

Develop this package locally

Simply symlink your development version inside the project's vendor folder.

Use a forked package

Add to your project's composer.json:

  "repositories": [
      {
          "type": "vcs",
          "url": "git@git.acanto.net:acanto-forks/laravel-page-speed.git"
      }
  ],
  "require": {
      "renatomarinho/laravel-page-speed": "dev-master"
  }

One liners

One liner to clear local cache:

php artisan config:clear && php artisan route:clear && php artisan view:clear && php artisan cache:clear && composer dump-autoload

One liner to optimize laravel:

php artisan config:cache && php artisan route:cache && php artisan view:cache && composer dump-autoload

Development

Notes

Flood prevention

Caching

Sitemap