acanto / laravel-frontend
Laravel package to build frontend applications in tandem with `laravel-scripts`
1.1.7
2023-06-08 18:24 UTC
Requires
- php: ^8.1
- fideloper/proxy: ^4.2
- guzzlehttp/guzzle: ^7.2
- intervention/image: ^2.5
- laravel/framework: ^9.19
- laravel/tinker: ^2.7
- nunomaduro/collision: ^6.1
- renatomarinho/laravel-page-speed: ^2.1
- silber/page-cache: ^1
- spatie/crawler: ^7.1
- swayok/alternative-laravel-cache: ^6.1
- swayok/cache-filesystem-adapter: *
- dev-master
- 1.1.7
- 1.1.6
- 1.1.5
- 1.1.4
- 1.1.3
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
- 1.0.0-alpha.1
- 1.0.0-alpha.0
- 0.3.16
- 0.3.15
- 0.3.14
- 0.3.13
- 0.3.12
- 0.3.11
- 0.3.10
- 0.3.9
- 0.3.8
- 0.3.7
- 0.3.6
- 0.3.5
- 0.3.4
- 0.3.3
- 0.3.2
- 0.3.1
- 0.3.0
- 0.2.13
- 0.2.12
- 0.2.11
- 0.2.10
- 0.2.9
- 0.2.8
- 0.2.7
- 0.2.6
- 0.2.5
- 0.2.4
- 0.2.3
- 0.2.2
- 0.2.1
- 0.2.0
- 0.1.102
- 0.1.101
- 0.1.100
- 0.1.98
- 0.1.97
- 0.1.96
- 0.1.95
- 0.1.94
- 0.1.93
- 0.1.92
- 0.1.91
- 0.1.90
- 0.1.89
- 0.1.88
- 0.1.87
- 0.1.86
- 0.1.85
- 0.1.84
- 0.1.83
- 0.1.82
- 0.1.81
- 0.1.80
- 0.1.79
- 0.1.78
- 0.1.76
- 0.1.75
- 0.1.74
- 0.1.73
- 0.1.72
- 0.1.71
- 0.1.70
- 0.1.69
- 0.1.68
- 0.1.67
- 0.1.66
- 0.1.64
- 0.1.63
- 0.1.62
- 0.1.61
- 0.1.60
- 0.1.59
- 0.1.58
- 0.1.57
- 0.1.56
- 0.1.55
- 0.1.54
- 0.1.53
- 0.1.52
- 0.1.51
- 0.1.50
- 0.1.49
- 0.1.48
- 0.1.47
- 0.1.45
- 0.1.44
- 0.1.43
- 0.1.42
- 0.1.41
- 0.1.40
- 0.1.38
- 0.1.37
- 0.1.36
- 0.1.35
- 0.1.34
- 0.1.33
- 0.1.32
- 0.1.31
- 0.1.29
- 0.1.28
- 0.1.27
- 0.1.26
- 0.1.25
- 0.1.24
- 0.1.23
- 0.1.22
- 0.1.21
- 0.1.20
- 0.1.19
- 0.1.18
- 0.1.17
- 0.1.16
- 0.1.15
- 0.1.14
- 0.1.13
- 0.1.12
- 0.1.11
- 0.1.10
- 0.1.9
- 0.1.8
- 0.1.7
- 0.1.6
- 0.1.5
- 0.1.4
- 0.1.3
- 0.1.2
- 0.1.1
- 0.1.0
- 0.0.39
- 0.0.38
- 0.0.37
- 0.0.36
- 0.0.35
- 0.0.34
- 0.0.33
- 0.0.32
- 0.0.31
- 0.0.30
- 0.0.29
- 0.0.28
- 0.0.27
- 0.0.26
- 0.0.25
- 0.0.24
- 0.0.23
- 0.0.22
- 0.0.21
- 0.0.20
- 0.0.19
- 0.0.18
- 0.0.17
- 0.0.16
- 0.0.15
- 0.0.14
- 0.0.13
- 0.0.12
- 0.0.11
- 0.0.10
- 0.0.9
- 0.0.8
- 0.0.7
- 0.0.6
- 0.0.3
- 0.0.1
This package is auto-updated.
Last update: 2024-11-08 21:29:11 UTC
README
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.
Migration
0.x to 1.x
In your project using LaravelFrontend
update:
./composer.json
: bump"barryvdh/laravel-debugbar"
to"^3.6"
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
- to manage trailing slashes we might use illuminatech/url-trailing-slash
- Take a deeper look at package-skeleton-laravel
- About protecting http request based image resizing with signed URL
- Laravel optimization
- Laravel optimization
- A way to handle authentication through just session and cookies and comunicate with API, for Laravel 6.0
- Laravel Resources to create intermediary between thirdy-part API and laravel application
- Laroute, package to pass laravel routes to js (might be useful to implement barba.js)
- Usecase about Laravel routes optimization
- About creating a middleware to check incoming requests domain, this is useful to create protected hooks for the CMS to clear/manages the cache on specific actions, e.g. saving a new product during data entry
- About not using env outside config files to get cache and speed
- About authentication with external API: recent, 1 2, 3
- About Laravel and OPcache
Flood prevention
- Old and small antiflood system for Laravel
- About Laravel's throttle middleware and load balancer HAProxy
Caching
- Middleware
throttle
might cause high disk IO if we use it too much (e.g. for images) with a cachefile
driver (source) - Performance comparison of cache drivers
- Alternative cache system with tagging for file driver cache: alternative-laravel-cache, see laravel 9 support issue (we followed the suggested swap of cache adapter dependency and it works)
- Cache tagging library for file driver cache: taggedFileCache
- Cache library for Laravel laravel-responsecache
Sitemap
- Can a sitemap not be at the root of the website?
- Images sitemap to boost SEO friendly images names despite hashed cached images filenames: we could generate an image sitemap that would read all the cache and map original filenames from the CMS (cleaned up of their timestamp) to each URL of its cropped/resized/transformed versions. Another way would be to perhaps use
iptc
images metadata, Intervention supports it withgd
driver too.