tagged [php]

How to get Current Timestamp from Carbon in Laravel 5

How to get Current Timestamp from Carbon in Laravel 5 I want to get current timestamp in laravel 5 and I have done this- I am getting eror- 'Carbon not found'- [](https://i.stack.imgur.com/O3BkQ.png) ...

31 May at 10:6

Cannot create cache directory .. or directory is not writable. Proceeding without cache in Laravel

Cannot create cache directory .. or directory is not writable. Proceeding without cache in Laravel I created a new Laravel project. When I go to the terminal to install the dependecies `composer` disp...

27 Mar at 19:8

How do I see the extensions loaded by PHP?

How do I see the extensions loaded by PHP? It's got to be somewhere in the phpinfo() dump, but I just don't know where. Is it supposed to be under the "Additional Modules" section? Somewhere else? I'm...

6 Jan at 16:35

What does "zend_mm_heap corrupted" mean

What does "zend_mm_heap corrupted" mean All of the sudden I've been having problems with my application that I've never had before. I decided to check the Apache's error log, and I found an error mess...

How to run composer from anywhere?

How to run composer from anywhere? I have just installed composer in my `/usr/bin` folder, so when from that folder I run `php composer.phar` I get the help info about composer. But, when I try to run...

4 Jul at 17:17

How to change PHP version used by composer

How to change PHP version used by composer I want to use another php version on my machine than the one already installed using WAMP `(2 PHP version installed)`. - `PHP 5.6`- `PHP7.0` Whenever I choos...

16 Feb at 00:1

Using Composer's Autoload

Using Composer's Autoload I have been looking around the net with no luck on this issue. I am using composer's autoload with this code in my `composer.json`: But I need to autoload at a higher level t...

1 Jul at 19:25

What do strict types do in PHP?

What do strict types do in PHP? I've seen the following new line in PHP 7, but nobody really explains what it means. I've googled it and all they talk about is will you be enabling it or not like a po...

Why I am suddenly getting a "Typed property must not be accessed before initialization" error when introducing properties type hints?

Why I am suddenly getting a "Typed property must not be accessed before initialization" error when introducing properties type hints? I have updated my class definitions to make use of the newly intro...

How do I install the ext-curl extension with PHP 7?

How do I install the ext-curl extension with PHP 7? I've installed PHP 7 using [this repo](http://php7.zend.com/repo.php), but when I try to run `composer install`, it's giving this error: > - With PH...

27 Nov at 12:38