mardi 8 mars 2016

send email with laravel 5

I'm using this tutorial to send mail.

I've tried it with tinker and it works, but in the past hour, I was messing around with composer, I've deleted my vendor/compiled.php then updated composer and now when I try to send mail with tinker it doesn't work.

this is the history of my homestead terminal, please help me.

vagrant@homestead:~/Code/ceevee$ composer update

You are running composer with xdebug enabled. This has a major impact on runtime performance. See http://ift.tt/1NnGiU0 Loading composer repositories with package information Updating dependencies (including require-dev) Nothing to install or update Generating autoload files

php artisan clear-compiled PHP Fatal error: Call to undefined method Illuminate\Foundation\Application::getCachedCompilePath() in /home/vagrant/Code/ceevee/vendor/laravel/framework/src/Illuminate/Foundation/Console/ClearCompiledCommand.php on line 28 PHP Stack trace: PHP 1. {main}() /home/vagrant/Code/ceevee/artisan:0 PHP 2. Illuminate\Foundation\Console\Kernel->handle() /home/vagrant/Code/ceevee/artisan:36 PHP 3. Symfony\Component\Console\Application->run() /home/vagrant/Code/ceevee/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php:94 PHP 4. Symfony\Component\Console\Application->doRun() /home/vagrant/Code/ceevee/vendor/symfony/console/Symfony/Component/Console/Application.php:126 PHP 5. Symfony\Component\Console\Application->doRunCommand() /home/vagrant/Code/ceevee/vendor/symfony/console/Symfony/Component/Console/Application.php:195 PHP 6. Illuminate\Console\Command->run() /home/vagrant/Code/ceevee/vendor/symfony/console/Symfony/Component/Console/Application.php:874 PHP 7. Symfony\Component\Console\Command\Command->run() /home/vagrant/Code/ceevee/vendor/laravel/framework/src/Illuminate/Console/Command.php:101 PHP 8. Illuminate\Console\Command->execute() /home/vagrant/Code/ceevee/vendor/symfony/console/Symfony/Component/Console/Command/Command.php:257 PHP 9. Illuminate\Container\Container->call() /home/vagrant/Code/ceevee/vendor/laravel/framework/src/Illuminate/Console/Command.php:115 PHP 10. call_user_func_array:{/home/vagrant/Code/ceevee/vendor/compiled.php:925}() /home/vagrant/Code/ceevee/vendor/compiled.php:925 PHP 11. Illuminate\Foundation\Console\ClearCompiledCommand->fire() /home/vagrant/Code/ceevee/vendor/compiled.php:925

[Symfony\Component\Debug\Exception\FatalErrorException]
Call to undefined method Illuminate\Foundation\Application::getCachedCompilePath()

Script php artisan clear-compiled handling the post-update-cmd event returned with an error

[RuntimeException]
Error Output: PHP Fatal error: Call to undefined method Illuminate\Foundation\Application::getCachedCompilePath() in /home/vagrant/Code/ceevee/vendor/laravel/fram
ework/src/Illuminate/Foundation/Console/ClearCompiledCommand.php on line 28
PHP Stack trace:
PHP 1. {main}() /home/vagrant/Code/ceevee/artisan:0
PHP 2. Illuminate\Foundation\Console\Kernel->handle() /home/vagrant/Code/ceevee/artisan:36
PHP 3. Symfony\Component\Console\Application->run() /home/vagrant/Code/ceevee/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php:94
PHP 4. Symfony\Component\Console\Application->doRun() /home/vagrant/Code/ceevee/vendor/symfony/console/Symfony/Component/Console/Application.php:126
PHP 5. Symfony\Component\Console\Application->doRunCommand() /home/vagrant/Code/ceevee/vendor/symfony/console/Symfony/Component/Console/Application.php:195
PHP 6. Illuminate\Console\Command->run() /home/vagrant/Code/ceevee/vendor/symfony/console/Symfony/Component/Console/Application.php:874
PHP 7. Symfony\Component\Console\Command\Command->run() /home/vagrant/Code/ceevee/vendor/laravel/framework/src/Illuminate/Console/Command.php:101
PHP 8. Illuminate\Console\Command->execute() /home/vagrant/Code/ceevee/vendor/symfony/console/Symfony/Component/Console/Command/Command.php:257
PHP 9. Illuminate\Container\Container->call() /home/vagrant/Code/ceevee/vendor/laravel/framework/src/Illuminate/Console/Command.php:115
PHP 10. call_user_func_array:{/home/vagrant/Code/ceevee/vendor/compiled.php:925}() /home/vagrant/Code/ceevee/vendor/compiled.php:925
PHP 11. Illuminate\Foundation\Console\ClearCompiledCommand->fire() /home/vagrant/Code/ceevee/vendor/compiled.php:925

update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-plugins] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--with-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-i|--interactive] [--] []...

vagrant@homestead:~/Code/ceevee$ vagrant@homestead:~/Code/ceevee$ php artisan down Application is now in maintenance mode. vagrant@homestead:~/Code/ceevee$ php artisan clear-compiled vagrant@homestead:~/Code/ceevee$ composer update --no-dev You are running composer with xdebug enabled. This has a major impact on runtime performance. See http://ift.tt/1NnGiU0 Loading composer repositories with package information Updating dependencies - Removing sebastian/environment (1.3.5) - Removing symfony/yaml (v3.0.3) - Removing phpspec/prophecy (v1.6.0) - Removing phpunit/phpunit (4.8.23) - Removing phpunit/php-code-coverage (2.2.4) - Removing phpunit/php-file-iterator (1.4.1) - Removing phpunit/php-token-stream (1.4.8) - Removing phpunit/php-timer (1.0.7) - Removing phpunit/phpunit-mock-objects (2.3.8) - Removing phpunit/php-text-template (1.2.1) - Removing sebastian/global-state (1.1.1) - Removing sebastian/version (1.0.6) - Removing phpspec/phpspec (2.4.1) - Removing sebastian/comparator (1.2.0) - Removing sebastian/diff (1.4.1) - Removing doctrine/instantiator (1.0.5) - Removing sebastian/exporter (1.2.1) - Removing sebastian/recursion-context (1.0.2) - Removing phpspec/php-diff (v1.0.2) - Removing phpdocumentor/reflection-docblock (2.0.4) Writing lock file Generating autoload files

php artisan clear-compiled php artisan optimize Generating optimized class loader vagrant@homestead:~/Code/ceevee$ php artisan optimize Generating optimized class loader vagrant@homestead:~/Code/ceevee$ php artisan up Application is now live. vagrant@homestead:~/Code/ceevee$ composer require illuminate/html You are running composer with xdebug enabled. This has a major impact on runtime performance. See http://ift.tt/1NnGiU0 Using version ^5.0 for illuminate/html ./composer.json has been updated

[RuntimeException]
The lock file does not contain require-dev information, run install with th
e --no-dev option or run update to install those packages.

require [--dev] [--prefer-source] [--prefer-dist] [--no-plugins] [--no-progress] [--no-update] [--update-no-dev] [--update-with-dependencies] [--ignore-platform-reqs] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--] []...

vagrant@homestead:~/Code/ceevee$ composer update You are running composer with xdebug enabled. This has a major impact on runtime performance. See http://ift.tt/1NnGiU0 Loading composer repositories with package information Updating dependencies (including require-dev) - Installing symfony/yaml (v3.0.3) Loading from cache

  • Installing sebastian/recursion-context (1.0.2) Loading from cache

  • Installing sebastian/exporter (1.2.1) Loading from cache

  • Installing doctrine/instantiator (1.0.5) Loading from cache

  • Installing sebastian/diff (1.4.1) Loading from cache

  • Installing sebastian/comparator (1.2.0) Loading from cache

  • Installing phpdocumentor/reflection-docblock (2.0.4) Downloading: 100%

  • Installing phpspec/prophecy (v1.6.0) Loading from cache

  • Installing phpspec/php-diff (v1.0.2) Downloading: 100%

  • Installing phpspec/phpspec (2.4.1) Loading from cache

  • Installing sebastian/version (1.0.6) Loading from cache

  • Installing sebastian/global-state (1.1.1) Loading from cache

  • Installing sebastian/environment (1.3.5) Loading from cache

  • Installing phpunit/php-text-template (1.2.1) Loading from cache

  • Installing phpunit/phpunit-mock-objects (2.3.8) Loading from cache

  • Installing phpunit/php-timer (1.0.7) Loading from cache

  • Installing phpunit/php-token-stream (1.4.8) Loading from cache

  • Installing phpunit/php-file-iterator (1.4.1) Loading from cache

  • Installing phpunit/php-code-coverage (2.2.4) Loading from cache

  • Installing phpunit/phpunit (4.8.23) Loading from cache

phpdocumentor/reflection-docblock suggests installing dflydev/markdown (~1.0) phpdocumentor/reflection-docblock suggests installing erusev/parsedown (~1.0) phpspec/phpspec suggests installing phpspec/nyan-formatters (~1.0 – Adds Nyan formatters) sebastian/global-state suggests installing ext-uopz (*) phpunit/phpunit suggests installing phpunit/php-invoker (~1.1) Writing lock file Generating autoload files

php artisan clear-compiled php artisan optimize Generating optimized class loader vagrant@homestead:~/Code/ceevee$ php artisan tinker Psy Shell v0.4.4 (PHP 5.6.15-1+deb.sury.org~trusty+1 — cli) by Justin Hileman

Mail::send('emails.test', ['testVar' => 'Just a silly test'], function($message) { $message->to('cherif.mohamed86@gmail.com')->from('contact@mohamed-cherif.ml') ->subject('A simple test'); }); => null



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire