gouseferoz

gouseferoz

Member Since 1 Year Ago

Experience Points
4,220
Total
Experience

780 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
14
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
4,220 XP
Jun
18
1 month ago
Activity icon

Replied to How To Connect Remote Database To The Laravel App

@michaloravec its working now in production. Thanks for the quick reply.

But there is one issue i am facing with accessing the db using heidisql.

I gave bind address as 0.0.0.0 in MySQLd cnf file, but it is not working.

But if i give the IP separately, i see it works, can you help me fix this issue too?

Activity icon

Started a new Conversation How To Connect Remote Database To The Laravel App

I want to maintain my database in a separate server and maintain the application server separately.

How can i connect the remote database to my laravel App.

I gave IP address of the remote DB in the Local Env file and it works fine. But when i tried the same with the production env file, it just don't connect.

Can anyone help me how to do this?

Regards, Feroz.

Jun
17
1 month ago
Activity icon

Replied to How To Disable The OnBeforeLoad While Submitting A Form

I added this to the jquery function which submits the form, and it is working.

window.onbeforeunload = null;

Is this what i should be doing or is there anything other than this?

Activity icon

Started a new Conversation How To Disable The OnBeforeLoad While Submitting A Form

Hi,

I wrote the onBeforeLoad function to show a popup to the user when he refreshes the page.

window.onbeforeunload = function() {
    return "Leaving this page will reset the wizard";
};

But due to this, when i am submitting any form, it is giving me the same popup which is preventing me to take to another page after form submitting. How can i disable that, can anyone help me here.

Thanks :)

Jun
09
2 months ago
Activity icon

Replied to Reduce Number Of Queries On Database For A MCQ Type Project

@tray2 what about not firing a query for the response of each question made by the user? Can we decrease the number of queries here as well?

Activity icon

Started a new Conversation Reduce Number Of Queries On Database For A MCQ Type Project

Hello Everyone,

I work on an MCQ test platform which can let users take MCQ type tests.

I loaded the whole MCQ questions in a single request and let the users traverse between questions. To save the MCQ responses on each question individually, I call a URL whenever the user checks an option that will save the record in the database. This is because if the user closes the sessions and wants to continue the test, this will help to load the responses of the previously marked questions.

The problem here is, if I have many users taking up the tests at a time, the DB server unable to handle the extra queries which are causing 502 errors to the user side.

Can anyone suggest how to overcome this problem?

Jun
02
2 months ago
Activity icon

Replied to Getting 500 Unable To Handle Requests

@bryank i havent wrote any event to trigger, the above link will just fetch few records from the database and show them on the UI

Activity icon

Replied to Getting 500 Unable To Handle Requests

@bryank yes, that is my cellular broadband provider.

so, what does this info mean?

Activity icon

Replied to Getting 500 Unable To Handle Requests

@tykus instacks.in is my domain

Activity icon

Replied to Getting 500 Unable To Handle Requests

@tykus no, i am not getting data from any external source

Activity icon

Replied to Getting 500 Unable To Handle Requests

Hey @tykus

2020/06/02 07:20:07 [error] 12432#12432: *199743 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Allowed memory size of 33554432 bytes exhausted (tried to allocate 20480 bytes) in /var/www/laravel/vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php on line 199
PHP message: PHP Fatal error:  Allowed memory size of 33554432 bytes exhausted (tried to allocate 1052672 bytes) in /var/www/laravel/vendor/guzzlehttp/psr7/src/Stream.php on line 225" while reading response header from upstream, client: 27.59.219.249, server: instacks.in, request: "GET /superadmin/dashboard HTTP/2.0", upstream: "fastcgi://unix:/run/php/php7.2-fpm.sock:", host: "instacks.in"

I see the following error in the Nginx logs.

May
31
2 months ago
Activity icon

Started a new Conversation Getting 500 Unable To Handle Requests

Hello Everyone,

Recently I am experiencing this 500 Unable to handle request error when i try to open a particular page. And when i refresh the same page couple of times, i do see the correct data being loaded.

Previously i got this error when there were too many queries associated to load the data from the database but i have reduced them to 8-10 queries.

Can anyone point me to solve this issue?

Regards, Feroz.

May
11
2 months ago
Activity icon

Started a new Conversation Deploying The Laravel Project Using Github

Hi,

I am in the process of deploying my project onto the Linux server.

I am using the github to do that. Right now, i have followed https://devmarketer.io/learn/deploy-laravel-5-app-lemp-stack-ubuntu-nginx/ guide to do the setup.

So basically I need three things here:

  1. Saving my changes into the github should automatically update the project inside the server.
  2. If i create branches in github and push the changes to branch, that code should be updated inside the staging folder of server.
  3. if i merge the branch to the master, the changes needs to be pushed to the production in the server.

Can anyone help me with this, it would be great help

Regards, Feroz.

Apr
26
3 months ago
Activity icon

Replied to Unable To Login In Laravel 7

@snapey yes, i have hashed the password

Activity icon

Replied to Unable To Login In Laravel 7

@jlrdw

i removed the guard and placed the code like this

if(Auth::attempt(['email' => $request->email, 'password' => $request->password], $request->remember))
      {
        return redirect()->intended(route('index'));
      }
        else {
          return "invalid credentials";
        }

But no luck.

Activity icon

Started a new Conversation Unable To Login In Laravel 7

Hi,

I am unable to login using a custom attempt method in the controller.

if(Auth::guard('web')->attempt(['email' => $request->email, 'password' => $request->password], $request->remember))
      {
        return redirect()->intended(route('index'));
      }
        else {
          return "invalid credentials";
        }

The above code always returns invalid credentials message.

can you please help me out here?

Regards, Feroz.

Apr
22
3 months ago
Activity icon

Replied to Creating A Blog With Images

Thanks @a4ashraf

Are there any free versions of editors available that has the image upload option?

Activity icon

Started a new Conversation Creating A Blog With Images

Hello Everyone,

I am working on a blog type page, which should have the ability to include the images in the blogpost.

I am using the TinyMce editor in my page to save the content with all the styling and formatting.

But if i paste the image into the editor, it is converting the image into data:image and this is not what i need as it consumes large part of my SQL database and if i have multiple images in my blog then it would be very difficulty to store that data.

I am looking for a more optimum solution, to save the images in storage while pasting them into the editor and use them in my blog and i don't know how to do that.

Can anyone help me to figure out the right solution that will help me in my project.

Thanks in advance, Feroz.