lionslair

lionslair

at The Crowd Co

Member Since 2 Years Ago

Perth

Experience Points
15,000
Total
Experience

5,000 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
135
Lessons
Completed
Best Reply Awards
2
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.

Level 4
15,000 XP
Oct
18
1 day ago
Activity icon

Replied to Ngrok For App Url

Did you solve this?

Oct
10
1 week ago
Activity icon

Replied to Translation Text Ending With ':'

I have the date format in a translation string YYYY-MM-DD HH:MM:SS and it comes out like YYYY-MM-DD HH{MM}{SS}

Mar
19
7 months ago
Feb
23
7 months ago
Activity icon

Replied to Laracasts On Chromecast

Talk to pocketcasts they do it from the browser. Works great. I was just looking for the same feature while looking after my son. Multitasking.

Sorry for bumping an old topic Jeffery

Nov
02
11 months ago
Activity icon

Replied to Check Database Connection - GetDatabaseName

Did you solve this?

Sep
30
1 year ago
Activity icon

Replied to What Is The Best Way To Implement Self Reference? Laravel 5.5.4

From memory I think that package has some helpers for formatting. You still have to do the display yourself but it gives you options to help. Eg I think it returns a level so if you are in a dropdown you can use the level to repeat a "-" N times.

I also think it returned the result ordered so you only need to loop over the result set and output or return as needed. It's about 18 months since I actually hands on used the package.

Sep
18
1 year ago
Activity icon

Started a new Conversation Horizon:terminate And Queue:restart

I use envoy on forge to handle my deployments.

I have a task that runs

php artisan horizon:terminate php artisan queue:restart

However I often get the issue where I do not get the forge confirmation in slack that the deployment is finished from Forge however I do get the one I push from my Envoy.blade.php file.

Often the case is if I manually restart the queue for the site in Forge then run the deployment again then all works and I get the Forge slack notification that the deployment was successful.

This makes me think its a queue issues.

Because I run both the horizon terminate and the queue:restart command am i doubling up or introducing an issue which causes the queue not to correctly restart?

Sep
13
1 year ago
Activity icon

Replied to Method Not Allowed Exception - No Message

Route route should be Route::patch not post for a patch.

Sep
05
1 year ago
Activity icon

Replied to ReflectionException Class Not Found On Repository

Did you work out the issue?

Sep
01
1 year ago
Activity icon

Replied to Updating Email Address Of A Related Table

I think it's because your relationship doesn't exist. You update the email on the user object but the teacher is not related at the moment because your using the email as the relationship.

Is the teachers table another type of users table? Why its your relationship not using the default

eg user => id teacher => user_id

Activity icon

Replied to What Is The Best Way To Implement Self Reference? Laravel 5.5.4

Is this for use like a nested set? Example. A menu where you have a hierarchy.

I have used this package before when using tree like structures. Menus or categories etc.

https://github.com/lazychaser/laravel-nestedset

Apr
26
1 year ago
Activity icon

Replied to How To Integrate Rowanwins/vue-dropzone?

Did you resolve this?

Apr
19
1 year ago
Activity icon

Replied to Phpunit Test Not Running With Multiple Database Setup

@scottzirkel what does your connect and disconnect method look like in your Tenant class?

Apr
17
1 year ago
Activity icon

Replied to Unit Testing With Sqlite And Multiple Databases

Did you work out how to use multiple sqlite databases?

Feb
26
1 year ago
Activity icon

Replied to Polymorphic Relation Voteable

I am getting similar. I have a table alerts and alertable within it. ion my log im getting

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'voyager.voy_alertables' doesn't exist (SQL: insert into voy_alertables (alert_id, alertable_id, alertable_type) values (96, 80248, App\AccountBandwidth))

However my alerts table has the row minus a alertable_id andalertable_type populated

Mar
24
2 years ago
Activity icon

Started a new Conversation Validating Date And Time Fields

I am trying to find a way to validate a two date and time fields

The fields stored in the datebase are

  • state_datetime
  • end_datetime

However in the form submission the input is split into

start_datetime d F Y start_time H:i A

end_datetime d F Y end_time H:i A

What I am trying to achieve in the Request validation is that the end time is not before the start time and vise versa.

However I have tried every permutation I can think of

'on_sale_datetime' => 'required|date_format:"d F Y h:i A"|before:' . str_replace(',', '', $this->off_sale_datetime) . ' '. $this->off_sale_time, 'off_sale_datetime' => 'required|date_format:"d F Y h:i A"|after:' . str_replace(',', '', $this->on_sale_datetime) . ' '. $this->on_sale_time,

This fails because the submitted fields start_datetime is the format of d F Y and not d F Y h:i A

I have tried

$this->merge([
        'combined_start_datetime' => str_replace(',', '', $this->start_datetime) . ' '. $this->start_time,
        'combined_end_datetime' => str_replace(',', '', $this->end_datetime) . ' '. $this->end_time,
    ]);

And added the fields combined_start_datetime and combined_end_datetime to guarded in the model. However then the validation is skipped.

If I try

$this->merge([
        'start_datetime' => str_replace(',', '', $this->start_datetime) . ' '. $this->start_time,
        'end_datetime' => str_replace(',', '', $this->end_datetime) . ' '. $this->end_time,
    ]);
    

Then on failure the value of start_datetime back in the form is d F Y h:i A not d F Y

Is there any solution to validating these input for what I am trying to achieve?