Application Developer at University Of Illinois

Member Since 2 Years Ago

Experience Points

4,680 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
Best Reply Awards
Best Reply
  • 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.


    Earned if you are a paying Laracasts subscriber.

  • lifer Created with Sketch.


    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 26
125,320 XP
1 day ago
Activity icon

Replied to Auth:sanctum Middleware Causing Memory Exhausting

@omar590 Doesn't look like the error is specifically with Sanctum. Try increasing the memory_limit in your php.ini file?

Note: This is a temporary fix.

Something is off here. You can also debug using xdebug or other tools to check if there is a memory leak.

Activity icon

Replied to Maximum Execution Time Of 300 Seconds Exceeded

@jewelhuq Can you try increasing your max_execution_time in your php.ini file?

Activity icon

Replied to How To Display Data From Multi Level Categories?

@nero If I understood correctly you have a Many-to-Many relationship and want to query products based on selected category. If yes you can just do:

$products = Category::find($categoryId)->products();

Again, I am not sure if this is what you want.

Activity icon

Replied to Avoid Duplication

@emfinanga Its not clear what some of the lines do in the code example

foreach ($no as $idnx) {
	$noo = (int) $idnx->bill_no;

$tambah = $noo + 1;

But you can make this code more readable and reduce LOC. You can replace this

if($request->filled('backdate')) {
                              $date = request('backdate');
                          } else {
                              $date = Carbon::now()->format('Y-m-d H:i:s');


$date = $request->filled('backdate') ? request('backdate') : Carbon::now()->format('Y-m-d H:i:s');

Instead of if statements here you can use switch statement:

 if ($tambah < 10) {
                    $bill_number = "E" . Carbon::now()->format('dmy') . "000" . $tambah;
                } else if ($tambah < 100) {
                    $bill_number = "E" . Carbon::now()->format('dmy') . "00" . $tambah;
                } else if ($tambah < 1000) {
                    $bill_number = "E" . Carbon::now()->format('dmy') . "0" . $tambah;
                } else if ($tambah < 10000) {
                    $bill_number = "E" . Carbon::now()->format('dmy') . $tambah;
Activity icon

Replied to Vue JS 2.0 "div" Single Root Element Remove

@app_dev Its not clear without the code. Can you please post the component code which is throwing this error?

Or Make sure that the component is wrapped in a single div. Example

	<!-- Wrapper div -->
		<!-- Your html goes here -->

1 week ago
Activity icon

Replied to Email Masking

@milankyada You mean you didn't even receive email on local email server? If that's the case I am assuming there should be an error which we might be missing.

If its on actual mail server then it might be because you are sending the email on the dummy email address which obviously would bounce all over and never deliver. Hence mask the email to user but send it on the actual email address.

Activity icon

Replied to Email Masking

@ironyh Great suggestions. Laravel Mailbox by Beyondco is really awesome. But for me MailHog worked the best. Simple, Easy to set up and works great.

Activity icon

Replied to Email Masking

@milankyada Ummmm i see. Can you be more specific what didn't work for you? Were you stuck somewhere?

Activity icon

Replied to Filter

Hey @nacha Got you. So looks like your link goes to products controller on the index method.

So now when you die and dump this dd(\request()->get('value')) on the index method what do you get?

Activity icon

Replied to Image Validation After Selecting From File Manager

Hey @rffred please provide full code from the form used to upload files and the backend code. What is the error you receive when you upload the file? If its 403 it might be due to csrf token.

Activity icon

Replied to BestšŸŖ”Way

Hey @konstruktionsplan ,

I think I am missing something here. You are joining the playgrounds table and the number table on playground.hash and earnings.hash. Shouldn't it be

Playground::join('number', 'playground.hash', '=', 'number.hash')->orderBy('', 'DESC')->get();

Also can you post the expected answer? That will help me and others to know what you want to achieve and we could help you better.


Activity icon

Replied to Filter

Hey @nacha it is not clear where are you getting $colors and $sizes from. Are these passed from the controller?

Secondly, if you are getting a 404 it means the route is not defined properly. Looks like you use the url() helper to add the links and the query params.

Can you please post your routes/web.php file code?

You can also try to write the url like this:

url('path') . '?' . http_build_query(['param1' => 'value', 'param2' => 'value']);
<li><a href="{{ url('products') . '?' . http_build_query([ 'value' => $size->value ]) }}">{{ $size->value }}</a></li>

Note: I haven't tried this myself but used in one of my projects a long time back.

Activity icon

Replied to Hosting Multiple Laravel Based Web Sites

Hey @p81cfm I work with this use case of hosting multiple applications on a server at my current job. The way we have set it up is that when a request comes in through a browser nginx re-routes it to the appropriate application which are located on subfolders.

Ex. serves application from /var/www/apps/app2 serves application from /var/www/apps/app2

Here is an article which explains this better.

Activity icon

Replied to Email Masking

I am not sure if this would be the best way to do this but you could have a pivot table email_user which stores a random generated unique dummy email address.

With this in place you could show users the dummy email address but then while sending email send it to the actual users email obtained from the relationship.

Hope that makes sense.

Best, Prasad Chinwal

1 week ago
Activity icon

Replied to Job Dependencies

@developer makes sense. Now even I am thinking if there is a better way to do this other than using batching. If you don't mind keep me posted if you find something. :)

Activity icon

Replied to Job Dependencies

Hi @developer, if I understood you correctly what you need is Job Chaining. This allows you to run the jobs in a sequence. Here is the link to documentation.

Activity icon

Replied to Use Laravel Excel Inside Laravel Package Development

Hey @anurat try running composer dump-autoload.

1 month ago
Activity icon

Replied to Shibboleth Authentication

Hey @diegones,

So we do have authentication set up for our Vue apps but it uses the OIDC approach. Here is the library we use oidc client.

I actually ended up building the frontend app using nuxt so to integrate it with vuex I used this library vuex oidc client.

You would not be able to authenticate your frontend using the uabookstores/laravel-shibboleth package as your vue app would only be making api calls to your lumen app. So to authenticate your frontend use the oidc client and to authenticate the backend api's use the token introspection method with this package on your lumen app laravel token introspection.