I’ve started playing around with Laravel and have run into problems almost immediately and wondered if anyone had the same issues. I’ve installed composer and tried setting up a new laravel project using composer create-project laravel/laravel –prefer-dist It looks like it starts to work then when I get to “Installing dependencies, Installing vlucas/phpdotenv (v1.1.1)” it quits with an error saying
Tag: laravel
Laravel – Where to store statuses (flags)? Model, Class or config folder?
I need to extensively use statuses in mt project. I need them for my users (active, suspended, etc), an entity (active, pending_activation, inactive) and for my subscriptions(active, on_grace_period, not_subscribed, never_subscribed). So far I thought that the best way is to store them in the DB but i have a feeling it’s much easier to have them in the other 3
How to give dynamic user friendly url to specific page in typo3?
I’m a begginer of TYPO3. How can I generate or define the routes similar to other PHP frameworks such as Laravel, Codeignitor, etc. For ex. currently I can see the URL like this : “http://localhost/typo3/index.php?id=3” but if I want to make this URL custome like “http://localhost/typo3/index/3”. Any help would be appreciated. Answer Extension RealURL is most common solution for rewriting
Laravel Image Quality
Every time I upload a new image to my server, this image is resized. The main issue I’m having is that the image is losing a lot of quality. This is the current code: $name1 = str_random(10); …
Eloquent chunk() missing half the results
I have a problem with Laravel’s ORM Eloquent chunk() method. It misses some results. Here is a test query : $destinataires = Destinataire::where(‘statut’, ‘where(‘tokenized_at’, ‘&…
Expected response code 220 but got code “”, with message “” in Laravel
I am using Laravel Mail function to send email. The following is my app/config/mail.php file settings. Controller Mail Method When I run the code it gives me following error message: Swift_TransportException Expected response code 220 but got code “”, with message “” I have created a SendMail.php file in view which contains some data. How do I resolve this error
Laravel 5 – How to check username & password is match with table?
I have created the below login form in Laravel 5 and I want to simply check if the username & password matches with that of the database table and if so, redirect to the dashboard page else stay on the login page. I am also trying to find the solution by myself but I am posting this question to get
Reloading .env variables without restarting server (Laravel 5, shared hosting)
My Laravel 5 has run OK until the database was configured, then found this error: Doing some research it seems that I configured MySQL access too late, so I should restart the server in order to get the correct environment variables. Well, I’m using Dreamhost’s shared server and I just can’t do that. How should I fix this issue? Thanks
How to properly merge multiple collections in Laravel
I want to merge multiple collections into one. I do have a solution, which is the following: This actually does work, but I run into problems in cases where some or all of the collections contain no objects. I get an error along the lines of call to merge() on non object. I actually tried to create an array of
Execute Laravel/Symfony/Artisan Command in Background
I need to execute a Laravel long running process in the background for consuming the Twitter Streaming API. Effectively the php artisan CLI command I need to run is nohup php artisan startStreaming &…