rezuankassim

rezuankassim

Member Since 8 Months Ago

Experience Points
15,140
Total
Experience

4,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
134
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 4
15,140 XP
Aug
07
2 days ago
Activity icon

Replied to From Blade To Vue

you can pass the question from blade to vue by passing props from blade to vue.

index.blade.php
...
<question-list :questions="{{ $questions }}"/>

or just use Ajax to call it, make sure you call the correct routes.

Aug
06
3 days ago
Activity icon

Replied to Regex

Sorry I think I messed up the requirements. I wanted to get the words that is only made of the character I have given in the input.

How can I get the results below?

input:

boy

results:

 boy, oy
Activity icon

Started a new Conversation Regex

Hi,

Does anyone know how to find a word that contains given characters?

Input:

abc

Output:

back, batch, ...

Thanks in advance! 😋

Jul
09
1 month ago
Activity icon

Started a new Conversation Laravel Http Client CURL 61 Unrecognised Encoding

Hi guys,

Im calling an api from AppStoreConnect from Apple which is https://api.appstoreconnect.apple.com/v1/salesReports and in their documentation it is stated that the 200 response will return Content-Type: gzip

When I call the API using Laravel Http Client with headers

[
  'Accept' => 'application/a-gzip',
  'Accept-Encoding' => 'gzip, deflate, br'
]

I am getting cURL 61: unrecognised content encoding type.

The solution I am using is to put options 'decode_content' => false using withOptions and then gzdecode the response.

Is there anyway to let the Laravel Http Client to decode the response automatically without gzdecode it using PHP?

Jul
01
1 month ago
Activity icon

Started a new Conversation Laravel Query Builder

Hi, currently I have a query that queried out the results of top 10 screen visited, and the results is such as below

screens        | visits
Home           | 100
Dashboard      | 25
Products       | 30
...

Is there any way that I can get a new row that is for Others which is the count of all visits for the page that is not in the top 10?

screens        | visits
Home           | 100
Dashboard      | 25
Products       | 30
...
Others         | 400

Thank you in advance! 👊🏻

Jun
14
1 month ago
Activity icon

Started a new Conversation Livewire Javascripts

Hi, I currently have a Livewire component which I will render it only if the condition is true, such as

@if (some_condition)
	@livewire('testing_component')
@endif

The Livewire component testing_component shows up, but the Javascript in the testing_component does not push to the Javascript stacks

How do I made it that the Javascript will be push into the stacks?

Jun
09
2 months ago
Activity icon

Replied to Trying To Get Value From 'hasone' Relationship

 $accounts = $user->accounts()->get();
    foreach ($accounts as $account){
        echo($account->type->account_type_code);
    }

when you echo $account->type what do you get?

Activity icon

Started a new Conversation Where Do You Guys Store Your Projects?

Hi guys,

I am just curious where do you guys store your Laravel projects or any other projects in your machine? I am a Mac user so I put my projects in a directory called 'Sites' in root directory, but I saw in stackoverflow there is people who put in 'Developers' directory.

I know it does not matter where you store your project

Jun
04
2 months ago
Activity icon

Replied to The Update Function Is Not Working

In form actions attribute enter route('machines.update', $machines->id) and make sure that the request goes in your MachinesController update() method

Activity icon

Started a new Conversation Laravel Passport

Hi guys,

Is it possible for me to authenticate user using Laravel Passport by passing tokens in the route such as

http://example.test/user?token=<bearer token>
Jun
03
2 months ago
Activity icon

Started a new Conversation Livewire EmitSelf Events

How can I emitSelf events in a Livewire components and listen to the event using javascript in the components?

May
29
2 months ago
Activity icon

Started a new Conversation Displaying Graphs In Different Projects

Hi guys, I currently have a project which is used to display analytic graphs from big query. I used big query to queried out the data and plotted the results in my graphs.

Now I wanted to show this graphs in another Laravel projects like how YouTube embedded videos works, is it possible? If it is possible how should it be done?

Or is there any way to show the graphs in another projects?

The only other way I could think of as it now is to let the other projects to call an API from my main projects and returning the results in json and plot the results into graphs in another projects.

Sorry if my English is hard to understand.

May
21
2 months ago
Activity icon

Started a new Conversation Separate One Table Into Multiples Small Table?

Hello guys, I currently have a table orders which have hundred thousand of rows, and having the size of almost 4 gb. Is it good to separate the orders table into separate tables such as orders_20200401, orders_20200402? If I separate into multiple small table? how can I retrieve the data from this two small tables?

May
13
2 months ago
Activity icon

Replied to Laravel Querying Array Of Json

is there any way I can select the value.string_value for the key: "abc"?

Activity icon

Replied to Laravel Querying Array Of Json

@michaloravec unfortunately the solution did not work but

Model::whereJsonContains('event_params', ['key' => 'abc'])->get();

does work! 🎉

Activity icon

Replied to Laravel Querying Array Of Json

@bobbybouwmann I was able to query out the results using

Model::->whereRaw('JSON_CONTAINS(event_params->"$[*].key", "\"abc\"")')

is there any way I can get the value.string_value of the event_params which have the key "abc"?

Activity icon

Replied to Laravel Querying Array Of Json

@bobbybouwmann I got empty results when I tried to use the query

Model::whereRaw('event_params->"$[key]" = ?', 'abc')->get();
Activity icon

Started a new Conversation Laravel Querying Array Of Json

hi guys, I have a 'event_params' column in a table like such

event_params: [{
 "key": "abc",
 "value": {
  "string_value": "testing"
 }
}, {
 "key": "def",
 "value": {
  "string_value": "testing1"
 }
}]

how could I query this table so that I can get the row where event_params->key = "abc"?

May
06
3 months ago
Activity icon

Awarded Best Reply on JSON File Become Text/plain In Server

@michaloravec i fixed the issue by just updating my php version from 7.2 to 7.4

Activity icon

Replied to JSON File Become Text/plain In Server

@michaloravec i fixed the issue by just updating my php version from 7.2 to 7.4

Activity icon

Replied to JSON File Become Text/plain In Server

@michaloravec it does save the file into .json, why does the file extension become text/plain in the server? while in my local the file extension is still application/json?

Activity icon

Replied to JSON File Become Text/plain In Server

	Project::create([
		'file' =>  $request->file('file')->store('uploads'),
	])

This is the code where I store the file

Activity icon

Replied to JSON File Become Text/plain In Server

I am able to get the output application/json but why when I save it to the storage in the server, the json file will become .txt file? is there anything in the apache2 configuration that I missed out? or this is a Laravel issue?

Activity icon

Started a new Conversation JSON File Become Text/plain In Server

Hi guys, I have Laravel project in a server running apache2 and when I upload json file and in controller I ran

$request->file('file')->getMimeTypes()

and I got this output

text/plain

but when I try in local, I got

application/json

What should I do to retain the file type for application/json ?

May
05
3 months ago
Activity icon

Started a new Conversation Observer Or Event Listener

Hi just a quick question, would you use observer or event listener to send user an email with their randomly generated password when user is created? I know these two are doing the same thing, just wondering which one would you use?

Apr
28
3 months ago
Activity icon

Replied to When You Create An Image For A Product Which Goes First? :-)

$product->createImage('image.png')
// or
$product->image()->create($image) 

seems good to me

Activity icon

Replied to How Is Laravel Forge Charge?

so does that mean the $5/month droplet will be charge to my digitalocean account? while laravel forge only charge for the laravel forge plan fee?

Activity icon

Started a new Conversation How Is Laravel Forge Charge?

Hi guys, I am wondering how is laravel forge charges for the services? If i created a $5/month droplet from digitalocean, does the $5/month charges go to my digitalocean account or my laravel forge account would take the charges?