AcidDiz

Member Since 3 Years Ago

Experience Points
14,210
Total
Experience

790 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
140
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.

  • Community Pillar

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

Level 3
14,210 XP
Jun
11
1 day ago
Activity icon

Replied to How To Block Laravel_session And XSRF-TOKEN Cookies Until The User Accepts/allow It In Laravel 5.8

Hi maybe I am late.. You don't need to do that. Those are session cookies and you don't need the users permission, you just need to inform users that without those cookies your application won't work. Take a look here. https://gdpr.eu/cookies/

Mar
27
2 months ago
Activity icon

Started a new Conversation Laravel Consoletv/charts V 6.0 - Get Count Per Day And Per Item Name

How do i query to make total count per day based on a name or an id?

With the following query i get count of click on all social anchors per day, but i want to show in the chart also which social anchor has been clicked on that day.


$social_stats= Social::join('social_statistics', 'social_statistics.social_id','socials.id')
                   ->select( array(
                                   'social_statistics.visited_at as visited_at',
                                    DB::raw('count(*) as count'),
                                  )
                           )
                   ->orderBy('visited_at')
                   ->groupBy('visited_at')
                   ->pluck('count','visited_at')
                   ->all();


    $social_bar_chart = new SocialBarChart;


    $visited_at = collect(array_keys($this->social_bar));


    $social_bar_labels = $visited_at->map(function ($date) {
        return Carbon::parse($date)->format('d/m');
    })->toArray();



    $social_bar_chart->labels($social_bar_labels)
           ->dataset('Social Count', 'bar', array_values($this->social_bar))
           ->options([
                        'tooltip' =>['show' => true],
                        'backgroundColor' => '#54a0ff',
                    ]);




Need to render a Chart that shows by day the count of click on different social.

Feb
14
3 months ago
Activity icon

Commented on Pagination

Just add this to you Component Class

protected $paginationTheme = 'bootstrap';

in blade use just {{$your_model->links()}}

Feb
09
4 months ago
Activity icon

Replied to Validate Encrypted

Year 2021 still useful. You save me lot of work. <3

Jan
14
4 months ago
Activity icon

Replied to How To Get Current Time With Carbon Now And Also Display In 12 Hours Format?

To convert to a AM PM string just don't call toTimeString()..

$time = Carbon::now();

$time->format('Y/m/d g:i:s A');

echo gettype($time); //Return string

Activity icon

Replied to Mcamara Localization Unset Supported Locales On Condition

@aurawindsurfing

Ok i solved with a dedicated Middleware that check if user has activated a specific language, anyway thanks for your reply.

Activity icon

Replied to Mcamara Localization Unset Supported Locales On Condition

@aurawindsurfing

Hi thank for the reply.

I forgot to say that the application need also to be translated in all those language for the frontend and dashboard utilities. That's why I need some sort of redirection to a main language or a 404 page to avoid that a page been showed if user doesn't compile some languages. I didn't write the full application but I'm adding some functionality, and I saw that the other programmer didn't take care of this aspect. So I'll do it, but I really don't want to rewrite all the application.

Jan
13
4 months ago
Activity icon

Started a new Conversation Mcamara Localization Unset Supported Locales On Condition

Hi is there a way to unset supported locales for one or more routes with a condition?

For Example the application has EN,FR,DE,ES,IT as supported locales, user can write some text in all those language, but who doesn't speak Spanish or Italian doesn't need to compile text fields of those language so he can turn those 2 language off.

I know how to unset from the language selector list in the page, but if i type url in address bar, those 2 urls still exists and of course are empty because the fields in database are NULL.

So how can i redirect from an unsupported locales page to an available supported locales one?

I'm sorry, but i'm little rusty with Laravel, I think I have to create a dedicated middleware to do that and unset those language from there, but i'm not sure. Any tips?