rameezisrar

rameezisrar

Member Since 2 Years Ago

Experience Points
74,260
Total
Experience

740 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
607
Lessons
Completed
Best Reply Awards
10
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 15
74,260 XP
May
05
3 weeks ago
Activity icon

Replied to Best Wysiwyg Editor To Allow Multiple Images To Upload

@michaloravec thank you for the response.

The following editor fixed my issue. That is exactly what I was looking for. Give it a try too https://github.com/davidroyer/vue2-editor

Activity icon

Started a new Conversation Best Wysiwyg Editor To Allow Multiple Images To Upload

I am building a Blog based on laravel. I am looking for an open-source WYSIWYG editor that can allow multiple images upload with less pain to handle. Either store the image in base64 format or with S3.

CKEditor requires a subscription in order to handle the image.

Any suggestions will be appreciated.

Apr
29
1 month ago
Activity icon

Replied to Loading In Multiple Mixins

There must be a conflict between methods with the same name

Mar
16
2 months ago
Activity icon

Replied to How To Get Current Page Title In Laravel?

@sumitgroup

You can set the dynamic title of the page

@extends('layouts.app')
@section('title', $prtype->title
Mar
04
2 months ago
Activity icon

Replied to Unable To Get A Response From An API

@bobbybouwmann

Which means in order to get the response either I remove the job from being queued or run the action inside the controller?

Activity icon

Replied to How Can I Tell The Job To Retry Inside Job's Handle Function?

@amaury

Thanks for the response.

I tried this and it worked

 dispatch($this);

Activity icon

Replied to Unable To Get A Response From An API

@bobbybouwmann

Thank you for the response mate.

Yes, that'ss the queued job.

But returning a response from the controller(success response) will not guarantee that the Job happened to execute successfully :)

Do you have any other idea ?

Mar
01
3 months ago
Activity icon

Started a new Conversation How Can I Tell The Job To Retry Inside Job's Handle Function?

Okay, so the queue job has failed now. Now I need to somehow re try the current failed job with another service. How can I do that?

For example:

I am sending an email with a service1, for some reason the job failed to execute with the service1, now I have a fallback service2 to send an email with, so I need to execute the failed job with now service 2.

under the failed method of the job.

How can I achieve that?

  public function failed(Exception $exception)
    {
        /*
         * the default email service
         * not able to send an email
         * switch to fallback email service
         * and try then
         */
        config(['mail.service' => env('FALLBACK_EMAIL_SERVICE')]);
    }
Activity icon

Replied to Unable To Get A Response From An API

@jlrdw That didn't work either

Activity icon

Replied to Unable To Get A Response From An API

@bobbybouwmann thank you for the response.

I have tried that on the SendGrid class

...
try {
            $response = $sendgrid->send($email);
            \Log::info('Email successfully sent);
 return \Illuminate\Support\Facades\Response::json([
                'data' => 'Success',
            ], 200);
        } catch (Exception $e) {
           
        }

The controller should return the result whatever has been send from the Mailer class but I am not getting any output only if I explicitly return under the controller like this

public function store(Request $request)
    {
        $validatedData = $this->validateData($request);

        SendEmail::dispatch($validatedData)
            ->onQueue('email');

return \Illuminate\Support\Facades\Response::json([
            'message' => 'Success',
        ], 200);
    }

But I don't want that because this will be static.

Activity icon

Started a new Conversation Unable To Get A Response From An API

Here is my controller

public function store(Request $request)
    {
        $validatedData = $this->validateData($request);

        SendEmail::dispatch($validatedData)
            ->onQueue('email');
    }

the queue class

 public function handle()
    {
        $this->emailService->send($this->data);
    }

and then it calls the SendGrid class


    public function send($data)
    {
      ....
        try {
            $response = $sendgrid->send($email);
            \Log::info('Email successfully sent);
 return \Illuminate\Support\Facades\Response::json([
                'data' => 'Success',
            ], 200);
        } catch (Exception $e) {
           
        }
    }

I am getting the correct success logs and the email is sent too but I don't get any output when I call this from postman even though I am getting the logs data with the success message.

Feb
29
3 months ago
Activity icon

Replied to Create A New Instance Of A Class Based On .env Value

@sinnbeck When I try to use SendGrid

The same way,

I am getting this error

Unresolvable dependency resolving [Parameter #0 [ <required> $apiKey ]] in class SendGrid

If I call this service directly, it works fine.

Activity icon

Replied to Create A New Instance Of A Class Based On .env Value

@sinnbeck

I haven't.

When I add the alias, the error disappeared.

Thanks a lot :)

Activity icon

Replied to Create A New Instance Of A Class Based On .env Value

@sinnbeck

After doing that, I am getting this

Illuminate\Contracts\Container\BindingResolutionException
Target class [MailJet] does not exist.
Activity icon

Started a new Conversation Create A New Instance Of A Class Based On .env Value

How can you create a new instance of a class based on .env value?

.env file

DEFAULT_EMAIL_SERVICE=SendGrid

instead of using this on my controller

function send(){

 $defaultService = new MailJet();
$defaultService->send();

}

I would like to use something like this

$defaultService = new env('DEFAULT_EMAIL_SERVICE');
$defaultService->send();
Activity icon

Replied to Accessing Custom Environment Variable

How can you create a new instance of a class based on .env value?

DEFAULT_EMAIL_SERVICE=SendGrid

Now I would like to create an instance of whatever class marked as default.

Feb
12
3 months ago
Activity icon

Commented on Beginning Unit Testing

Amazing

Feb
03
3 months ago
Activity icon

Replied to Graph Or Chart

You should check out this: https://www.fusioncharts.com/

Activity icon

Commented on Introducing Lumen

There is nothing new that you can't do with Laravel. I believe you need to make a whole series on Lumen in order for us to understand the real difference.

Feb
01
4 months ago
Activity icon

Commented on API Pagination

Agreed, feelings are mutual.

Jan
27
4 months ago
Activity icon

Replied to Npm Not Render App.js

How are you registering the Vue in App.js and your vue component? Share your app.js code and the blade.php where you are trying to render component

Jan
23
4 months ago
Activity icon

Replied to Trigger A Function When A Button Is Clicked.

@ap3twe try this

<a href="<?php echo $_SESSION['applicationlink']?>">Click me </a>

Let me know what you get in the href and what happened when you click this link?

Jan
22
4 months ago
Activity icon

Replied to Vuetify Datatable Filtered Items.

@prasadchinwal5 the [email protected] have default filters which work out of the box :)

Activity icon

Replied to Trigger A Function When A Button Is Clicked.

@ap3twe why are you storing the session value in the href? Once the page is load, you can store the 'external page link' in the session.

If you use Vue, this whole process will be a breeze.

Jan
19
4 months ago
Activity icon

Replied to Vue Typescript Cannot Bind Model To Input

@simonw I think you missing the root element

<div id="app">
    <input v-model="form.firstname">
</div>
Activity icon

Replied to Laravel 5.2 & Vue2 - How To Change Vue Publicpath For Production?

@uwmwebmob have you tried something like:

if (process.env.NODE_ENV === 'production') {

  module.exports.output.publicPath = '/<REPO_NAME>/dist/';

  module.exports.devtool = '#source-map';
  // http://vue-loader.vuejs.org/en/workflow/production.html
  module.exports.plugins = (module.exports.plugins || []).concat([
    new webpack.DefinePlugin({
      'process.env': {
        NODE_ENV: '"production"'
      }
    }),
    /*new webpack.optimize.UglifyJsPlugin({
      sourceMap: true,
      compress: {
        warnings: false
      }
    }),*/
    new webpack.LoaderOptionsPlugin({
      minimize: true
    })
  ])
}

Mind the <REPO_NAME> publicPath entry in the production part.

Activity icon

Replied to XML Response

@mustafaabdujalil try this pattern

curl -X POST --header "Content-Type:text/xml;charset=UTF-8" --data @soap_get.xml your_url
Jan
12
4 months ago
Activity icon

Commented on Building Data-Tables With Livewire

This was really cool. thanks @calebporzio