|
My job wanted me to research and try out Laravel to experiment with real time web stuff between users, such as websockets using Symfony. Initially I wanted to use Ratchet, but then it was suggested I use Laravel since it is more widely used, and includes features that Ratchet has with Symfony, but it has turned into a complete mess. I'm using an NGINX VPS with Ubuntu 18.04.4. Aside from it a disaster to install, I keep running into errors and other mishaps which is making it impossible for me to proceed. Files inside the storage/framework/views folder keep having permission issues. The only way to fix it is to set the permissions on these manually. The folders that contain these have 775 permissions. I have no idea what Laravel is doing to set these incorrectly, and since it generates these files by itself, it keeps recreating this problem. It seems that I cannot route with a subfolder name after the domain. I edited web.php inside Laravel's routes folder: code:
I have a test.blade.php, which looks like: code:
I've been watching the Laracasts, and trying to continue without being able to use routing, even though it seems essential, but the videos are missing vital portions code from other files. There are many repeated things on the site pushing me to pay a subscription fee to join their forums and other features. It doesn't seem right. On one hand I know you may hit some roadblocks along the way to learn something new like this, and on the other, I've barely written any code after a few weeks just trying to get this setup. I'd rather get up and running hassle-free learning websockets, instead of learning the entirety of Laravel while getting it working properly on this server. So should I keep going, or move onto something better? Any ideas about the current issues I'm having with routing?
|
# ? Apr 28, 2020 18:34 |
|
|
# ? Apr 29, 2024 13:09 |
|
well um let's see it's a php web framework, so i'm pretty sure if you were feeling good about it, that would indicate something is very wrong with you
|
# ? Apr 28, 2020 23:32 |
|
You’ve got a point there. PHP is very flawed, but it’s something I’m used to, and know my way around. I just haven’t used too many frameworks, and nothing this large. Again, I’m baffled the support it has since it seems so broken. Maybe I have rare setup that makes it break so much though. Good Sphere fucked around with this message at 06:37 on Apr 29, 2020 |
# ? Apr 29, 2020 06:34 |
|
I suggest to start looking for projects that are already using Laravel and review their code and how they are using it. Its how I learned most of the other framework knowledge that I've picked up over the years. I suggest something like a CRUD app, like Beatsaver https://github.com/elliotttate/beatsaver-laravel
|
# ? May 10, 2020 03:41 |