Running Composer returns: “Could not open input file: composer.phar”

If you followed instructions like these: https://getcomposer.org/doc/00-intro.md Which tell you to do the following: $ curl -sS https://getcomposer.org/installer | php $ mv composer.phar /usr/local/bin/composer Then it’s likely that you, like me, ran those commands and didn’t read the next part of the page telling you to stop referring to composer.phar by its full name and … Read more

Laravel 5 – artisan seed [ReflectionException] Class SongsTableSeeder does not exist

You need to put SongsTableSeeder into file SongsTableSeeder.php in the same directory where you have your DatabaseSeeder.php file. And you need to run in your console: composer dump-autoload to generate new class map and then run: php artisan db:seed I’ve just tested it. It is working without a problem in Laravel 5

Composer require runs out of memory. PHP Fatal error: Allowed memory size of 1610612736 bytes exhausted

To get the current memory_limit value, run: php -r “echo ini_get(‘memory_limit’).PHP_EOL;” Try increasing the limit in your php.ini file (ex. /etc/php5/cli/php.ini for Debian-like systems): ; Use -1 for unlimited or define an explicit value like 2G memory_limit = -1 Or, you can increase the limit with a command-line argument: php -d memory_limit=-1 composer.phar require hwi/oauth-bundle … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)