byterbit

byterbit

Member Since 3 Years Ago

Experience Points 355
Experience Level 1

4,645 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.

13 Feb
1 week ago

byterbit left a reply on HTTPS Not Working With MYSQL

At the moment it's APP_URL=HTTPS://test.idlesave.com

But at various times recently in my testing it's been

APP_URL=https://test.idlesave.com and

APP_URL=162.209.99.73

byterbit left a reply on HTTPS Not Working With MYSQL

@NALINDADJ - The site does load:

https://test.idlesave.com/

But when I try logging in I get that 404 error on /login:1

The same server runs OK when reached on HTTP at IP 162.209.99.73

byterbit left a reply on HTTPS Not Working With MYSQL

@CRONIX - Thanks for the reply. The certificate is for test.idlesave.com the db server and web server are on the same physical server,

I have no idea what is going on here.

The site loads fine on http. On https I get in Chrome’s inspect:

“Failed to load resource: the server responded with a status of 404 (Not Found) /login:1”

and the authorization and login process fails.

I assumed it must have been a MYSQL/SSL failure, but after days of experimentation I must say I have no idea if that’s the case. I’ve inherited a large and undocumented Laravel project. Debugging it has frustrated me at every turn. I see no way to isolate the code at /login:1

byterbit left a reply on HTTPS Not Working With MYSQL

@NALINDADJ - I have no idea what is going on here. The site loads fine on http. On https I get in Chrome’s inspect: “Failed to load resource: the server responded with a status of 404 (Not Found) /login:1” and the authorization and login process fails. I assumed it must have been a MYSQL/SSL failure, but after days of experimentation I must say I have no idea if that’s the case. I’ve inherited a large and undocumented Laravel project. Debugging it has frustrated me at every turn. I see no way to isolate the code at /login:1

11 Feb
1 week ago

byterbit left a reply on HTTPS Not Working With MYSQL

@SNAPEY - Database server is on the same machine -

byterbit left a reply on HTTPS Not Working With MYSQL

@NALINDADJ - Thanks for the help! I think this looks OK-

mysql> show variables like '%ssl%'; +---------------+-----------------+ | Variable_name | Value | +---------------+-----------------+ | have_openssl | YES | | have_ssl | YES | | ssl_ca | ca.pem | | ssl_capath | | | ssl_cert | server-cert.pem | | ssl_cipher | | | ssl_crl | | | ssl_crlpath | | | ssl_key | server-key.pem | +---------------+-----------------+ 9 rows in set (0.24 sec)

10 Feb
1 week ago

byterbit started a new conversation HTTPS Not Working With MYSQL

HTTPS not working with MYSQL; data adjustments?

I just got a SSL certificate for my Ubuntu hosted Laravel site. Now I can’t log in on HTTPS (Larvel auth uses MYSQL)

I can still log in using just the IP address. What must I do? I assume I must adjust Laravel to use secure MYSQL? Or not? This is my primary question.

In fishing around (can’t find anything definitive on Laravel sites) on how to deal with this:

  1. Using the the mysql_ssl_rsa_setup utility I made MYSQL certificates and keys. This looks OK but I still cant log in on HTTPS

So I looked into changing the database config file and I added

'options' => array( PDO::MYSQL_ATTR_SSL_CA => '/var/lib/mysql/ca-cert.pem', PDO::MYSQL_ATTR_SSL_CERT => '/var/lib/mysql/client-cert.pem', PDO::MYSQL_ATTR_SSL_KEY => '/var/lib/mysql/client-key.pem' )

but I still cant log in on a HTTPS URL. Again, am I on the right track at all? In using HTTPS must I now then use secure MYSQL?

04 Jan
1 month ago

byterbit started a new conversation Debugging My Debugging. Linux Privileges?

Debugging my debugging. Nothing I do enables me to debug PHP code. I’ve inherited a large, undocumented and problematic Laravel 5.4.36 app, running on Ubuntu with Apache. Owner and group are www-data. dd() and Storage::append did work on a test Ubuntu system running as root. They don’t work now. I can see that the login function fires, as when I break it by renaming I get a login error, but no debugging code works, and I’ve tried the built in Logs, as well as just writing straight PHP code and using the Storage system.

I have both: use Storage; use Log;

public function login(Request $request){
    // --- Read Input
    $input = Request::all();
    $username = $input['username'];
    $password = $input['password'];


dd($username); 

Storage::append('log.log',  'IN LOGIN'  ); 


$myfile = fopen("var\www\html\dashboard\newfile.txt", "w") or die("Unable to open file!");
$txt = "writing to file\n";
fwrite($myfile, $txt);
$txt = "writing to file\n";
fwrite($myfile, $txt);
fclose($myfile);

Common::log("Input", $input);   

In other words,

  1. dd($username); does not seem to fire.
  2. fwrite($myfile, $txt); does not create a file
  3. Storage::append('log.log', 'IN LOGIN' ); does not make a file
  4. The OP’s Common::log("Input", $input); does not work either.

4 and 2 did not work as root in the test system, but 3 and 1 did. ANY thoughts on this or any other method of debugging PHP in Lareval much appreciated.

03 Jan
1 month ago

byterbit left a reply on Odd Routing Behavior?

Thanks to all for the help! Happily I was wrong, the path works, but the reason for my confusion is that none of my debugging code worked.

```  dd($username);   ``` does nothing.

     ``` Storage::append('error.log',  'IN LOGIN'  ); ``` Does nothing, and I do have a "use Storage;" on the top.


 ``` Common::log("Input", $input);  ``` Does nothing. I'll leave this here for a few minutes or hours, then try to delete the original post so as not to waste your time, and then I guess try to debug my debugging.

byterbit left a reply on Odd Routing Behavior?

@DALMA - Got it. Thanks -

byterbit started a new conversation Odd Routing Behavior?

I’ve inherited a large, undocumented and problematic Laravel 5.4.36 app. At the moment I’m having issues debugging failed logins. I can see the login process hitting the CallAjax function (see below), and I can see the passed URL here as “/login”. Problem is that the “public function login() function is NOT being called. I’m sure of this, even though the web.php file in the Routes folder has a line Route::post('/login', '[email protected]');

There are a mass of other files; can anyone suggest where I can look what is being called by /login?

function CallAjax(URL, type, data, onSuccess){ $[type || "get"](URL, data, function(data, success){ console.error(data, success) // hits this and bounces off to charts.js line 244 if(!success)alert("Can't reach the server. Please try again."); else{ data["_token"] = "{{ csrf_token() }}"; onSuccess.call(null, data); } }).fail(function(e) { onSuccess.call(null, {error: true, e: e}); });

27 May
3 years ago

byterbit left a reply on Problems Installing Laravel Homestead On Windows

Thanks for the help. I dont see any indication of it being in the VirtualBox.

26 May
3 years ago

byterbit started a new conversation Problems Installing Laravel Homestead On Windows

Newbie Blues: (I've followed several sources of suggestions - but you can see the point of failure below - as it stands I could have had a more productive day setting it all up manually - still the pre configured box idea in a VM seemed like such a good idea ....)

Welcome to Git (version 1.9.5-preview20150319) Run 'git help git' to display the help index. Run 'git help ' to display help for specific commands.

art@EIGHT ~ $ vagrant box add laravel/homestead ==> box: Loading metadata for box 'laravel/homestead' box: URL: https://atlas.hashicorp.com/laravel/homestead This box can work with multiple providers! The providers that it can work with are listed below. Please review the list and choose the provider you will be working with.

  1. virtualbox
  2. vmware_desktop

Enter your choice: 1 ==> box: Adding box 'laravel/homestead' (v0.2.6) for provider: virtualbox The box you're attempting to add already exists. Remove it before adding it again or add it with the --force flag.

Name: laravel/homestead Provider: virtualbox Version: 0.2.6

art@EIGHT ~ $ git clone https://github.com/laravel/homestead.git Homestead Cloning into 'Homestead'... remote: Counting objects: 875, done. rRemote: Total 875 (delta 0), reused 0 (delta 0), pack-reused 875 Receiving objects: 87% (762/875) Receiving objects: 100% (875/875), 131.32 KiB | 0 bytes/s, done. Resolving deltas: 100% (504/504), done. Checking connectivity... done.

art@EIGHT ~ $ bash init.sh bash: init.sh: No such file or directory

art@EIGHT ~ $