$ php artisan make:auth
Command "make:auth" is not defined.
Did you mean one of these? make:migration make:seeder
I am getting this error while trying to setup the Auth Controllers. What is the way out?
Are there any repositories from where I can take these?
You can't use this command with Lumen.
You have to follow the documentation. It's simplier than Laravel.
Besides, you can use this plugin to improve lumen commands.
Related
short question. I got a site in Typo3 8.7 it was created in Classic Mode.
I installed a lot of extensions ( Realurl and stuff).
Now i want to port that to composer mode.
Is there a way to generate a composer.json/.lock from my site and then bring it over to my composer typo3 installation and let it download everything?
There is a good list of steps you need to take for switching from classic to composer mode from Mathias Brodala.
https://stackoverflow.com/a/46450927/1375055
No, not to my knowledge. You'll have to kickstart your composer.json manually (or with the composer cli interface) and evolve it until you reach a similar combination of dependencies in your project.
There is no Automated way of dooing this but a quick hack would be
the following bash command do get a list of all packages names of the extensions
for f in $(ls typo3conf/ext); do echo "typo3-ter/$f"; done;
I'm trying to install Backpack for Laravel on Windows Server 2012 (which may be part of the problem, but I can't find any instructions specifically for Windows). I'm following the directions here, and everything goes fine until I need to run "php artisan backpack:base:install" at which point I get this error:
[ReflectionException]
Class Backpack\Base\Backpack\Base\app\Console\Commands\Install does not exist
I assume it has something to do with the duplication of the "Backpack\Base" part, but explicitly giving it the path without the duplication or just saying install results in the same error. Likewise, same error with any other artisan commands later in the guide, such as php artisan vendor:publish --provider="Backpack\CRUD\CrudServiceProvider" --tag="public". Any advice would be really appreciated.
There was a problem with the 3.3.0 release, which has since been fixed. You must have tried to install it within the 1-hour timespan until we had time to properly test the release. A composer update should fix it for you. You'll then be able to run php artisan backpack:base:install without a glitch.
Cheers!
I've deployed a Laravel 4 app to a shared host for the first time and run composer install, but it fails with the message:
Script php artisan clear-compiled handling the post-install-cmd event returned with an error
[RuntimeException]
Error Output:
[InvalidArgumentException]
Command "clear-compiled" is not defined.
When I run the command php artisan list I don't get the expected list of artisan commands, only:
Available commands:
help Displays help for a command
list Lists commands
workbench Create a new package workbench
All the dependency files are properly installed in the vendor folder.
Why are Laravel's standard artisan commands not available?
The problem was that the php command on my host machine was not running the CLI version of php. When I run the command php-cli artisan list then I get the expected list of Laravel artisan commands.
To get composer to call this properly, then, I just had to update the 'scripts' section in my composer.json to use php-cli instead of plain php.
(As a side note, composer had been spitting out a similar warning with this message: Warning: Composer should be invoked via the CLI version of PHP, not the cgi-fcgi SAPI)
I am new to Unit testing and trying to use Phactory with Mongo, but when I run the test I keep getting the following error.
PHP Fatal error: Class 'Mongo' not found in /vagrant/Test/user/LoginTest.php on line 19
I know Mongo is installed because when I pull up the site it works, but for some reason PHPUnit isn't recognizing it.
I feel I am missing a step. Do I need to install the Mongo extension locally, or do I need to include the location in a config file somewhere?
Are you sure Mongo is installed as a module in the command line version of PHP?
Do a quick run of php -i and have a look at the output (which is phpinfo() without fancy formatting) or php -m for a list of modules. If the Mongo extension does not show up, you have to install it.
Also note that the Mongo class has been deprecated. You'd probably update to using MongoClient.
today i have recompiled PHP with PDO msql driver and now i cant use Zend CLI tool anymore.
Before Zend CLI tool was working fine, but now i get:
./zf.sh: 44: php: Permission denied
I am really out of ideas what is the problem here :/
i have tried changing permsissions, groups, google... but i didnt find any answers for this type of problem :/
Please help if you have any suggestion what should i do :)
Almost forgot:
Ubuntu, PHP 5.3 (as module) on apache 2.0
thanks for your time and reply!
Edit (PB): For those wondering, line 44
"$PHP_BIN" -d safe_mode=Off -f "$PHP_DIR/zf.php" -- "$#"
Why did you recompile php5? You can just compile the required PDO libs as well you know :p.
And AFAIK MSSQL is (or was at least) compatible with the Sybase DB drivers, so you could just as easily use these.
Check out Install PDO, PDO_SQLITE, PDO_DBLIB, PDO_MYSQL, it should work for Ubuntu too since it's Debian based.
BTW Just reinstall php5 that came with Ubuntu first, then follow the instructions there.
Hope it helps!