Kishore032

Kishore032

Member Since 1 Year Ago

Experience Points 3,200
Experience Level 1

1,800 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 30
Lessons
Completed
Best Reply Awards 0
Best Reply
Awards
  • start-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-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-token Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer-token Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • lara-evanghelist 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.

05 Sep
2 weeks ago

Kishore032 left a reply on Only Part Of Html Email Is Rendered By Blade

It is sent as the body of an email in a mailable, like this:

public function build() { 
    return $this -> view('email.body_html');
}

The view has the code above: a dump that dumps what is being sent just before it is sent. The dump shows the correct contents of the message that's slated to be sent as html. However, the email that is sent receives something different (see my description in my original question).

As far as I have been able to ascertain, this is not a mail/html formatting issue. So even if I do:

< ? php dump($email -> body_html) ?>

{{ $email -> body_html }}

what is dumped is different from what is being sent.

The only patttern I was able to discern is that if the mail is a reply that has the original html embedded, the reply goes through correctly, but not the original html.

Kishore032 left a reply on Api Over Virtual Host And Port?

If you are using valet, then 'valet share' will open an ngrok tunnel to your server (basically giving you a publicly addressible URL).

Now the API should work over the new ngrok url the same way as accessing it over 127.0.0.1.

If you are not using valet, you can still go to https://ngrok.com, create an account and follow instructions on how to create an ngrok tunnel to your local server.

First test with http.

To use https, you have to use 'valet secure' to create an encrypted connection. If not using valet, there are ways of creating a secure channel with MAMP & WAMP as well.

There are a couple of issues that took me a while to resolve which had to do with reinitializing the server and clearing the DNS cache. To avoid these, do the following:

  1. After you create a secure channel, restart your server. (restart valet or MAMP or better still, reboot your computer).

  2. Clear your DNS cache. On a mac, dscacheutil -flushcache && sudo killall -HUP mDNSResponder will do it.

Now your API should work over a secure virtual server.

Kishore032 left a reply on Only Part Of Html Email Is Rendered By Blade

Thanks for your suggestion, I've tried everything and did not fix the problem.

Although I have found a different way to implement this, I am still puzzled as to why the two statements below (from the same blade template)

< ? php dump($email -> body_html) ?>

{!! $email -> body_html !!}

would output something quite different.

06 Aug
1 month ago

Kishore032 left a reply on Only Part Of Html Email Is Rendered By Blade

That's simply a typing error in the question. That's not the problem.

05 Aug
1 month ago

Kishore032 started a new conversation Only Part Of Html Email Is Rendered By Blade

I am having a strange problem and would be grateful if someone can help figure out what's going on

My application is an email forwarding system. Incoming email is delivered through maligun (via a webhook) and stored in a database as body_plain and body_html. And this part works correctly.

In forwarding the email, I use the standard Laravel mailable to add from/to etc and use the build function to attach the html and plain text as follows:

public function build() { return $this -> view('email.body_html') -> text('email.body_plain'); }

The views are:

email/body_html : {!! $email -> body_html !!}} and email/body_plain: {{ $email -> body_plain }}

The emails are sent properly, but only part of the body_html gets sent.

I've tested the view "email/body_html" with:

< ? php dump($email -> body_html) ?>

{!! $email -> body_html !!}

The first statement dumps the whole html correctly, but the second statement renders only a part of the html. The only pattern I have seen is this: If body_html is just an html email body, there is no pattern in what is rendered. But if it is a reply to an html email, then the reply gets rendered correctly, but the original html body does not get rendered at all.

Any idea what I might be doing wrong?

Thanks

19 Mar
6 months ago

Kishore032 started a new conversation Using Nova As Customer Facing UI (not Just Admin)

All -

This is both to share my experience with Laravel Nova and to ask for help with a couple of issues.

First, the story: I am relatively new to Laravel and I heard of Nova as a framework for "admin dashboards." I played with it for a couple of days and quickly realized that it can in fact be a pretty powerful UI framework. And Nova came through for me. For someone who was new to Laravel, not to mention Nova, it took me about 3 weeks to build a UI for a relatively sophisticated AI-based email app and advance the launch date for my app to April from June. The point of the story is that Nova - at least in my naive opinion - is a lot more than an admin dashboard.

Second, my questions:

(a) I use the standard Laravel "{!! !!}" to render html email, some of which include their own CSS & scripts (as I said, it's an email application). Is there a way I can confine the scope to these CSS and scripts to what's inside {!! !!}}? The scripts seem less of a problem, but I am having a hell of a time with CSS, particularly if the email is coming from an MS Outlook server.

(b) Nova seems to respect Laravel "Policy" well, except when it comes to "Actions". Within Actions, Nova seems to not allow things that are allowed in the Policies; and at the other extreme, a "can run" seems to be able to override Laravel Policies. My question is: where should I be specifying the policies - as part of the resource in Laravel or at the UI level within Nova?

For context: the site is elfpoint.com and I have set up a demo account (u: demoelf, p: demoelf) that you can log into directly.

Thank you and I appreciate any help.

Kishore

06 Jul
1 year ago

Kishore032 left a reply on Mix Stops Npm Install

Thank you. The problem was indeed with the number of processes. So, I have taken the approach of compiling locally and uploading the CSS and js which seems to work. Thanks again!

30 Jun
1 year ago

Kishore032 started a new conversation Mix Stops Npm Install

Please help!!

Mix installs fine on my home computer. When I try to install on my server, I keep getting the same error again and again - on two different (shared) hosts hostgator & bluehost.

nvm and node seem to install fine. npm -v 6.1.0 node -v v10.5.0 php artisan -V Laravel Framework 5.6.26

When I do an 'npm run dev', I get an error that seems to be thrown by Mix.

cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js

node[2822]: pthread_create: Resource temporarily unavailable events.js:167 throw er; // Unhandled 'error' event ^

Error: spawn node_modules/webpack/bin/webpack.js EAGAIN at Process.ChildProcess._handle.onexit (internal/child_process.js:229:19) at onErrorNT (internal/child_process.js:406:16) at process._tickCallback (internal/process/next_tick.js:63:19) at Function.Module.runMain (internal/modules/cjs/loader.js:746:11) at startup (internal/bootstrap/node.js:240:19) at bootstrapNodeJSCore (internal/bootstrap/node.js:564:3) Emitted 'error' event at: at Process.ChildProcess._handle.onexit (internal/child_process.js:235:12) at onErrorNT (internal/child_process.js:406:16) [... lines matching original stack trace ...] at bootstrapNodeJSCore (internal/bootstrap/node.js:564:3) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! @ development: cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the @ development script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:

[Indeed I've cleared npm caches and tried multiple fresh installs. This is from a complete fresh install of laravel and node].

From what I have researched so far (which may or may not be relevant):

-- [email protected]-- [email protected] -- [email protected]-- [email protected] -- [email protected]-- [email protected] -- [email protected]-- [email protected]

I'll appreciate any and all help.

Thanks