Laravel - Call to undefined method Illuminate\Console\GeneratorCommand::handle - php

I'm new to Laravel. and I was trying to create a new CRUD from terminal with this command:
$ php artisan panel:crud gallery
But, it gave me the following error that i have mention below. I've searched for it on google. but I didn't find anything that could help to solve this.
[ ServerFireTeam Panel Crud Generator ]
[Symfony\Component\Debug\Exception\FatalThrowableError]
Call to undefined method Illuminate\Console\GeneratorCommand::handle()
Can anybody put me on the right direction?

You need v5.5 of laravel to run laravelpanel 1.7
for laravelpanel 1.6 (which work with laravel v5.4) you need to register PanelServiceProvider
providers' => array(
Serverfireteam\Panel\PanelServiceProvider::class
)
and run
php artisan panel:install
for more info visit
http://laravelpanel.com/docs/master/automatic-installation

Related

trying to run php artisan tinker returns error "file_exists(): Unable to find the wrapper "hoa" "

I'm trying to open tinker in a Laravel project, but when I run php artisan tinker I get this error:
ErrorException
file_exists(): Unable to find the wrapper "hoa" - did you forget to enable it when you configured PHP?
I can't find everything similar error online, I found only similar errors but with 'wrapper http' .
Does anyone have any suggestions? Thanks
Could this be due to custom code or a library you've imported?
I often find that if I add things to the ServiceProvider or Kernel, they run before many of the artisan commands, and if I've failed to perform the proper "if" checks first, it fails.
I suppose the question I would have in return would be; Is this a fresh Laravel install or have you got custom code and libraries running? I would check there, try removing libraries you've added, HOA from my searching doesn't appear to default to Laravel.
— Happy to revise my answer should more detail be provided
Solved with this command founded on github:
composer require psy/psysh:0.11.2 --dev

NeoEloquent Undefined property: Illuminate\Database\Query\Builder::$matches

I'm new to Neo4J and Laravel combined. I was trying out the Vinelab\NeoEloquent library to have a wrapper for Eloquent. Now if i try the default laravel auth code it gives me the following error: Undefined property: Illuminate\Database\Query\Builder::$matches.
I haven't changed anything but i was wondering if someone with experience could help me out? Do i need to change something? Registration works. It created the :User node fine. it also gives an error there: Call to a member function lastInsertId() on null.
Please note i use unedited Laravel authentication using the artisan make:auth function. As of writing this I'm using the latest version of Laravel (5.5) and the Vinelab\neoEloquent ^1.4.4 version.
Thanks in advance!

laravel 5.3 Auth::user() not found

I am struggeling to get user authentication correct in a laravel 5.3 project.
To be sure of the configuration, I just started from a brand new project, but still no progress.
So these are my actions so far using https://laravel.com/docs/5.3
first downloading the latest laravel project
composer global require "laravel/installer"
then installed using
laravel new website
opening this, shows me the laravel standard template, so I consider this as a successfull installation
now, I try to use the Auth module as described in https://laravel.com/docs/5.3/authentication#retrieving-the-authenticated-user
showing:
I updated this in Controller.app, but "Auth::user()" is not possible as seen in this screenshot
This raises questions for me:
what do I do wrong to get Auth::user() working as described in the manual?
in laravel 5.2 I could write "use Auth;" in the controller using the alias as described in app.php, now the alias is found while tiping "use Auth", but still the "use ...." is written full after I type the alias and press enter. If I type "use Auth;" without pressing enter, the Auth throws an "undefined class" error. Is this an optional setting to use the alias names? or error in laravel?
Thank you
Read the Authentication Guide.
You probably forgot to run php artisan make:auth.

laravel 4.2 environment setup on ubuntu

I followed the other post in stackoverflow. I had pretty much the same question but the problem is that his answer didn't solve my problem.
The post I tried is
Laravel 4.2 - Environment detection - homestead.yaml vs. start.php
I tried the answer in that post but I get errors like
( ! ) Error: Call to a member function environment() on null in /home/vagrant/Code/tickets/bootstrap/start.php on line 34
I checked using php artisan env it just says production but when I use the code / method from the post above and I used php artisan env in terminal I will get the error instead of saying production.
How can I solve this?
Thanks in advance for any help

Laravel 4 Commands stopped working suddenly

Back from vacation, and when I'm trying to run one of my previously working command:
php artisan list
Throws me:
[root#api2]# php artisan list
{"error":{"type":"Symfony\\Component\\Debug\\Exception\\FatalErrorException","message":"Call to a member function getArgument() on a non-object","file":"\/var\/www\/html\/api2.alariscms.com\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php","line":153}}
And I seriously cannot understand why this happens. I tried debugging the file that throws an error. It awaits argument:
InputInterface $input but it gets NULL
I don't know what can go wrong on a framework level to stop receiving the required object.
Any ideas where to start debugging from? Or I can reload configurations / update laravel via cmd?
Thanks
This is what I would do:
php artisan dump
composer dump-autoload
check for current Laravel version
and then go to that specific command and check for bug there.
Also, what kind of argument are you trying to pass to command ? Is that object - if so check where is implementation of that class ?

Categories