bor1904

Member Since 3 Years Ago

Experience Points
2,140
Total
Experience

2,860 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.

  • Community Pillar

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

Level 1
2,140 XP
Apr
05
1 week ago
Activity icon

Started a new Conversation Measuring/monitoring Webapp Servers

Hello Guys! This is the moment when I start to thinking about monitor my web servers/apps (working on Laravel mostly).

Do you monitor your servers? If yes in which model? Some profesional complex systems as Nagios/Zabbix? Some smart bash scripts? Laravel packages like ServerMonitor by Spatie? or maybe something like NetData or LinuxDash ?

How often you get "samples"? Which channel do you prefere to notify yourselves about some problems?

thank you K

Mar
01
1 month ago
Activity icon

Replied to Why Browser Doesn't Store Cookies From Laravel Sanctum?

they are web routes... but this have some meaning?

Feb
28
1 month ago
Activity icon

Started a new Conversation Why Browser Doesn't Store Cookies From Laravel Sanctum?

Hi, I try to figure out strange problem playing with vue/nuxt SPA related to saving cookies.

I have two apps - Vue SPA as front and laravel as API. Im using Sanctum but all above isnt important I think.

And scenario:

SPA send GET on http://localhost:8000/sanctum/csrf-cookie and in response header from server receives:

HTTP/1.1 204 No Content Host: localhost:8000 Date: Sun, 28 Feb 2021 21:19:49 GMT Connection: close X-Powered-By: PHP/7.4.14 Cache-Control: no-cache, private Date: Sun, 28 Feb 2021 21:19:49 GMT Access-Control-Allow-Origin: http://localhost:3000 Vary: Origin Access-Control-Allow-Credentials: true Access-Control-Expose-Headers: Cache-Control, Content-Language, Content-Type, Expires, Last-Modified, Pragma, Set-Cookie Set-Cookie: XSRF-TOKEN=eyJpdi...; expires=Sun, 28-Feb-2021 23:19:49 GMT; Max-Age=7200; path=/; domain=localhost; samesite=lax

FYI Datetime is now+120 min.

Everything looks good but in cookies section I havent this cookie and in response to server I get error 419.

SPA is running on localhost:3000

I checked on three webbrowsers. In console any errors... Im lost...

Thank you in advance for any hint...

K.

Jan
16
3 months ago
Activity icon

Replied to Best Way To Developing Advanced Laravel Apps On Windows

But if we have problems with proceding advenced tasks using external linux libs on WSL2 (many strange errors in linux logs) then why WSL2 + additional command line tool should fix this situation ?

Activity icon

Started a new Conversation Best Way To Developing Advanced Laravel Apps On Windows

Hi, until last month I tried developing on WSL2 and this was very nice and fast... but if project needed some advanced linux/apache features (generating some graphics + blur+watermark etc) all guys in our company had problems with WSL ... apache starts throwing errors, linux started throwing errors. Additionally from time to time we had problems with bash "terminal" which could crash out.

... and then we were back to virtualboxes but this is veryyy slowly (we changes settings many times, we have already tried many tutorials and without effects). We have heigh performance laptops with 16GB RAM, SSD, i7 cpu and dedicated graphic cards ... and after 1 hour of work on ubuntu with light X enviroment + PHPSTORM system freezing, hanging... sometimes mouse right click on project menu needs few seconds to show context menu :/

Unfortunetly we need windows because we (part of whole team) are ... half PM + Designers and half Developers and we need many MS Office apps and many Adobe aps and so on...but half of day we are programming in PHP/Laravel.

What is the best way for us ? Other virtual enviroment? Two operating systems with one bootloader? hybrid approach like vagrant/docer/homestad or something like this ?

Some of you have experience with web programing on windows?

thanks K

Nov
10
5 months 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
5 months 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
5 months 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
5 months 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
5 months 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
6 months 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