lukegalea16

lukegalea16

Member Since 10 Months Ago

Experience Points
1,650
Total
Experience

3,350 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 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-in-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 Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • evangelist 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.

Level 1
1,650 XP
Jun
01
19 hours ago
Activity icon

Replied to Log Text File - Daily

In my logging.php I found the line 'channels' => ['single'], which I can change to daily. Thanks!

Activity icon

Started a new Conversation Log Text File - Daily

Hi, in one of my Laravel projects the logs are saved daily however in another there is only one log file. Is there a way to save a log file daily? Online I found that this can be configured in the config/app.php however I do not have this line in my app.php file.

Mar
23
2 months ago
Activity icon

Started a new Conversation Storing JWT

Hi, so far I was saving cookies from the backend server in order to make requests from my frontend server. However now I need a more generic approach of saving the token in both my browser and Android Application in order to be able to get access from both. Saving cookies (http only and secure) using java script does not seem to be very possible. What do you suggest? Should I save them in my cookies using PHP in my front end as well?

Thank you

Mar
03
2 months ago
Activity icon

Started a new Conversation Controllers And Services

Hi, usually the methods within my controllers I follow the CRUD system.

However, sometimes I've got a case where the incoming data about a device is saved in different tables (models) - for example I'd have the latest voltage saved, or the last status of the device and these have to be saved in different tables because the data comes in separately (meaning that in one message I'd either get the voltage or the status only for example and it would not make sense to use the same table because then I'd have to populate the status or voltage column to some NULL value - correct me if I'm wrong about this).

Now when gathering data about a device and requesting it from my front-end, I will be needing the latest voltage and latest status of the device. My question would then be - is it ok to return data about two different models from the same controller? Since usually the controller is related to only one model?

Thank you!

Feb
29
3 months ago
Activity icon

Replied to GET URL Query Parameters

Thank you for clarifying!

Feb
28
3 months ago
Activity icon

Replied to GET URL Query Parameters

Hi @sti3bas this sums it up well I think. How would query parameters work with Laravel please? I usually use the request method with path variables.

Activity icon

Started a new Conversation GET URL Query Parameters

Hi, can someone confirm the difference between the two following Query methods for a GET URL:

  1. domainexample.com/route/name1/var1 2.domainexample.com/route/?name=name1&variable=var1

If I understood well, both are GET requests both I'm not sure when I should use one or the other. As for (1): I usually set the GET route as follows: route/{name}/{variable}. For (2) I should set it up as follows?: route/?name={name}&variable={variable}

Thanks

Feb
25
3 months ago
Activity icon

Replied to Laravel TCP/IP Connections

Hi @ahmeddabak sorry to bother again. Is it possible to modify this project such that the TCP Server always remains open for any connections which might occur? Just as a Laravel project may accept incoming API calls through its routes file I'd like the TCP Server to remain on and accept any incoming data from my device. The project will also be hosted on GoDaddy.

Activity icon

Replied to MySQL Server Error

Thank you!

Activity icon

Replied to MySQL Server Error

Do you suggest contacting GoDaddy regarding this please?

Feb
22
3 months ago
Activity icon

Replied to MySQL Server Error

I will try. What's weird is that it is only happening intermittently (only on rare cases).

Activity icon

Replied to MySQL Server Error

In both (phpmyadmin only showed it once/twice - it is reported more in the laravel log). I have incoming data handled by a controller and service and sometimes the log reports this error - noting down the data packet as well.

Activity icon

Started a new Conversation MySQL Server Error

I have a Laravel project hosted on GoDaddy with PHPMyAdmin etc. and over time sometimes I am getting the following error, what could be happening please? production.ERROR: SQLSTATE[HY000] [1130] Host 'localhost' is not allowed to connect to this MySQL server (SQL: insert into ...

Feb
12
3 months ago
Activity icon

Replied to Laravel TCP/IP Connections

Hi @ahmeddabak , that's brilliant! Thank you :) Will check it out. Thank you for your work, I really appreciate it.

Feb
11
3 months ago
Activity icon

Replied to Laravel TCP/IP Connections

Damn thanks for the help! Much appreciated :) No rush though.

Activity icon

Replied to Laravel TCP/IP Connections

Hi @ahmeddabak , that's what I was looking at. Has anyone tried it before? Just wanted to make sure that it's the correct way for implementing TCP/IP connections.

Feb
06
3 months ago
Activity icon

Started a new Conversation Laravel TCP/IP Connections

Can someone pinpoint me at a good example or tutorial for using Laravel to accept an incoming TCP/IP connection please? The general idea was to use web sockets however since I won't be having such a fast data rate perhaps these can be eliminated? My use case is an NB-IOT device sending data over a TCP/IP connection - however as mentioned it won't be sending data / or sent to very frequently and so perhaps web sockets are not needed in this case?

Activity icon

Replied to Laravel Vs Node JS

Sorry to ask again but could you kindly elaborate about micro services please? From what I understood they are modular services within the application? Moreover is it fine to use web sockets (TCP requests) within Laravel?

Feb
05
3 months ago
Activity icon

Started a new Conversation Laravel Vs Node JS

Hey all so far I'm quite comfortable with Laravel and would like to test out TCP connections. Can you provide some examples regarding those please? Moreover I see many programmers making use of Node JS. Can someone highlight the major differences when I should use one or the other (Laravel vs Node JS) ?

Activity icon

Replied to TCP Socket

agreed!

Activity icon

Replied to TCP Socket

Ok thank you for that! And about the php Socket Functions (I was misinformed about that). Could you kindly highlight major strengths and weaknesses for Laravel/Node JS? Currently I am more comfortable with Laravel but not sure why many use Node JS.

Activity icon

Replied to TCP Socket

Hi @ahmeddabak this is interesting. Do you perhaps suggest using Node JS altogether as a better alternative? I think that sockets in Node JS are supported out of the box?

Activity icon

Started a new Conversation TCP Socket

Hi, so up till now I am quite used to setting up Web/API Routes in Laravel in order to accept incoming data and store it in a DB etc. However I have a particular device/project which sends data through a TCP connection. Locally I managed to setup a server using js which used a web socket. Could something similar be done for Laravel ? (i.e. use a web socket etc) or would it be an incorrect route to take?

Jan
29
4 months ago
Activity icon

Started a new Conversation Using Laravel Blade File

So I am using Laravel with blade php files and have the following code.

function print_chart(select){
            <?php $selector = 2?>
            var a111_config = {
                type: 'scatter',
                data: {
                    labels: [''],
                    datasets: [{
                        label: 'A111',
                        backgroundColor: '#FF0000',
                        borderColor: '#FF0000',
                        data: [
                        @foreach (array_combine($processedData[$selector]->distances, $processedData[$selector]->amplitudes) as $distance => $amplitude)
                        {
                            x: {{ $distance }},
                            y: {{ $amplitude }} * multiplier
                        },
                        @endforeach
                        ],
                        fill: false,
                        showLine: true
                    }]
                },
...
...

I am using inline php within the JS to access the array passed from the controller. Is it possible to replace the $selector variable with the JS variable select passed as an argument? I've tried different options which don't seem to work

Jan
08
4 months ago
Activity icon

Replied to Changing URL Query Shown

Hi @tykus thank you for the valuable information. Which ready made solutions would you recommend please?

Activity icon

Started a new Conversation Changing URL Query Shown

Hi, so first of all.

  1. Is it recommended to use Laravel as a website framework for blog posts etc.?
  2. To view blog posts the usual way is to fetch articles using query URLs such as domain.com/articles/{article-id} to fetch a particular article... However in most cases when I'm reading news etc I see the url as domain.com/articles/this-is-an-article-title... How can I achieve something similar please? Perhaps the id should be a string with the actual title?

Thanks