Category : homestead

I have the same problem as many other similar questions but none of the solutions worked. I have a very simple test case: class ExampleTest extends TestCase { public function test_find_english() { $this->withoutExceptionHandling(); $response = $this->get("api/find?id=1&language=eng"); $response->assertOk(); } } If I go to the endpoint in a browser or Postman I get the expected result, ..

Read more

I need to check an old Symfony application on Laravel Homestead that uses SQL Server as DB engine. When I run the app I get the following error: DoctrineDBALException: An exception occurred while executing ‘ SELECT THE QUERY ON MSSQLSERVER ‘: Call to undefined function sqlsrv_configure() at vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php:185 at DoctrineDBALDBALException::wrapException() (vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php:159) at DoctrineDBALDBALException::driverExceptionDuringQuery() (vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:2121) at ..

Read more

Bumped into a bug in laravel Homestead that I can’t solve for days. There is no existing directory at "/Users/l2sap/Documents/laravel-dev/projects/fourth/storage/logs" and it could not be created: Permission denied This is a unique case, since I tried all possible methods for solving this error, which I found on the network on various sites, none of the ..

Read more

In my workplace, we have started using Homestead in order to streamline our Laravel development. Setup: MacOs Catalina, Homestead v12.0.0 Settler v11.0.0 (Ubuntu 20.04) We are using php7.4 for our projects so on my Homestead.yaml file my sites setup looks like this: sites: – map: site1.test to: /home/vagrant/projects/site1/public php: "7.4" – map: site2.test to: /home/vagrant/projects/site2/public ..

Read more

I’m new to laravel & homestead, im currently trying to create a new project using this command composer create-project –prefer-dist laravel/laravel blog "5.6.*" but i encountered this error – Removing kylekatarnls/update-helper (1.2.1) Install of kylekatarnls/update-helper failed [RuntimeException] Could not delete /home/vagrant/code/project2/vendor/kylekatarnls/update-helper/src: when i tried to do so. I have tried solutions given by other post ..

Read more

From the app1 running on Laravel Homestead I send this curl request $ch = curl_init(‘http://app2.test/api/add-user’); //without the port 8000 curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $passportData); curl_setopt($ch, CURLOPT_HTTPHEADER, array( ‘Content-Type: application/json’, ‘Accept-Length: application/json’) ); $response = curl_exec($ch); curl_close($ch); Log::alert($response); If I add the port http://app2.test:8000 I get nothing at all as a response ..

Read more