prasadchinwal5

prasadchinwal5

Application Developer at University Of Illinois

Member Since 1 Year Ago

Experience Points
120,640
Total
Experience

4,360 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
1125
Lessons
Completed
Best Reply Awards
8
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 25
120,640 XP
Jun
28
3 months ago
Activity icon

Started a new Conversation How Does Envoyer Work?

Hi 👋,

I wanted to understand and learn how envoyer works under the hood. The reason I am looking at this is because I want to build a tool which will run various tasks on server ex. Run a script on server, monitor jobs, run jobs on server etc.

Now from what I have seen many SaaS apps do is generate an SSH key to be put on server and then connect to it. From there on I have no idea how on click of button we can run a script on server and also monitor the status/output of the command/script running on server.

Any explanation/links to resources appreciated.

Thanks, Prasad Chinwal

Activity icon

Replied to Shibboleth Authentication

@konrms Yes, absolutely correct. All you have to do for production server is install the package and edit config/shibboleth.php file as per your need.

Example: You may want to map your server variables with your laravel application User model.

'user' => [
        // fillable user model attribute => server variable
        'name' => 'your_name_variable_from_server',
        'email' => 'your_email_variable_from_server',
        'first_name' => 'your_firstname_variable_from_server',
        'last_name' => 'your_lastname_variable_from_server',
        'custom_field' => 'custom variable',
    ],

These are the fields I have specified in my users migration. The existing users in your organization would be greeted with your shib login page and on successful login they should be redirected to the redirect route specified in your config/shibboleth.php file.

    'authenticated' => '/',
May
21
5 months ago
Activity icon

Replied to How To Get My Values From An Array

@icelander If the Topics variable is a collection, I believe you could do $topic->slide->slide.

Not tested.

May
18
5 months ago
Activity icon

Replied to I Am Trying To Send Mail Automatically From My Controller

@tomasosho Nope it wont execute. The SendMailable class needs only 1 argument in the constructor and you passed 2 when you called it.

Also, what do you mean by send email automatically. Emails are usually result after some action is taken and you need to inform user.

If you mean automate the process of sending emails then you can set up a Laravel Job

May
15
5 months ago
Activity icon

Replied to Generating JSON Responses From Collections Extremely Slow

@codewd I have had this issue in production before. My response was taking almost 8-9 sec. What I ended up doing was returning data using Laravel API Resources this helped me a lot.

To be frank I don't know how it improved performance but I think that is the whole point of Let the framework do the work for you. Although I would love to know how. LOL!

Also we ended up refactoring our code a lot to use collection methods. I think even that helped a lot.

Activity icon

Replied to Authentication Question

@artisticre You could achieve this using Policy in Laravel or also Gates.

Activity icon

Replied to Store Array

@fajar Glad i Could help.

Activity icon

Awarded Best Reply on Store Array

@fajar I think mysql 8.0 and up you can declare a JSON column and store the data as json.

Else you can try making the column text in migration instead of unsignedInteger and save data as json. Then on model explicitly cast the column as json.

May
14
5 months ago
Activity icon

Replied to How To Connect And Login As An Oracle User

@johnw65 I am assuming you are using Yajra OCI-8 driver Link

Why not try running these as raw queries.

DB::connection('oracle_connection_name')->raw('DBMS_Session.Set_Role('ALL')');

Not tried. But worth a shot.

Activity icon

Replied to Should I Docker-ize For Production?

@nunodonato Good question. I am running multiple apps ( > 10 ). Each app has its own container with apache and laravel app.

I have my mysql container on separate server just because I wanted to keep my database on separate server.

Always keep database related stuff on separate container. So that if you have to rebuild container for some reason you don't loose data. If you do want to keep it together you can look into docker volumes.

My personal experience is that my containers were getting heavier with mysql installed together with apache and other dependencies.

Digital Ocean has a nice article on setting this up. Article

Activity icon

Replied to Creating A Dropdown That Dynamically Creates Another Dropdown - Please Help....

@nurge So just to be clear you are sending the data to populate both dropdown from controller?

Or do you need to fetch data from database based on the selected value of 1st dropdown?

Activity icon

Replied to Connection Could Not Be Established With Host Smtp.gmail.com [Connection Refused #111]

I see. Did you configure your gmail account to allow for less secure apps ?

Activity icon

Replied to Store Array

@fajar I think mysql 8.0 and up you can declare a JSON column and store the data as json.

Else you can try making the column text in migration instead of unsignedInteger and save data as json. Then on model explicitly cast the column as json.

Activity icon

Replied to Connection Could Not Be Established With Host Smtp.gmail.com [Connection Refused #111]

@pandiyan Can you share your mail server config? Hiding sensitive information of course

Edit:

Should look something like this

MAIL_DRIVER=smtp
MAIL_HOST=smtp.googlemail.com
MAIL_PORT=465
MAIL_USERNAME=ENTER_YOUR_EMAIL_ADDRESS(GMAIL)
MAIL_PASSWORD=ENTER_YOUR_GMAIL_PASSWORD
MAIL_ENCRYPTION=ssl
Activity icon

Awarded Best Reply on Custom Form Validation

@billok-lab I think what you need is required_if condition in your FormRequest

Ex.

'dropdown' => 'required',
'hidden_field' => 'required_if:dropdown,==,some value',

Docs

Activity icon

Replied to Custom Form Validation

@billok-lab I think what you need is required_if condition in your FormRequest

Ex.

'dropdown' => 'required',
'hidden_field' => 'required_if:dropdown,==,some value',

Docs

Activity icon

Replied to How To Set A Session Variable In Laravel Login Time And How To Get That Session Variable In Laravel Api

You can store the data in session by $request->session()->put('key', 'value'); or by using global helper $request->session()->put('key', 'value');

You can retrieve session values by $value = $request->session()->get('key'); or by using global helper $value = session('key', 'default');

More on sessions in Laravel Docs

May
12
5 months ago
Activity icon

Replied to How To Set A Session Variable In Laravel Login Time And How To Get That Session Variable In Laravel Api

@jinsonjose I assume you could put the session variable in AppServiceProvider?

Activity icon

Replied to Unknown Error When Logging Out

@jesse_orange_newable Could you possibly replace these lines

$request->session()->invalidate();

$request->session()->regenerateToken();

with

Session::flush();

Not sure if this would help. But worth a shot.

Activity icon

Replied to Laravel Fully Dynamic Catalog Filter

@sokol you might want to try this package by Spatie called Laravel Query Builder.

Activity icon

Replied to Avoid Page Refresh In Vuejs Navigation

@monstajamss I believe if you separate your image from the router-view you should achieve what you are looking for?

Before that, is your image replicated in these 2 components?