If you create an Eloquent Model in Laravel (v.gr., the “Company” model), using the command
$ php artisan make:model Company
the file is stored in the “App” folder.
Information technologies. Per aspera ad astra
If you create an Eloquent Model in Laravel (v.gr., the “Company” model), using the command
$ php artisan make:model Company
the file is stored in the “App” folder.
If you have pull a project from a Git repository or from another source and you get the error
RuntimeException in compiled.php line 7706: No supported encrypter found. The cipher and / or key length are invalid.
If you see the message “No input file specified” in the browser (using Homestead as development VM machine), one possible problem is that Homestead doesn’t load the parameters from the config file Homestead.yaml
Try to provision the VM another time, running
$ vagrant reload --provision
If you want to add a new project in Laravel Homestead, you have to edit the “Homestead.yaml” file, adding a new site:
Two good Laravel Cheat Sheets
If you are trying to publish a new package in a Laravel project and you receive the output “Nothing to publish for tag [].”, this is happening because you have cached your config files.
Si en Laravel, al tratar de resetear y volver a ejecutar todas las migraciones con el comando
$ php artisan migrate:refresh
os devuelve el siguiente error (puede ser con otra tabla)
[Symfony\Component\Debug\Exception\FatalThrowableError] Fatal error: Class 'UsersTable' not found
se resuelve ejecutando