Giter VIP home page Giter VIP logo

Comments (10)

TerrePorter avatar TerrePorter commented on July 19, 2024

Hi, sorry just noticed the mail. Family medical emergency this week has the schedule all messed up.

I'm not sure it $result should be the generated template. I'm assuming that you have confirmed the template contents is valid. Did you dd the $result and see what it creates?

from stringbladecompiler.

ibrentlam avatar ibrentlam commented on July 19, 2024

Yes, I tried the exact line of code in a regular controller and it worked
fine.
The result had the template, but with the {{ $unsubscribe }} wasn't
interpolated.

It's nothing time-critical, take the time you need for the family
emergency. Family comes first. Thanks,
Brent

On Thu, Nov 10, 2016 at 6:57 PM, Terre Porter [email protected]
wrote:

Hi, sorry just noticed the mail. Family medical emergency this week has
the schedule all messed up.

I'm not sure it $result should be the generated template. I'm assuming
that you have confirmed the template contents is valid. Did you dd the
$result and see what it creates?


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#21 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADpAr4yysIpEXeeosNo3X30k_MtdZ13Sks5q869sgaJpZM4KuxVT
.

from stringbladecompiler.

TerrePorter avatar TerrePorter commented on July 19, 2024

@ibrentlam Sorry it has taken me so long to get a chance to back to this. Did you get it figured out ?

from stringbladecompiler.

ibrentlam avatar ibrentlam commented on July 19, 2024

from stringbladecompiler.

TerrePorter avatar TerrePorter commented on July 19, 2024

@ibrentlam The way they have the mailer set it checks for a string name of a view so it fails when trying to send a full stringview object or even an array.

However, I was able to get this to work.

/**
     * Build the message.
     *
     * @return $this
     */
    public function build()
    {
        return $this->view(
            [
                'html' => ['template' => ' {{ $token }} html version'],
                'text' => ['template' => ' {{ $token }} plain version']
            ],
            [
               'token' => 'test 1 : '. time()
            ]
        );
    }

It should also work even if your not passing the template data as part of the view statement.

Give it a shot and let me know how it goes.

from stringbladecompiler.

TerrePorter avatar TerrePorter commented on July 19, 2024

@ibrentlam just checking to see if that worked for you ?

from stringbladecompiler.

ibrentlam avatar ibrentlam commented on July 19, 2024

from stringbladecompiler.

dimsanchuk avatar dimsanchuk commented on July 19, 2024

@TerrePorter I tried this and it works.

Offtop: Why are there still not released version 3.4?

from stringbladecompiler.

TerrePorter avatar TerrePorter commented on July 19, 2024

@dimsanchuk Glad it worked. I've released a version for 3.4. I was just behind in everything.

from stringbladecompiler.

dimsanchuk avatar dimsanchuk commented on July 19, 2024

Thanks.

from stringbladecompiler.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.