Our Black Friday sale is now live! All individual subscriptions are 50% OFF. This week only!

bor1904

bor1904

Member Since 2 Years Ago

Experience Points
1,970
Total
Experience

3,030 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
5
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,970 XP
Nov
10
2 weeks ago
Activity icon

Replied to Why We Should Use DELETE Method For Destroy Elements

Wow, thanks for replays. To be more precise I use this practice only in close admin panels. Need auth before.

Activity icon

Started a new Conversation Why We Should Use DELETE Method For Destroy Elements

Hello, I have strange question about best practice talking about using DELETE method for deleting element usually by button on list view. (Im not asking about API endpoints)

I normally using GET links to delete some resource via controller method always checking role/permission on "backend" and asking user for approve via JS on frontend. And this approach never disappointed me.

But probably there is an important reason why I did this wrong way... and I want to know what is the reason :)

thank you K

Nov
03
3 weeks ago
Activity icon

Replied to Callback Function Vs Normal Function

This make sense! Thank you.

I think this is a good "think" if we cannot/shouldnt change code of for example external library of other part of system which is developed for other team, right? this can be one of profits/constraints?

Second observation ... most of callbac's are anonymus functions, right?

Activity icon

Replied to Callback Function Vs Normal Function

In other XXX examples in Internet too... this is the reason to write this post.

In each tutorial we can write in introduction part that callbacks is a powerfull and irreplacable mechanism to give as a magic power ... and then is example which gives me only one question ... "why this guy complicated this part of code some function assigned to variable and passed ass a parameter, when I call normal function inside and efect is exactly the same"...

Activity icon

Replied to Callback Function Vs Normal Function

then why I should use callback if always I can use normal function call which is more clear to read and understand ?

Activity icon

Replied to Callback Function Vs Normal Function

Can you give me one example where parameter is better then calling func directly?

Activity icon

Started a new Conversation Callback Function Vs Normal Function

Hi, this is my nightmare from many years. I know how they work, I'm using it... but I still dont know why I shouldn't use normal function instead of callback function and vice versa.

This evening I read and watch over 20 materials and in each explanation example I can switch callback to normal function and it still work the same way, like here:

///////////////////////////

VERSION FROM TUTORIAL

function createQuote(quote, callback){ var myQuote = "Like I always say, " + quote; callback(myQuote); // 2 }

function logQuote(quote){ console.log(quote); }

createQuote("eat your vegetables!", logQuote); // 1

// Result in console: // Like I always say, eat your vegetables!

/////////////////////////////////////

MY VERSION (after switching; it works of course)

function createQuote(quote){ var myQuote = "Like I always say, " + quote; logQuote(myQuote); // 2 }

function logQuote(quote){ console.log(quote); }

createQuote("eat your vegetables!");

//////////////////////////////////////

Please show me one example where using callback is mandatory or easiest then use normal function. Thank you in advance! K

Oct
31
3 weeks ago
Activity icon

Replied to Best Way To Creating And Managing Email Templates In Web System

Unfortunately I need my own template builder. Templates will be simple but I need to use some intuitive tool for normal users.

PS: very nice this online tool. I saved the link

Activity icon

Replied to Where We Should Put Business Logic?

Thank you but topic a little bit old :)

Laravel is changing and approach too :)

I want to "hear" about current trends :)

Activity icon

Started a new Conversation Where We Should Put Business Logic?

Hi, this is a general question about best practices or your experience. When I was starting with PHP and PHP MVC Frameworks I was puting as much code as I can into controllers (supposed as most of beginners). Then I started using Laravel and great Eloquent... from this moment my business logic code was divided into controllers and models "fifty fifty".

Few months ago I watch many tutorials where developers put most of business logic to events and observers ...but last days I read in two articles independently about "services" as a best place for business logic (even when service isnt reusable element, only encapsulates some functionality).

What is your opinion? What is your practices ?

Thank you K

Oct
26
4 weeks ago
Activity icon

Replied to Best Way To Creating And Managing Email Templates In Web System

Hi, thank you for your replay.

But I checked this and this is simple WYSWIG text editor right? If yes then how can i build a "grid" structure of template?

thank you

Oct
25
4 weeks ago
Activity icon

Started a new Conversation Best Way To Creating And Managing Email Templates In Web System

Hello, Im starting with project where client need to creating emails (templates) using few possible variables ("placeholders"). Of course want to have elastic, simple, RWD, beautiful emails but he isnt frontend developer :)

I try to find some packages, information or hints in Internet but ... I found mostly a few not precise information which cannot help me or very old packages on github.

Maybe GrapeJS? maybe https://github.com/spatie/laravel-database-mail-templates? maybe this https://github.com/Qoraiche/laravel-mail-editor?

Any hints will be helpful. Thank you!

K.

Oct
12
1 month ago
Activity icon

Started a new Conversation Best Way To Handle Import: CSV With Related Photos

Hello, I have project where my client want to add houses to system uploading two files: XLS with houses (1 row - 1 house) and related photos in zip archive (convention row id in XLS = directory number; in each directory are placed 2 subdirectories "interior" and "exterior"; each photo should be resized/fitted and so on).

And the problem is with performance because in one upload client need to add about 500 houses, and one hause will have about 10-15 photos. And I cannot do this in sync mode because I will kill server. I assume that i need use queues? or maybe scheduled command?

Second problem is keeping relation between row and directory number. If I add all rows from XLS to DB and then I'll start adding photos then my temporary id in XLS is gone (additional field in db like import row id?) ... maybe I should do this step by step this way: get one row from XLS, remember id, add house to DB, delete row from XLS, find directory pass to remembered row, get/handle all photos, remove this directory. But if this proces break in the middle then im lost :(

...all my ideas sounds unprofesional in my opinion :/

Which way I should do this? I try to find the best practices for this case

Thank you

Aug
29
2 months ago
Activity icon

Replied to Naming And Project Structure Convention

But we discuss about pivot form table workers and table workers_attachments. Convention about combaining "two words" names with name duplication doesnt exist (in my opinion). This is a problem.

Technically I can do everything what I need but this becomes looking strange and names are veryyy long....and it worries me

Activity icon

Replied to Naming And Project Structure Convention

The Convention does not provide for such a case. That's the problem

Activity icon

Replied to Naming And Project Structure Convention

I used WorkerMailAttachment, not MailAttachment. Maybe WorkerAttachment instead of WorkerMailAttachment is better way. But how I should name pivot storing info which attachement was send to which worker if workers are stored in worker table, attachments in worker_attachment table? worker_worker_attachment?

Activity icon

Started a new Conversation Naming And Project Structure Convention

Hi guys, many time I have doubts how resolve some not obvious relations/names in project.

For now I have case like this:

System should attache documents (0-3) when is created user in admin panel ("worker").

OK, these users I have stored in "workers" table and this is clear but what about attachements and relations by pivot table?

For now I create "WorkerMailAttachementController" and "worker_mail_attachment' table.... in views in "worker" dir I created sub directory "mail_attachment" ...and index, create ..and so on files. Simillar way I created AJAX part of controllers...

Im afrad with create name for pivot table ...

OK, above approach is wrong for sure... but what I can do this right way?!

PS: System should send many different emails with many different attachements (this is important I think)

Please help me :)

K

Aug
05
3 months ago
Activity icon

Started a new Conversation Pusher Beams VS FCM

Hello, I project social media web app (with mobile app) where I need real-time chat messaging and push notifications.

For chat messaging best option is PUSHER Channels for now I think.

But what for pushes? FCM or Pusher Beam?

Maybe somebody of you have expirience with FCM+Laravel as backend or P.Beam + Laravel?

What cons and pros do you see of each approach?

Thank you!

K.

Jul
17
4 months ago
Activity icon

Started a new Conversation FCM Or Laravel Sockets

Hi, Im quite new in real-time services (I created simple chat and web in-app notyfications on laravel sockets and pusher and this app works nice).

I want to create something more complex in Laravel where I'll need handle real-time chats, push and in-app notifications and knowing if users are online at the moment (system will be consist of webapp and mobile apps - API).

I wonder if Laravel WebSockets or Google FCM will be better and why?

Maybe some of you have expirience and advice me a little bit ?:)

Thank you K.

Jul
05
4 months ago
Activity icon

Started a new Conversation How Storing And Getting Global Config Values

Hello, first time I have system which should have a lot of global config parameters.

I'm wondering what is a best practise in this situation. Im asking about DB strukture, data strukture (because this parameters will be different types and structures) and how I should access to it?

Can somebody help me in this area?

thx K

Jun
19
5 months ago
Activity icon

Replied to Slow Terminal Commands On WLS

in my opinion php.ini isn't connected with "composer update" or "npm run dev".

I have 5 GB free RAM in WLS and when command is executing this value doesn't decrise.

Activity icon

Started a new Conversation Slow Terminal Commands On WLS

Hi, I'm working with laravel projects on windows linux subsystem and it's working great! But terminal commands like "php artisan ...", "composer install ...", "npm install" working very slowly although I have heigh performance laptop (new I7/16GB RAM and SSD).

Comands which execiting on my WLS in 1-2 minutes on 3$ VPS are executed in few seconds.

Somebody know a reason? or some hint which can help me?

thank you! K