Giter Club home page Giter Club logo

laravel-browscap's People

Contributors

kulbakin avatar sergkeim avatar sync667 avatar thirsch avatar tomsix avatar vladyslavstartsev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

laravel-browscap's Issues

Adding support for Laravel 6

Support for bug fixes for Laravel 5.8 ended on August 26, 2019. Security issues are still being maintained until February 26, 2020.

Exception with Browscap-Fascade

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.

Error on composer require

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

ini_set()

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.