pordonez

Web Developer at Clark Outsourcing

Member Since 2 Years Ago

Experience Points
3,520
Total
Experience

1,480 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
0
Lessons
Completed
Best Reply Awards
1
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
3,520 XP
Jan
20
3 days ago
Activity icon

Replied to Transfer Whole Folder To A Folder

because i have a bunch of folders with a certain date to move them to zip folder so that i can archive them.

Jan
19
4 days ago
Activity icon

Started a new Conversation Transfer Whole Folder To A Folder

Hello laravel masters, I need your assistance i need to transfer folder inside a folder please see below my directory

-storage
--files
---folder1
---zip

what i need is, I need to move "folder1" to inside "zip" folder.

I am using storage facades.

Dec
17
1 month ago
Activity icon

Started a new Conversation Laravel 504 Gateway Time-out

Hello web masters, I am experiencing 504 Gateway Time-out when trying to archive my files

I have like 557 folders and each folders there are 5-15 files

here is my code

$raws = JobFile::whereMonth('created_at', '01')->whereYear('created_at', '2020')->get();
$zip = new \Chumper\Zipper\Zipper;
$files = public_path('css');
$zip->make('test.zip');
foreach($raws as $raw)
{
	$files = public_path('storage/storage/jobfile/'.$raw->slug);
	$zip->add($files);
}
 $zip->close();
       	

the zip is being created and being filled up by folders, but on some time it will end up 504 Gateway Time-out error.

Is there any solution for this?

Nov
24
1 month ago
Activity icon

Replied to Daterangepicker Disable Weekends

thank you for this.

Activity icon

Replied to Daterangepicker Disable Weekends

@neilstee can't use that option on daterangepicker.

Activity icon

Replied to Daterangepicker Disable Weekends

sorry for incomplete information, i am using https://www.daterangepicker.com/

Activity icon

Started a new Conversation Daterangepicker Disable Weekends

Hi guys, i already searched (may not searched enough) but i haven't able to disable all the weekends (Sat,Sun) on my daterangepicker. Can anyone help me please.

Note: I'm using https://www.daterangepicker.com/

Nov
19
2 months ago
Activity icon

Replied to Laravel Trying To Get Property Of Non-object

Yes when i tried that it is working. but with $dept->department_name it is showing the error.

Activity icon

Replied to Laravel Trying To Get Property Of Non-object

Hi @marianomoreyra

thank you for replying, to answer your question yes i used dd() before assiging to $ticket->department here is the whole code

$dept = Department::where('email', '[email protected]')->first();
// dd($dept->department_name);
$ticket = new Ticket;
$ticket->department = $dept->department_name;
$ticket->save();
Activity icon

Started a new Conversation Laravel Trying To Get Property Of Non-object

I have a query something like

$dept = Department::where('email', '[email protected]')->first();

then i tested it using dd()

dd($dept->department_name);

and the result shows, but when i tried putting that to another query

$ticket = new Ticket;
$ticket->department = $dept->department_name;
$ticket->save();

the error is

Trying to get property 'department_name' of non-object

can anyone help me with this please.

Oct
19
3 months ago
Activity icon

Started a new Conversation Push The Data To Array

{"department_id":"tests","count":7},{"department_id":"wew","count":3}

given the data above. how can i put the department_id's to 1 array something like

var department_id = ['tests', 'wew'];
var count = [7,3];
Activity icon

Replied to Get The Unique And Add The Numbers In Json

got it worked thank you again @rodrigo.pedra

Activity icon

Started a new Conversation Get The Unique And Add The Numbers In Json

I have a data

var data = [{"department_id":"tests","count":5},{"department_id":"wew","count":2},{"department_id":"wew","count":1},{"department_id":"tests","count":1},{"department_id":"tests","count":1}]

how can i do something lke

{"department_id":"tests","count":7},
{"department_id":"wew","count":3}
Oct
18
3 months ago
Activity icon

Replied to Add Title On Json

oh yeah that makes total sense.

but on my current data

var data = [{"department_id":"tests","count":5},{"department_id":"wew","count":2},{"department_id":"wew","count":1},{"department_id":"tests","count":1},{"department_id":"tests","count":1}];

how can i combine all the similar department_id and add their count and pass them to array so that i can use them on my chart?.

Activity icon

Replied to Add Title On Json

sorry. i have this data

[{"email":"[email protected]","account":"Test","count":10},{"email":"[email protected]","account":"Test2","count":20}]

how can i get just the

[{"account":"Test","count:10},{"account":"Test2","count":20}]
Activity icon

Replied to Add Title On Json

got it all working. thank you @rodrigo.pedra . quick question tho on the above script how can i get the account and count?.

Activity icon

Replied to Add Title On Json

got the results i want. thank you @rodrigo.pedra

if its not too much to ask can you help me one more time?.

i have 2 data

var data1 = [{"email":"[email protected]","account":"Test"},{"email":"[email protected]","account":"Test2"}];

var data2 = [{"email":"[email protected]","count":10},{"email":"[email protected]","count":20}];

how can i combine two different array based on the email?. the result should be something like

result = [{"email":"[email protected]","account":"Test","count":10},{"email":"[email protected]","account":"Test2","count":20}]
Activity icon

Replied to Add Title On Json

the original data is something like this

array {
	0 : array ["[email protected]", "test1"]
	1 : array ["[email protected]","test2"]

then i do JSON.stringify();

then the result is

var data = [["[email protected]","test1"],["[email protected]","test2"]];
Activity icon

Replied to Add Title On Json

how can i do that?.

Activity icon

Replied to Add Title On Json

thanks for the reply but im getting result like this

0: Object { email: "0", account: "[" }
​​
1: Object { email: "1", account: "[" }
​​
2: Object { email: "2", account: "\"" }
​​
3: Object { email: "3", account: "k" }
​​
4: Object { email: "4", account: "a" }
​​
5: Object { email: "5", account: "t" }
​​
6: Object { email: "6", account: "h" }
​​
7: Object { email: "7", account: "l" }
​​
8: Object { email: "8", account: "e" }
​​
9: Object { email: "9", account: "e" }
​​
10: Object { email: "10", account: "n" }
​​
11: Object { email: "11", account: "." }
​​
12: Object { email: "12", account: "p" }
​​
13: Object { email: "13", account: "i" }
​​
14: Object { email: "14", account: "n" }
​​
15: Object { email: "15", account: "e" }
​​
16: Object { email: "16", account: "d" }
​​
17: Object { email: "17", account: "a" }
​​
18: Object { email: "18", account: "@" }
​​
19: Object { email: "19", account: "d" }
​​
20: Object { email: "20", account: "s" }
​​
21: Object { email: "21", account: "s" }
​​
22: Object { email: "22", account: "." }
​​
23: Object { email: "23", account: "a" }
​​
24: Object { email: "24", account: "s" }
​​
25: Object { email: "25", account: "i" }
​​
26: Object { email: "26", account: "a" }
Activity icon

Started a new Conversation Add Title On Json

I have a json result with

{"[email protected]":"tests", "[email protected]":"tests"}

how can i add label 'email' and 'account' for example "email":"[email protected]" and "account":"test"

Jul
20
6 months ago
Activity icon

Started a new Conversation Wordpress Custom Head Title

Hi, i am using twenty twenty theme, how can i create a custom head title ?, when i tried to use that tag it doesn't reflect on the title bar of the site.