Category : package

Everytime I would try to install $ composer require torann/currency I would get this error Problem 1 – torann/currency[1.1.0, …, 1.1.1] require illuminate/support ^6.0|^7.0|^8.0 -> found illuminate/support[v6.0.0, …, 6.x-dev, v7.0.0, …, 7.x-dev, v8.0.0, …, 8.x-dev] but these were not loaded, likely because it conflicts with another require. – Root composer.json requires torann/currency ^1.1 -> satisfiable ..

Read more

composer require barryvdh/laravel-dompdf Using version ^0.9.0 for barryvdh/laravel-dompdf ./composer.json has been updated Running composer update barryvdh/laravel-dompdf Loading composer repositories with package information Updating dependencies Your requirements could not be resolved to an installable set of packages. Problem 1 – fzaninotto/faker is locked to version v1.9.1 and an update of this package was not requested. – ..

Read more

I have the following error by installing spatie/laravel-stripe-webhooks whit composer after trying to downgrade composer version or remove some packages , could’t resolve the problem Your requirements could not be resolved to an installable set of packages. Problem 1 – Root composer.json requires spatie/laravel-stripe-webhooks 2.0.0 -> satisfiable by spatie/laravel-stripe-webhooks[2.0.0]. – spatie/laravel-stripe-webhooks 2.0.0 requires illuminate/support ~5.8.0 ..

Read more

I try to sign up by Facebook, using Laravel 7 and package (Socialite), when press on the URL: <div class="form-group row mb-0"> <div class="col-md-6 offset-md-4"> <a href="{{url(‘redirect/facebook’)}}">login with your facebook account</a> </div> </div> The redirect page runs the app, i created in facebook developers as the img: when press (continue as Mahmoud) and put my ..

Read more

$accessToken = env(‘ACCESS_TOKEN’); $client = new Client([ ‘base_uri’ => ‘https://api.some-endpoint.com/’, ‘allow_redirects’ => true, ]); $response = $client->get(‘https://api.some-endpoint.com/’ , array( ‘headers’ => [‘Authorization’ => ‘Bearer ‘ . $accessToken], )); dd($response->getBody()); // Result of above dd(); // Response {#1572 ▼ // -reasonPhrase: "OK" // -statusCode: 200 // -headers: array:12 [▶] // -headerNames: array:12 [▶] // -protocol: "1.1" ..

Read more

Goal Login a user in a Laravel package. Problem Pressing the login button redirects to the startpage and in the console i get a 302 status code. Thats the route of the login button: <a href="{{ route(‘login’) }}">Login</a>. It is defined in web.php as follows: Route::get(‘login’, [LoginController::class, ‘login’])->name(‘login’). The same happens when i try it ..

Read more

I am trying to develop a new Laravel package locally installed via Composer. These are my steps: I install a new Laravel application with composer create-project laravel/laravel my-application I create a new directory in the root with the following content: packages/randolf/custom-package/composer.json { "name": "randolf/custom-package", "description": "My new Custom Package", "type": "library", "license": "MIT", "require": {}, ..

Read more

ErrorException Required parameter $dompdf follows optional parameter $paper IlluminateFoundationBootstrapHandleExceptions::handleError vendordompdfdompdfsrcAdapterCPDF.php:182 182 public function __construct($paper = "letter", $orientation = "portrait", Dompdf $dompdf) Above snippet is error that showing in browser. I have done composer require barryvdh/laravel-dompdf step by step My PdfController code is below <?php namespace AppHttpControllers; use IlluminateHttpRequest; class PdfController extends Controller { public function ..

Read more

I know the title topic sounds similar to other questions, but I’ve searched many topics on stackoverflow and none resolve my issue. I am currently developing a package under Laravel ^8.12, below the content of the function that register my routes: protected function registerRoutes(): void { Route::prefix(‘workflowmakr’) ->namespace(‘AlvariumDigitalWorkflowMakrHttpControllers’) ->as(‘workflowmakr.’) ->middleware(config(‘workflowmakr.routes_middleware’)) ->group(__DIR__ . ‘/../routes/api.php’); } And ..

Read more

I have this problem. When I create new Middleware and write this code This is an error text syntax error, unexpected ‘printf’ (T_STRING), expecting function (T_FUNCTION) or const (T_CONST) namespace AppHttpMiddleware; use CarbonCarbon; use Closure; use IlluminateHttpRequest; class CheckTime { printf("Right now is %s", Carbon::now()->toDateTimeString()); // $now = Carbon::now(); // $start = Carbon::createFromTimeString(’00:00′); // $end ..

Read more

I’m using Scrutinizer for CI my Laravel package. It happens that an AppHttpControllersController not found issue is always there for controller: The type AppHttpControllersController was not found. Maybe you did not declare it correctly or list all dependencies? I don’t think the code is wrong and the package is working fine. I checked a few ..

Read more