haydi80

haydi80

Member Since 11 Months Ago

Experience Points 130
Experience Level 1

4,870 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 0
Lessons
Completed
Best Reply Awards 0
Best Reply
Awards
  • Start Your Engines Achievement

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • First Thousand Achievement

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • One Year Member Achievement

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • Two Year Member Achievement

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • Three Year Member Achievement

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • Four Year Member Achievement

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • Five Year Member Achievement

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • School In Session Achievement

    School In Session

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

  • Welcome To The Community Achievement

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • Full Time Learner Achievement

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • Pay It Forward Achievement

    Pay It Forward

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

  • Subscriber Achievement

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • Lifer Achievement

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • Laracasts Evangelist Achievement

    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 Achievement

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • Laracasts Veteran Achievement

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • Ten Thousand Strong Achievement

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • Laracasts Master Achievement

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • Laracasts Tutor Achievement

    Laracasts Tutor

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

  • Laracasts Sensei Achievement

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • Top 50 Achievement

    Top 50

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

12 Jun
6 days ago

haydi80 left a reply on Cannot Login To My Live Application, No Logs On Laravel.log

I do have csrf token in my form like that:

{{ csrf_field() }}

Now after I deleted the handle function from the VerifyCsrfToken.php, the first time when I fill the login, the fileds become empty, and the second time after I fill them again, I get:

Whoops, looks like something went wrong.

No TokenMismatchException any more..

But still the aithentication doesn't work!!

haydi80 left a reply on Cannot Login To My Live Application, No Logs On Laravel.log

Thank you guys..

Even with address IP I cannot login..

Actually the DB_HOST worked fine when I omitted the login page, and I could create a new user and save it in DB, as I said.. The problem lies on the authentication, the login function should be visited while it's not the case

haydi80 left a reply on Cannot Login To My Live Application, No Logs On Laravel.log

I have already :

'env' => env('APP_ENV', 'production'),

But I didn't run php artisan up

I have actually no ssh on my server. The clear commands I included them in web.php like that:

Route::get('/clear-cache', function() { Artisan::call('cache:clear'); Artisan::call('view:clear'); Artisan::call('route:clear'); return "Cache is cleared"; });

Then I call: myapp/clear-cach

haydi80 left a reply on Cannot Login To My Live Application, No Logs On Laravel.log

Thank you.. I did it, but it still doesn't work!

Normally, after I fill in the username and password, I should get in the login function of Illuminate\Foundation\Auth\AuthenticatesUsers, right? But I don't get in !!

haydi80 left a reply on Cannot Login To My Live Application, No Logs On Laravel.log

Just one update.. I tried to omit the user authentication in the login page, and go directly to the dashboard page, the dashboard appears correctly, I navigated to another page and created a new user, this user was correctly saved into the users table in the remote database.. It is a problem of authentication then. Can it be that the middleware doesn't work? But that is exactly as what works fine locally!

11 Jun
1 week ago

haydi80 left a reply on Cannot Login To My Live Application, No Logs On Laravel.log

Hi Sergiu17. Yes I do have write permission. Actually when the database configuration was not good, I got error messages in my laravel.log, like:

production.ERROR: PDOException: PDO::__construct(): php_network_getaddresses: getaddrinfo failed: Name or service not known SQLSTATE[HY000] [2002] Connection refused (SQL: select * from users where username = Admin limit 1) SQLSTATE[HY000] [1045] Access denied for user ...

Now the configuration seems to be ok, but may be the APP_KEY is not good. I have the APP_KEY in my .env file, this one I got it when I run artisan key:generate locally, because I don't have ssh on my server. Me too I have doubts about this APP_KEY, but how can I correct it if it's wrong?

10 Jun
1 week ago

haydi80 started a new conversation Cannot Login To My Live Application, No Logs On Laravel.log

Hello,

I developed a Laravel application with login page, I am using Laravel 5.4. Locally everything works fine. After deploying, my DB connection in the env file looks like that:

APP_DEBUG=true APP_LOG_LEVEL=debug APP_URL=myapp.nl

DB_CONNECTION=mysql DB_HOST=db_host_name.nl DB_PORT=3306 DB_DATABASE=db_name DB_USERNAME=user_name DB_PASSWORD=password

When I open myapp.nl, I get the login page, I fill in the login and password (that already exist on users table on my db_name). After that, the login and password fields get directly empty, I fill them in again, then I get:

Whoops, looks like something went wrong.

(1/1) TokenMismatchException in VerifyCsrfToken.php line 68

And nothing is logged into storage/logs/laravel.log

I hope you can help me get it work.. Thanks in advance!

26 Jun
11 months ago

haydi80 left a reply on PHPWord Works Locally But Not When Pushed To Test Server

Hello, I just fixed the problem, but I believe it could be better. The problem was in the files under the vendor\composer folder.. The files: autoload_static.php and installed.json were not the same. If I upload the autoload_static.php file to the server, my site falls down!! So, I just added the missing parts in both files and all works fine, my template works perfectly ! The missing parts were according to 'PhpOffice\PhpWord\' of course.. May be this can help someone having the same troubles as me!

haydi80 left a reply on PHPWord Works Locally But Not When Pushed To Test Server

Hello everyone,

I have the same problem while using TemplateProcessor.. Locally it works good, but after deploying to the server I get the following error:

Class 'PhpOffice\PhpWord\TemplateProcessor' not found.

In my Controller, I instantiate it like that:

$path = resource_path('TemplateOffer.docx'); $template = new \PhpOffice\PhpWord\TemplateProcessor($path);

I found in another post that I should add the following: include_once base_path('vendor/autoload.php');

Locally it still works, but remotely not..

Can someone help me please.. Thanks