I'm trying to install the following package:
Laravel 4 Auth token
But when I try to run the migration I got the following error
there is nothing to migrate
(while there should be). When I go to the vendor folder, the package folder exists, but it is empty. Furthermore, I've successfully published the config of this package.Could someone please explain to me why can't I run the migration?
You need to run the following command
php artisan migrate --package=tappleby/laravel-auth-token
to migrate for your package (tappleby/laravel-auth-token). When you had run
php artisan migrate
you got the message there is nothing to migrate is because you are running your own migration file. So, It's say nothing to migrate! For more about migration please read on Laravel Documentation.
Related
I'm using Maatwebsite Laravel Excel to export .xls documents.
In my 'localhost' it works perfectly, but when I try to do it in production, show me this f*$%#* error:
FatalThrowableError in Facade.php line 237:
Call to undefined method Maatwebsite\Excel\Facades\Excel::create()
I follow all the instalation instructions in: Laravel Excel
I also can't run "composer update" in production with SSH because the process is "killed"... I don't know why.
Do I really have to run the composer update? Is this why?
I'm using PHP 7.0 and Laravel 5.3, so I use the Laravel Excel version 2.1, the 3 version is only for Laravel >5.5.
Please help me!
Thanks in advance for your help.
I think you have not added Maatwebsite\Excel\Facades\Excel facade string in the providers array in app.php on production site?
As you are not able to run composer update due to process killed, see here hint related to updating on a hint related to updating on the server.
Run composer update in a local environment (either your local
physical machine, or a development virtual machine)
Upload or git push the composer.lock file
Run composer install on the live server
SOLVED
I runned "php artisan config:clear" and the error has changed to:
[screenshot][1]
I've uploaded (again) my "config/app.php" and then it told me:
"Permission denied to write in "bootstrap/cache"
So I "sudo chmod -R 777 /bootstrap"
Thank you.
I have a problem with install VentureCraft/revisionable in Laravel.
When I trying use this command:
php artisan migrate --package=venturecraft/revisionable
Artisan returned error:
[Symfony\Component\Console\Exception\RuntimeException] The "--package"
does not exist.
I using Laravel version 5.2
Simply, you can migrate by:
php artisan migrate --path=vendor/venturecraft/revisionable/src/migrations
The --package syntax was only available in Laravel 4. It seems like this package has old documentation based off that release.
You'll need to go into the vendor/venturecraft/revisionable/migrations folder and copy the migration and insert it in your database/migrations folder.
Then run the command php artisan migrate.
I have an issue with the composer for creating migrations.
I just installed Laravel 4.2 via composer.
But i want to make migrations for my DB via composer, so i typed this command below:
php artisan migrate:make create_user_table
But then i get the error:
(I've tried it again to install Laravel 4.2, but i still get this error.)
Could not open input file: artisan
How can i fix this?
I'm trying to deploy a locally working Laravel 4 project on a Strato server.
Locally I can execute the command php artisan migrate, but when I'm trying to execute this command on the server using PuTTY command line, it throws the following exception:
[InvalidArgumentException] Command "migrate" is not defined.
These have been my deployment steps:
Install basic laravel application locally, using composer (path variable)
Upload all files to the server. Now the warning, that a database column couldn't be found is visible. So I want to migrate the database.
Run the command php artisan migrate
When I run the command php artisan list there are a few methods listed like tail and workbench, but not the commands that I need.
PHP 5.5 and MCrypt are installed on the server.
Do I have to extend the artisan installation?
Update:
The problem seems to be the following:
Warning: Composer should be invoked via the CLI version of PHP, not
the cgi-fcgi SAPI
Futhermore there is this warning:
Warning: The lock file is not up to date with the latest changes in
composer.json. You may be getting outdated dependencies. Run update to
update them.
Running update doesn't work, because it tries to run a mising artisan argument.
I haven't used composer or Laravel 4 during the last couple of weeks, today I created a new Laravel project and suddenly Monolog is causing a ton of problems.
At first I was unable to fully create the project, afterwards I was unable to create a migration, and now I can't run php artisan serve any more. I followed the steps on Laravel 4 Class not found in bootstrap/compiled.php and that helped the first time around, but after creating the second migration and wanting to run a php artisan migrate I get the following error:
PHP Fatal error: Class 'Monolog\Formatter\LineFormatter' not found in /bootstrap/compiled.php on line 7991
How do I fix this?
I have update composer using self-update, I have tried to use dump-autoload, and the other steps in the question I posted a link to.
I solved this issue by deleting the vendorfolder and then running a composer install to ensure a fresh install of all packages in the composer.json.
I'm not sure how you installed the project. If you're trying to impose Laravel 4 over an old project, I suggest you to install FRESH Laravel using this command
composer create-project laravel/laravel project_name --prefer-dist
This should not give you any installation related problem unless the Laravel installation itself is broken. Which is very unlikely to happen.
You can then copy your controllers, models, migrations etc from the old project.
Good luck.