attila.kom

attila.kom

Member Since 2 Years Ago

Experience Points 4,570
Experience Level 1

430 experience to go until the next level!

In case you were wondering, you earn Laracasts experience when you:

  • Complete a lesson — 100pts
  • Create a forum thread — 50pts
  • Reply to a thread — 10pts
  • Leave a reply that is liked — 50pts
  • Receive a "Best Reply" award — 500pts
Lessons Completed 40
Lessons
Completed
Best Reply Awards 0
Best Reply
Awards
  • start-engines Created with Sketch.

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • first-thousand Created with Sketch.

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • 1-year Created with Sketch.

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • 2-years Created with Sketch.

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • 3-years Created with Sketch.

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • 4-years Created with Sketch.

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • 5-years Created with Sketch.

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • school-session Created with Sketch.

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • welcome-newcomer Created with Sketch.

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • full-time-student Created with Sketch.

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • pay-it-forward Created with Sketch.

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • subscriber-token Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer-token Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • lara-evanghelist Created with Sketch.

    Laracasts Evangelist

    Earned if you share a link to Laracasts on social media. Please email [email protected] with your username and post URL to be awarded this badge.

  • chatty-cathy Created with Sketch.

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • lara-veteran Created with Sketch.

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • 10k-strong Created with Sketch.

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • lara-master Created with Sketch.

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • laracasts-tutor Created with Sketch.

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • laracasts-sensei Created with Sketch.

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • top-50 Created with Sketch.

    Top 50

    Earned once your experience points ranks in the top 50 of all Laracasts users.

28 Oct
9 months ago

attila.kom left a reply on Can't Send Email From Serving

Thanks for the reply! I will try getting it to work using the mail facade soon and reply back here afterward.

Just out of curiosity, why do I "need" to use the mail facade instead? The mail function works fine on my websites hosted elsewhere, just on this current server there is an issue. What is different about the mail facade that will allow my emails to send?

27 Oct
9 months ago

attila.kom started a new conversation Can't Send Email From Serving

I have my .env file set up exactly like I was ask by the server admin. It looks similar to this:

MAIL_DRIVER=smtp
MAIL_HOST=hs2.*****ca
MAIL_PORT=587
MAIL_USERNAME=*********@*************.com
MAIL_PASSWORD=********
MAIL_ENCRYPTION=ssl

And my code for sending the email looks like this:

mail($to,$subject,$message, $headers);
return response('Created', 201);

I'm simply using PHP's mail function, and then returning a 201 response after. I always get the 201 response, I'm assuming if the mail function failed, I would get an error, but I do not get any errors, and I do not see anything in the error logs.

What are some things I can try? I only have FTP access to some some files on the server, and would need to contact the server admin to change anything no laravel related.

17 Jul
2 years ago

attila.kom started a new conversation Running A Laravel App Locally On Mac (Laragon Alternatives?)

Hey everyone,

I've been running Laravel apps locally using Laragon on Windows, but Laragon is not available for Mac. I'm just curious what everyone else uses to run Laravel locally on their Macs.

05 Jul
2 years ago

attila.kom left a reply on 500 Error When Trying To Load Any View Besides The Home/index View.

Hey, so I actually changed the .htaccess to the following, and now it works:

<IfModule mod_rewrite.c>
        RewriteEngine On
        RewriteBase /

        # Removes index.php from ExpressionEngine URLs
        RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC]
        RewriteCond %{REQUEST_URI} !/system/.* [NC]
        RewriteRule (.*?)index\.php/*(.*) /$1$2 [R=301,NE,L]

        # Directs all EE web requests through the site index file
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteRule ^(.*)$ /index.php/$1 [L]
</IfModule>
04 Jul
2 years ago

attila.kom left a reply on 500 Error When Trying To Load Any View Besides The Home/index View.

Thanks for the replies everyone! I've been away for awhile so sorry for the delay in getting back. I'll get a chat with Bell again tomorrow. The version of PHP on the server is 5.6.23, and I noticed that the Laravel docs mention I need 5.6.4 or greater, so I'll have to ask Bell if they can update the version for me. I'll try to clear the cache too, just to be safe. And if I'm still having issues then I'll have to give Bell shit for telling me mod_rewrites was enabled (without even checking if it actually was).

@Snapey Index.php and .htaccess are in the public directory. Also, I'm a little confused, the 500 error is not from Laravel, but I'm still getting a 500 error (http://anomet.com/aluminum), so doesn't that mean that wrong PHP version and/or cache could be the culprit as well?

29 Jun
2 years ago

attila.kom left a reply on 500 Error When Trying To Load Any View Besides The Home/index View.

@Ibbe Thanks for the reply, unfortunately the answers there did not work :( no matter what I put in my .htaccess or where I put it, it doesn't help. Neither does renaming/ moving folders to different locations like mentioned in the answers. I'm starting to believe that mod_rewrite is not enabled like Bell told me it is...

attila.kom left a reply on 500 Error When Trying To Load Any View Besides The Home/index View.

@mushood So I called Bell (took forever to get through to a tech support person, and emailing them is absolutely useless) and he asked his supervisor who said mod_rewrites should already be enabled. I told him the symptoms I'm having suggest that it's not enabled, but there was basically nothing he could do :/ absolute shit support. I'll call them back later, I'm just wondering if there's anything else I could do...

28 Jun
2 years ago

attila.kom left a reply on 500 Error When Trying To Load Any View Besides The Home/index View.

I'll post an update once I hear back from Bell. I'll try that new route when I'm home again tomorrow and let you know if it works.

27 Jun
2 years ago

attila.kom left a reply on 500 Error When Trying To Load Any View Besides The Home/index View.

@mushood Thanks! The only problem is that I can't find a .conf file :/

EDIT: I've sent a request to Bell to hopefully have them fix the issue. Right now it seems I don't have access to all the files. When I connect via FTP or SSH I can see things like the public folder and Laravel files that I uploaded but nothing that looks anything close to a config file where I can activate mod_rewrite.

sigh I really wish the client didn't choose Bell for their hosting :/

attila.kom left a reply on 500 Error When Trying To Load Any View Besides The Home/index View.

@mushood

can't run composer

And oh wow, using this pattern www.domain.com/index.php/urlName loads the pages... but it doesn't load some images. For example: http://anomet.com/index.php/lighting

Why does adding that index.php work?

attila.kom left a reply on 500 Error When Trying To Load Any View Besides The Home/index View.

@mushood I don't have access to the command line :( and I can't hit the /clear-cache route to run that block of code because I get the internal error if I try to navigate to any page/ route.

@acorbeil Okay, I'll look into how to activate it.

Thanks for the responses so far guys!

EDIT: I do have SSH access, so I'll try clearing cache and let you know how it goes. UPDATE: I just get "php command not found" when I try to run a php artisan command.

26 Jun
2 years ago

attila.kom left a reply on 500 Error When Trying To Load Any View Besides The Home/index View.

I just tried replacing the .htaccess file with what you linked, it didn't fix the problem :(

attila.kom started a new conversation 500 Error When Trying To Load Any View Besides The Home/index View.

Hey everyone. So I uploaded a Laravel website on a Namecheap server here: https://kdev.solutions/ and it works fine. I uploaded again (essentially the exact same files, except for some minor changes like setting APP_URL for the new domain, etc.) to another Bell server here: http://anomet.com/ and now I get an "Internal Server Error" (on the Bell serer) whenever I try to navigate to a different page. Not sure how I could go about fixing this problem.

Server logs are empty :( I'm using Laravel 5.4.15

16 Mar
2 years ago

attila.kom left a reply on Getting Mixed Content Error When Viewing Website Over HTTPS

Cronix, thank you for your answer! I added the code to the boot method and changed the APP_URL, however when I redirected all HTTP to HTTPS by modifying the .htaccess file I was getting an error in my browser ERR_TOO_MANY_REDIRECTS so I didn't change that, but it still works now with the other suggestions!

15 Mar
2 years ago

attila.kom left a reply on Getting Mixed Content Error When Viewing Website Over HTTPS

The whole website. Ah okay, so I just replace asset with secure_asset and I should be fine?

attila.kom left a reply on Getting Mixed Content Error When Viewing Website Over HTTPS

Hey Cronix, thanks for the reply. How would I change this? For example, I am referencing stylesheets using blade statements. i.e.

<link rel="stylesheet" href="{{ asset('vendor/bootstrap/css/bootstrap.min.css') }}">

attila.kom started a new conversation Getting Mixed Content Error When Viewing Website Over HTTPS

If you follow this link: http://boiling-temple-56134.herokuapp.com/ The website appears fine.

When you follow this link: https://boiling-temple-56134.herokuapp.com/ The css and js files aren't loaded and I'm given a mixed content error.

How would I fix this?

08 Mar
2 years ago

attila.kom left a reply on "Whoops, Looks Like Something Went Wrong." When Pushing To Heroku

Yes I've set the APP_KEY environment variable. I ran the following:

Running bash on boiling-temple-56134... up, run.7264 (Free)
~ $ php artisan key:generate
Application key [base64:T5gf1onD4Z1GcKcg7AT/q9YWQ1pI8I8dQZSFSJBrNBs=] set successfully.
~ $ php artisan config:clear
Configuration cache cleared!

I am still getting the same error.

UPDATE: So I got it working, in config/app.php I changed this:

'key' => env('APP_KEY')

to this:

'key' => 'my encryption key'

Where "my encryption key" is the actual key value. So it seems the key doesn't point to a proper value when I use env().

attila.kom left a reply on "Whoops, Looks Like Something Went Wrong." When Pushing To Heroku

Update: so I wasn't pushing the .env file to the Heroku master, silly me. I now have the following error message when trying to start up my Heroku Laravel app:

RuntimeException in Encrypter.php line 43:
The only supported ciphers are AES-128-CBC and AES-256-CBC with the correct key lengths.

I'm looking around online now to see how to solve this, thanks for your help so far tykus!

attila.kom left a reply on "Whoops, Looks Like Something Went Wrong." When Pushing To Heroku

Hey tykus, thanks for your help so far, I really appreciate it. Line 9 contains this:

<link rel="manifest" href="/manifest.json">

I've uploaded that entire specific php file: https://drive.google.com/open?id=0B08S9EuXbJaHQXMwWlN0cFZvMWc

attila.kom left a reply on "Whoops, Looks Like Something Went Wrong." When Pushing To Heroku

I have a master.blade.php that has just this:

@include('../includes.header')

@yield('content')

@include('../includes.footer')

And the header has things like this:

<title>@yield('title')</title>

I created a GitHub repo and pushed all the code to it, so you can view it here if you want: https://github.com/Twinbird24/project_004

07 Mar
2 years ago

attila.kom started a new conversation "Whoops, Looks Like Something Went Wrong." When Pushing To Heroku

I have my Laravel (v. 5.4.15) app running successfully locally on Laragon (with nginx) here on my Windows machine (I'm using . I followed the Heroku docs (https://devcenter.heroku.com/articles/getting-started-with-laravel) to try to set it up on Heroku, but I'm left with this: https://boiling-temple-56134.herokuapp.com/. Which just gives me the "Whoops, looks like something went wrong" error message. When I look into storage > logs > laravel.log I notice this error:

[2017-02-17 17:28:45] local.ERROR: Symfony\Component\Debug\Exception\FatalErrorException: The "yield" expression can only be used inside a function in C:\laragon\www\anomet\storage\framework\views\361f745536af0d9cf601481d2fd22878cd7c88e4.php:9 Stack trace: #0 {main}

Not sure what to make of it, I don't see anything wrong with my use of yield in my app. I have things like @yield('title').