kulbakin / laravel-browscap Goto Github PK
View Code? Open in Web Editor NEWBrowscap-PHP for Laravel 5
License: MIT License
Browscap-PHP for Laravel 5
License: MIT License
I got the following exception while trying to use the fascade:
"Call to undefined method Illuminate\Log\Writer::driver()"
Changing "$app->make('log')->driver()" to "$app->make('log')" in BrowscapServiceProvider.php seems to solve the problem.
Hi based on Laravel 5 uses PSR-2
PSR-2 Extends PSR-1 in which php ini_set()
is in Side Effects
I think ini_set should be removed from command and be set by End user if necessary.
When running artisan
command we can always do:
php -d memory_limit=512M artisan browscap:update
When running composer require propa/laravel-browscap
I get the following error: Any help appreciated.
> @php artisan package:discover --ansi
TypeError
BrowscapPHP\Command\CheckUpdateCommand::__construct(): Argument #1 ($defaultCacheFolder) must be of type string, null given, called in /var/www/html/vendor/propa/laravel-browscap/src/Console/CheckUpdateCom
mand.php on line 23
at vendor/browscap/browscap-php/src/Command/CheckUpdateCommand.php:30
26▕ * @var string
27▕ */
28▕ private $defaultCacheFolder;
29▕
➜ 30▕ public function __construct(string $defaultCacheFolder)
31▕ {
32▕ $this->defaultCacheFolder = $defaultCacheFolder;
33▕
34▕ parent::__construct();
+1 vendor frames
2 [internal]:0
Propa\BrowscapPHP\Console\CheckUpdateCommand::__construct()
+12 vendor frames
15 artisan:37
Illuminate\Foundation\Console\Kernel::handle()
Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1
ERROR: 1
Did you have any success on using laravel-browscap 2.0.8 on a php 8 project? For me, browscap 4.3 can not be installed on php 8 and I have to manually override the version in my installation like "browscap/browscap-php": "5.0.0 as 4.3.0",
in my composer.json
On the package page https://packagist.org/packages/propa/laravel-browscap it's still 1.1.0 version, can you please update it there?
The Browscap 4.0 is almost ready we/you/me should prepare service provider to match it.
Support for bug fixes for Laravel 5.8 ended on August 26, 2019. Security issues are still being maintained until February 26, 2020.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.