Laravel 5.2 view in register a provider - laravel

i have installed the chat package:
https://github.com/dazzz1er/confer
Unfortunately i get an error when i try to publish it. Here is the error:
[Symfony\Component\Debug\Exception\FatalErrorException]
Call to undefined method Illuminate\Support\Facades\View::composer()
Thanks !

As correctly pointed out by #curious_coder confer is not compatible with Laravel 5.2 yet. Please keep an on the open Laravel 5.2 issue on Github and/or ask the author of this package for updates.

Related

Cannot generate ApiDoc assets in Laravel 9

I'm new to laravel and I'm having some issues in generating an api documentation (SwaggerAPI, OpenAPI, Postman, whatever it works). I am upgrading a laravel application and got stuck got a few things I need to do solve with the latest version (9.x)
I've followed the steps installing the most popular libraries but I failed getting and error because of lumen is a higher version that is not supported. I also cannot run artistan vendor because it seems not working in Laravel 9 neither.
I've tested the following libraries and they didn't run in Laravel 9:
L5 Swagger
laravel-apidoc-generator
Laravelista and Vendor
Can anyone help me?

ErrorException - Trying to access array offset on value of type null in ServiceProvider.php line 84 in Lumen

I am new to Lumen so I just downloaded and installed a fresh lumen setup but unfortunately as soon as I hit postman it sends me above error. I have read many posts all says to use isset() i did so but still error persists therefore i request to help me.
Composer update also does not work.
Thanks!
It seems to be an issue between your version of PHP and Lumen 5.*
I found something here https://github.com/DarkaOnLine/SwaggerLume/issues/82
This worked for me
// in bootstrap/app.php
$app->configure('view');

Laravel returning random Carbon Method Illuminate\\Support\\Carbon::getTimestamp does not exist error on ajax call

New installation of Laravel - tried to reinstall and run composer update - same issue.
Laravel api project is returning randomly "Method Illuminate\Support\Carbon::getTimestamp does not exist." after ajax call from axios in separate vue.js client side project. This does not happen for every request. I will greatly appreciate any help.
I am experiencing the same problem, and simple "composer update" after some time should fix this, as Carbon breaks Laravel compatibility.

sentry throw error on laravel 5.1

I have use Laravel 5.1 with "jenssegers/raven": "^1.4"
When I run composer self-update on server then found error page isn’t working
Error log is:
PHP message: PHP Fatal error: Uncaught exception 'ErrorException' with message 'preg_match() expects parameter 2 to be string, object given' in /var/www/html/www.something.com/vendor/sentry/sentry/lib/Raven/SanitizeDataProcessor.php:54
Kindly help me, how to resolve this issue. I appreciate all response.
It looks like you're using an unofficial version of Sentry's old raven client.
You should upgrade to the latest Sentry Laravel client, as we're moving off raven. If you continue to have problems, email us!

Upgrading to Laravel 5.2

having some issues trying to upgrade to Laravel 5.2 from the previous latest version.
On composer update or any artisan class I get the follow error ...
Class validator does not exist
Can not work out whats going on at all.
Any ideas?
Many thanks!
Turns out Whoops was catching a HttpResponseException of which the upgrade docs do say could cause issues. So removed Whoops as problem solved.

Resources