#### Category : composer-php

if I include the mathjax and mathjs files directly to my app.blade.php file everything works. <script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/[email protected]/es5/tex-chtml.js"></script> <script src="{{asset(‘/js/math.min.js’)}}" type="text/javascript"></Script> <script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script> <script> MathJax = { tex: {inlineMath: [[‘$’, ‘$’], [‘(‘, ‘)’]]} }; </script> however if I do this the composer way : first I install the packages: composer require components/mathjs composer require ..

I’m using mac os and install MAMP 5.7. when I run PHP -v on the terminal it says PHP version is 7.2 but when I try to create Laravel project I got this error. I don’t know why the composer recognizes that the PHP version in 5.6 Sourc..

I’m having a problem with my Laravel framework, we are currently working on an outdated version of Laravel, 4.2 but we do not have the permission to upgrade sadly. I have a Windows 10 computer, with an Ubuntu Terminal, latest version, in which I run most of my PHP commands inside this terminal. When I ..

I created an api which is delivered with package development composer. in Laravel 7 it was possible to add the route model binding with: Route::group([‘namespace’ => ‘AcmePackageappHttpControllersApi’], function () { // fomer possibility: Route::apiResource(‘api/comments/’, ‘CommentController’)->middleware(‘bindings’);}); In Laravel 8 that’s not possible anymore. I’ve tried almost everything the last days, but either the route-model-binding is not ..

I have been trying to set up this code and composer give me following error when I run the command: composer require laravel/ui I have been trying to search for solutions for this error, however, nothing really seems to work. I get the following error: – Conclusion: remove laravel/framework v7.25.0 – Conclusion: don’t install laravel/framework ..

I am working on xampp as + with composer installed on Win8.1. Below is the error I get when I want to install a project with Laravel. Sourc..

Warning:require(C:xampphtdocscms-3.0bootstrap/../vendor/autoload.php):failed to open stream: No such file or directory in I am working on xampp as + with the composer installed on Win8.1. Below is the error I get when I want to install a project with Laravel. Warning:require(C:xampphtdocscms-3.0bootstrap/../vendor/autoload.php):failed to open stream: No such file or directory in Sourc..

I cloned a laravel app, ran through the standard of composer install and so on. I first got an error of view could not be found in the adminLTE folder. Finally got that fixed by reinstalling adminLTE and then clearing the cache. However now I am confronted with the following error on line 2 ErrorException ..

I cloned a laravel app, ran through the standard of composer install and so on. I first got an error of view could not be found in the adminLTE folder. Finally got that fixed by reinstalling adminLTE and then clearing the cache. However now I am confronted with the following error on line 2 ErrorException ..

I have scripts in my package and I need it to run automaticly but it doesn’t "scripts": { "pre-package-install": [ "bash vendorDPCODPAdminlaravel_version_check.sh" ] } Sourc..

I have scripts in my package and I need it to run automaticly but it doesn’t "scripts": { "pre-package-install": [ "bash vendorDPCODPAdminlaravel_version_check.sh" ] } Sourc..

I created a Laravel 5.8 project, and I want to install npm. So I typed npm install but I get this message: npm WARN deprecated [email protected]: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1 npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated npm WARN deprecated [email protected]: Chokidar ..

I created a Laravel 5.8 project, and I want to install npm. So I typed npm install but I get this message: npm WARN deprecated [email protected]: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1 npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated npm WARN deprecated [email protected]: Chokidar ..

im trying to install laravel package on composer and i used that code on cmd : composer global require laravel/installer and i faced with Composer could not find a composer.json file in C:UsersSePehRDocuments To initialize a project, please create a composer.json file as described in the https://getcomposer.org/ "Getting Started" section then i went to https://getcomposer.org/ ..

So this problem has been bugging me for days now. I wanted to install a package named barryvdh/laravel-dompdf for my project but no download progress is being shown. Not even a message if it even started in the first place. This is the only output it shows 1/13: http://repo.packagist.org/p/provider-archived$f21ffe3fef846deb42f01d076c03003e2951b0eee346bb5e4dcdd44a6d023c6a.json 56: Recv failure: Connection was reset: .. Read more I have a weird problem with tinker, when in the tinker console, whenever I write a class path, no matter what name is, I get an error, but is because the name of the class That I wrote is being cutted off in the first path plus 3 letters. for example: RamseyUuidUuid::uuid4()->toString() returns PHP Fatal .. Read more I am trying to install composer on my Windows 7 but there is an error. How do I solve this? Here I attached an image of the error. Composer_error Sourc.. Read more I try to run laravel 7.26.1 app under php 7.4.10 (I worked under php 7.3 before) in Kununtu 18 and I got error on composer install command: In ComposerRepository.php line 637: Could not load package mews/purifier in http://packagist.org: [UnexpectedValueException] Could not parse version constraint ~4.*: Invalid version string "~4.*" In VersionParser.php line 485: Could not .. Read more I installed laravel 5.8, and then i did composer require tcg/voyager:1.3.2. I didn’t used composer require tcg/voyager cause apparently it doesn’t supports laravel 5.8. However it keeps failling and throwing this problem: Problem 1 – Can only install one of: league/flysystem[1.1.3, 1.0.x-dev]. – Can only install one of: league/flysystem[1.0.x-dev, 1.1.3]. – Can only install one .. Read more I am attempting to upgrade auth0/auth0-php to version 7.3.0 as available on GitHub here This is part of my process to upgrade Laravel from 7.x to 8.x. In composer.json, I have the following defined as required: "require": { "php": "^7.2.5", "doctrine/dbal": "^2.10", "auth0/auth0-php": "^7.3", "fideloper/proxy": "^4.2", "fruitcake/laravel-cors": "^1.0", "guzzlehttp/guzzle": "^7.0.1", "laravel/framework": "^8.0", "laravel/tinker": "^2.0", "twilio/sdk": .. Read more I’m trying to use local composer package in Laravel (8.0) – based on How to develop a simple Laravel package locally I’m using simonschaufi/laravel-dkim Local copy of package is located in directory:/packages/simonschaufi/laravel-dkim My composer file: "laravel-dkim": { "type": "path", "url": "/packages/simonschaufi/laravel-dkim", "options": { "symlink": true } } }, "require": { "simonschaufi/laravel-dkim": "@dev" }, "config": { .. Read more I need to check the project’s version then do some script of a package ,is it possible? something like this "scripts": { "post-package-update": "composer info –installed laravel/framework | grep ‘versions’ &> /dev/null && composer require laravel/ui" } Sourc.. Read more I’ve removed composer.lock and vendor folder and installed all composer packages again, but after that I can’t use Storage class anymore. It was working fine before. I’m now just trying:$s3 = Storage::disk(‘s3’); exit; And it produces this error: Argument 1 passed to LeagueFlysystemAwsS3v3AwsS3Adapter::__construct() must be an instance of AwsS3S3ClientInterface, instance of AwsS3S3Client given, called ..