4unkur

4unkur

Web Developer at Intelliants

Member Since 1 Year Ago

Bishkek

Experience Points
6,570
Total
Experience

3,430 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
44
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 2
6,570 XP
Apr
01
1 month ago
Activity icon

Commented on Casting Eloquent Attributes To Value Objects

It looks very similar to JetBrains Mono but I'm not sure

Mar
10
2 months ago
Activity icon

Started a new Conversation Fields Management

I have a project. There are roughly 3 models and the main request is: There should be a field manager.

For each model I can create/edit/delete fields.

There are predefined system fields that cannot be deleted. overall fields can be created/edited/deleted. If user deletes a field (custom field), then all the data will be lost, no worries about it. user also can edit whether this field is required or not. Fields types: text, number, date, dropdown (select with options) Name of the field (title) also editable.

Are there any packages for that? Or any packages that are related to this topic? Any help and suggestions would be appreciated guys. I'm currently only planning and thinking the architecture

Feb
10
3 months ago
Activity icon

Replied to Help Debugging PHP Error: Too Many Open Files In System

Regarding this issue. We have increased the ulimit value to be 99999 Since then there were no sentry logs until 2 days ago. Since these few days, we have received 6 errors from Sentry with error: Too many files opened in the system

ps -ef | grep ffmpeg results: are now just one string:

user1 34333 33340  0 07:27 pts/0    00:00:00 grep --color=auto ffmpeg

lsof results are less than previous and does not contain ffmpeg. In the log provided in the initial question it was about 2,5k, now it's 2,2k

I am not sure what could be the problem. Any help would be appreciated.

Jan
31
3 months ago
Activity icon

Replied to Help Debugging PHP Error: Too Many Open Files In System

Yes I am sure that I meant 9999 (10k - 1)

Ok, I'll try to change that number. Also server reboot fixed this issue and I no longer receive Sentry exceptions.

Thank you for your answer

Jan
29
4 months ago
Activity icon

Started a new Conversation Help Debugging PHP Error: Too Many Open Files In System

The setup is:

Laravel 5.8 (Upgraded from 5.6)

RabbitMQ as a queue driver (vladimir-yuldashev/laravel-queue-rabbitmq)

Scheduler set up (as described in the docs)

Supervisor configured to run 8 processes of php artisan queue:work --tries=3 --daemon

I have an application running on production & staging. Recently I started to receive a lot of Sentry exception logs. There are a lot of them, 2 examples:

Core Warning: PHP Startup: Unable to load dynamic library 'xmlrpc.so' (tried: /opt/cpanel/ea-php72/root/usr/lib64/php/modules/xmlrpc.so (/opt/cpanel/ea-php72/root/usr/lib64/php/modules/xmlrpc.so: cannot open shared object file: Too many open files in system), /opt/cpanel/ea-php72/root/usr/lib64/php/modules/xmlrpc.so.so (/opt/cpanel/ea-php72/root/usr/lib64/php/modules/xmlrpc.so.so: cannot open shared object file: Too many open files in system))
Warning: include(/home/www/public_html/vendor/guzzlehttp/guzzle/src/Exception/ConnectException.php): failed to open stream: Too many open files in system

You can notice that there is something in common: Too many open files in system. Other logs also contain this error message, so probably the issue is related to that.

I did some research and found out about checking the ulimit -n, on the server it's equal to 9999

Also, what I have noticed, in the threads related to this issue, they suggest increasing the ulimit to 1024 or 2048. But in my case it's already a lot: 9999

I googled about that too. The max ulimit value can vary, but anyway I feel like there is something wrong in my application, so it produces these errors.

The application has video processing feature: Uploaded videos are converted to mp4 and logo of the company is appended to the left top bottom of the video. All that stuff is done by ffmpeg utility. I am using https://github.com/mikehaertl/php-shellcommand this package to execute shell commands. I am using Laravel queued jobs for video processing, here's the job class: https://gist.github.com/4unkur/e066fd3058b62c1c38808448aa682da7

Also, here are some info I get from debugging:

ps -ef | grep ffmpeg results:

https://pastebin.com/cK09XkLi

lsof:

https://pastebin.com/wMFsmHjX

Any help would be appreciated.

Thanks.

Dec
26
5 months ago
Activity icon

Started a new Conversation Actions In Emails (submit Form Via Link In The Email)

I have a website with ability to invite to the interview. This feature is only for registered users. On the invitation page, there is a form with buttons: Accept, Decline Also, we do have email notifications for this. On that email, there is a link & 2 buttons: accept & decline. Currently those buttons are links to invitation page.

Question: how to make them to actually work, like if user was logged in and clicked on accept button? any articles/tutorials about similar functionality would be great

Activity icon

Replied to Updating User DB

@randy_johnson please, show your whole method and the route too.

Activity icon

Replied to Removing Default Files

@piousvenom open app/Http/Kernel.php and you'll see that those middleware files are used there. In the recent Laravel versions, most of the files are already stripped out. For example, there are no Jobs, Events, Listeners folders by default. Those folders will be generated once you run associated artisan commands. I mean, Laravel already comes with a clear structure, no need to remove anything unless you know what you are doing

Activity icon

Replied to Improve Query Binding Using Array For Where In Statement

You can use selectRaw. Example from docs:

$orders = DB::table('orders')
                ->selectRaw('price * ? as price_with_tax', [1.0825])
                ->get();
Dec
12
5 months ago
Activity icon

Replied to Serialization Of 'Closure' Is Not Allowed. Reason: Spatie Laravel Media Library Package

I have applied temp fix. I hid 2 avatar getters' values before queueing:

$user->makeHidden(['avatar_image', 'avatar_image_thumb']);
Activity icon

Replied to Where Are You All From?

Kyrgyzstan, Bishkek 🇰🇬

Activity icon

Started a new Conversation Serialization Of 'Closure' Is Not Allowed. Reason: Spatie Laravel Media Library Package

Recently I have used laravel media library for avatars processing (User model) Before it was simple Storage::put. After deployment I have started to receive Sentry exception logs: Serialization of 'Closure' is not allowed. I have googled a lot and after a lot of debugging I found out that the reason was in 2 getter methods, which return avatar image url. Those 2 getters are also included in $appends array of the model. If I remove them from $appends property, then the problem dissappears. I have already commented in related issue in the package's repo: https://github.com/spatie/laravel-medialibrary/issues/1646#issuecomment-564378012 but still no response and sentry exceptions are still comming :( What quick fix I can apply? I have a lot of email notifications sent (about 20). So it would be quite hard to change them all to accept not whole $user model, but only required properties - this is the solution I can see now. Any assistance would be appreciated

Dec
10
5 months ago
Activity icon

Replied to Serialization Of Closure Failed: Serialization Of 'Illuminate\Http\UploadedFile' Is Not Allowed

Maybe late, but it might help others. The issue is related to passing $request object. Instead, pass $request->all() or only needed input values. It should fix the issue

Activity icon

Replied to Serialization Of 'Closure' Is Not Allowed

The issue is related to passing $request object. Instead, pass $request->all() or only needed input values. It should fix the issue