theUnforgiven

Experience

254,580

44 Best Reply Awards

  • Member Since 4 Years Ago
  • 1369 Lessons Completed
  • 39 Favorites

18th October, 2018

theUnforgiven left a reply on Add Variables To PDF • 13 hours ago

Anyone else have any ideas/suggestions?

17th October, 2018

theUnforgiven left a reply on Add Variables To PDF • 23 hours ago

Anyone else have any ideas?

theUnforgiven left a reply on Add Variables To PDF • 1 day ago

It starts off as

<p class="ft01" style="margin: 0; padding: 0; font-size: 13px; font-family: Times; color: #000000; position: absolute; top: 236px; left: 85px; white-space: nowrap;">Date: <?php echo date('d-m-Y'); ?></p>
<p class="ft01" style="margin: 0; padding: 0; font-size: 13px; font-family: Times; color: #000000; position: absolute; top: 288px; left: 85px; white-space: nowrap;">This agreement is between us:  {{ $omeVar }}</p>

Then does the above to get rendered.

theUnforgiven left a reply on Add Variables To PDF • 1 day ago

I have shown this above, where I added the date is how it's parsed, on which I save this to the db, then second code is what is used to render this.

theUnforgiven started a new conversation Add Variables To PDF • 1 day ago

Hi everyone,

I currently have a PDF to HTML package installed which works great, but I now need to manually add some variables to this html. Any ideas how?

I've currently added in date like so:

&quot;&gt;Date:&nbsp; <?php date('d-m-Y'); ?>&lt;/p&gt;

Then within my blade file I have:

html_entity_decode($page->parsed)

Which does render the PDF in html format correctly and looks great, just need to get these variables in now.

theUnforgiven started a new conversation Adding Buttons And Drag/drop Them Into Elements • 1 day ago

Is there a way to add buttons to an html document, that may well have 5+ pages on scroll to have the buttons stay in place. Kinda like this:

!()[https://i.imgur.com/KB20e4V.png]

But upon scrolling the buttons then stay in the correct x/y coordinates, but are not in the correct place on the document if that makes sense.

I'm using this package https://github.com/IsraelZablianov/draggable-vue-directive which is ideal but I now need to be able to put the button/element where it needs to go then drop in the data from the database into the html so the user can see this.

Can anyone give me any suggestions/help please?

16th October, 2018

theUnforgiven left a reply on Grouping By 'date' Field • 2 days ago

I'm still no further forward with this and really looking for some help for you wonderful people.

14th October, 2018

theUnforgiven left a reply on Grouping By 'date' Field • 4 days ago

Only shows one result per month yes, whereas like I said October only has 3, then November should show as 4 and so on

theUnforgiven left a reply on Grouping By 'date' Field • 4 days ago

Can anyone suggest any thing here, really stuck with this.

12th October, 2018

theUnforgiven left a reply on Grouping By 'date' Field • 6 days ago

anyone?

theUnforgiven left a reply on Grouping By 'date' Field • 6 days ago

Anyone else have any suggestions please?

11th October, 2018

theUnforgiven left a reply on Grouping By 'date' Field • 1 week ago

Trying to get property of non-object is what I get and after changing from ->name to ['name'] that also returns an error.

theUnforgiven left a reply on Grouping By 'date' Field • 1 week ago

@unlikenesses Yeah that kinda rings bells with my stupid brain lol, I'll give it a whirl!

theUnforgiven left a reply on Grouping By 'date' Field • 1 week ago

So I changed the method within the controller to:

public function tour()
    {
        $dates = TourDates::where('date', '>=', Carbon::yesterday())
                        ->orderBy('date', 'asc')
                        ->groupBy(DB::raw('MONTH(date)'))
                        ->get();

        return view('tour', compact('dates'));
    }

and from the view to:

@foreach ($dates as $gig)
   <div class="row">
       <div class="col">
           <h4 class="text-center">{{ $gig->date->format('F') }} {{ $gig->date->format('Y') }}</h4>
           <div class="table-responsive">
               <table class="table">
                   <thead class="thead-light">
                   <tr>
                       <th>Date</th>
                       <th>Venue</th>
                       <th>Location</th>
                       <th>Box Office</th>
                       <th>Tickets</th>
                   </tr>
                   </thead>
                   <tbody>
                       <tr>
                           <td>{{ $gig->date->format('D') }} {{ $gig->date->format('jS') }} {{ $gig->date->format('M') }}</td>
                           <td>{{ $gig->name }}</td>
                           <td>{{ $gig->venue }}</td>
                           <td>@if($gig->box_office) {{ $gig->box_office }} @else n/a @endif</td>
                           <td><a href="{!! $gig->ticket_url !!}" target="_blank">Book Now</a></td>
                       </tr>
                   </tbody>
               </table>
           </div>
       </div>
   </div>
@endforeach 

Although in the correct order and such now, only shows one record.

theUnforgiven left a reply on Grouping By 'date' Field • 1 week ago

Yes I removed DESC but still the same.

dd looks like:

 0 => TourDates {#249 ▼
      #fillable: array:4 [▶]
      #table: "tour_dates"
      #dates: array:1 [▶]
      #connection: "mysql"
      #primaryKey: "id"
      #keyType: "int"
      +incrementing: true
      #with: []
      #withCount: []
      #perPage: 15
      +exists: true
      +wasRecentlyCreated: false
      #attributes: array:8 [▼
        "id" => 71
        "date" => "2018-10-13"
        "name" => "The Musician"
        "venue" => "LEICESTER"
        "ticket_url" => "http://www.themusicianpub.co.uk/"
        "box_office" => null
        "created_at" => "2017-09-20 15:57:16"
        "updated_at" => "2018-01-23 16:39:48"
      ]
      #original: array:8 [▶]
      #changes: []
      #casts: []
      #dateFormat: null
      #appends: []
      #dispatchesEvents: []
      #observables: []
      #relations: []
      #touches: []
      +timestamps: true
      #hidden: []
      #visible: []
      #guarded: array:1 [▶]
    }
    1 => TourDates {#250 ▼
      #fillable: array:4 [▶]
      #table: "tour_dates"
      #dates: array:1 [▶]
      #connection: "mysql"
      #primaryKey: "id"
      #keyType: "int"
      +incrementing: true
      #with: []
      #withCount: []
      #perPage: 15
      +exists: true
      +wasRecentlyCreated: false
      #attributes: array:8 [▼
        "id" => 33
        "date" => "2018-11-03"
        "name" => "THE FLOWERPOT"
        "venue" => "DERBY"
        "ticket_url" => "http://www.rawpromo.co.uk/"
        "box_office" => null
        "created_at" => "2017-01-25 18:15:42"
        "updated_at" => "2017-12-04 13:23:23"

theUnforgiven left a reply on Grouping By 'date' Field • 1 week ago

View is as follows, which outputs the above screen shot:

@foreach ($dates as $gig)
   <div class="row">
       <div class="col">
           <h4 class="text-center">{{ $gig->date->format('F') }} {{ $gig->date->format('Y') }}</h4>
           <div class="table-responsive">
               <table class="table">
                   <thead class="thead-light">
                   <tr>
                       <th>Date</th>
                       <th>Venue</th>
                       <th>Location</th>
                       <th>Box Office</th>
                       <th>Tickets</th>
                   </tr>
                   </thead>
                   <tbody>
                   @foreach($dates as $index => $tour)
                       <tr>
                           <td>{{ $tour->date->format('D') }} {{ $tour->date->format('jS') }} {{ $tour->date->format('M') }}</td>
                           <td>{{ $tour->name }}</td>
                           <td>{{ $tour->venue }}</td>
                           <td>@if($tour->box_office) {{ $tour->box_office }} @else n/a @endif</td>
                           <td><a href="{!! $tour->ticket_url !!}" target="_blank">Book Now</a></td>
                       </tr>
                   @endforeach
                   </tbody>
               </table>
           </div>
       </div>
   </div>
@endforeach 

theUnforgiven left a reply on Grouping By 'date' Field • 1 week ago

Anyone please willing to shed some light on this.

theUnforgiven started a new conversation Grouping By 'date' Field • 1 week ago

Hi all,

I'm having a brain freeze and can't figure out how to loop through a bunch of records and then show the month and year as one table with the records for that month in there, and then likewise for the next month and so on.

Kinda like this, but as you can see it's wrong, as October only has 3, then November should show as 4 and so on.

Current code I have is:

public function tour()
    {
        $dates = TourDates::where('date', '>=', Carbon::yesterday())
                        ->orderBy('date', 'asc')
                        ->groupBy(DB::raw('MONTH(date) DESC'))
                        ->get();

        $tours = TourDates::where('date', '>=', Carbon::yesterday())
            ->orderBy('date', 'asc')
            ->get();

        return view('tour', compact('dates', 'tours'));
    }

9th October, 2018

theUnforgiven left a reply on Assign Variables And Signature To PDF (embed) • 1 week ago

Anyone willing to help out on such task.

theUnforgiven left a reply on Assign Variables And Signature To PDF (embed) • 1 week ago

Wondered if anyone would any ideas on this please.

8th October, 2018

theUnforgiven left a reply on Assign Variables And Signature To PDF (embed) • 1 week ago

Anyone know how Docusign do it or how I can achieve such task

theUnforgiven left a reply on Assign Variables And Signature To PDF (embed) • 1 week ago

Anyone know how Docusign do it or how I can achieve such task

theUnforgiven started a new conversation Assign Variables And Signature To PDF (embed) • 1 week ago

Hi all,

Hope everyone is having a good start to the new working week :)

I have a couple of things I want to get suggestions and opinions on.

Firstly, I have a PDF embeded within a page and I want the user to be able to click a button to add their signature to the PDF.

The PDF looks like, which you can see as a signature box.

!()[https://i.imgur.com/rWAaAWf.png]

The rest of the PDf would also need to be "editable" in a way that we can just drop variables within the "pre-fill" different elements of the form. Those of you that know or have heard of DocuSign will know exactly what I am after.

So as I said any help/advice/suggestions, greatly appreciated.

4th October, 2018

theUnforgiven left a reply on New Email Verification Question • 2 weeks ago

This was my thought also, but the business wants this to happen

26th September, 2018

theUnforgiven left a reply on New Email Verification Question • 3 weeks ago

Yes I understand that, which would make sense. Question now is, is there a way to make it work the way I want? Or would it be case of write my own by storing a token of some kind and doing it that way, but then again it would need a session to auto login right?

Any suggestions would be greatly appreciated :)

theUnforgiven left a reply on New Email Verification Question • 3 weeks ago

Ok is there a way to edit the email template that comes with the package.

theUnforgiven started a new conversation New Email Verification Question • 3 weeks ago

Hi all,

I'm using the new email verification that was added to 5.7, which is great if you are on one PC and one browser. But say I wanted to signup for my app on my PC then verify my email on my mobile phone, this just redirects to the login screen.

Now my question is, as anyone else found this and what can I do to make sure it work regardless or device?

Many thanks :)

20th September, 2018

theUnforgiven left a reply on Storage Link Not Working On Forge • 4 weeks ago

Figured I had to put FILESYSTEM_DRIVER=public in the .env file, all working now

theUnforgiven started a new conversation Storage Link Not Working On Forge • 4 weeks ago

Hi all,

I have setup storing files in the storage dir and tested locally and all works fine, however when deployed to Forge this stops working and saves in the Db as /tmp/php1aES7V whereas locally it stores correctly as:

https://app.test/storage/JZWFW5ZUwaAKu2jOPtI9hrIfC.pdf

I did php artisan storage:link on the server and all was good, but not sure as to why these files are been stored as tmp files.

Any help greatly appreciated.

6th September, 2018

theUnforgiven left a reply on 5.7 But JS Not Working • 1 month ago

Seems I had to remove defer from the app.js script tag, all is good now it seems.

theUnforgiven left a reply on 5.7 But JS Not Working • 1 month ago

I've even tried removing the package lock and node_modules folder/file and reinstall via npm install but still to no avail. I have no idea why this is and nothing is showing as errors in the JS console.

theUnforgiven left a reply on 5.7 But JS Not Working • 1 month ago

No errors and just checked and everything is showing as 200 status code, but again even Algolia Address lookup https://cdn.jsdelivr.net/npm/[email protected] not working either

theUnforgiven started a new conversation 5.7 But JS Not Working • 1 month ago

Hi all,

I have a fresh install of 5.7 and done npm install etc and still it seems jquery isn't working without me stating <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> in the app.blade.php file.

VueJS seems to be working in parts also and I don't see any errors, but if I remove the above line the show/hide of divs become visible no matter what, but upon putting the line back in divs get hidden, but don't show when using the following script:

$("#flat-info").hide();

$("#type").on('change', function() {
    var propType = $("#type").val();

    if(propType == 'Flat' || propType == 'Apartment') {
        $("#flat-info").show();
    }

within my app.blade file I do have @stack('scripts') and then in my other files I have @push('scripts') and the view source shows this, but for some reason it's not working.

Any help/advice greatly appreciated.

3rd September, 2018

theUnforgiven left a reply on [Vue Warn]: Error Compiling Template: • 1 month ago

Nope, nothing seems to be compiling and all the site now is broken, so I'll be reverting back to how it was before as I don't have the time to further test this or encounter any more roadblocks, but many thanks for trying to help.

theUnforgiven left a reply on [Vue Warn]: Error Compiling Template: • 1 month ago

Yes, this was all working until I upgraded the design to use Tabler - https://tabler.github.io/tabler/index.html or which I used this package - https://github.com/cesaramirez/laravel-tabler but that now seems to have blown things up and can't figure out why. My package.json file is the same as I had before, just changed from bootstrap 3 to 4 really.

theUnforgiven left a reply on [Vue Warn]: Error Compiling Template: • 1 month ago

Just show the HTML as the rest of the error message

theUnforgiven started a new conversation [Vue Warn]: Error Compiling Template: • 1 month ago

I'm getting this error, but it's not stating what the error could be. It just shows as:

if (config.warnHandler) {
      config.warnHandler.call(null, msg, vm, trace);
    } else if (hasConsole && (!config.silent)) {
      console.error(("[Vue warn]: " + msg + trace));
    }

Does anyone know what this could be?

22nd August, 2018

theUnforgiven left a reply on Laravel Nova • 1 month ago

nova.laravel.com explains it pretty well also :)

20th August, 2018

theUnforgiven left a reply on VueJS Online/offline Status • 1 month ago

Anyone?

theUnforgiven left a reply on VueJS Online/offline Status • 1 month ago

So the above I couldn't get to work, my chat app is working all fine now, just need to get the online/offline status of the user.

I opted to use Echo.join but this isn't working as the channel is private, what else can I do to get this working.

Here's the full Chat.vue

<template>
<div>
    <div class="panel-body">
        <div class="panel-heading">
            <h4>{{ subject }} - <small>Chat ID: {{ chatId }}</small></h4>
            <h6></h6>
            <br />
            <div class="input-group">
                <input id="btn-input"
                       type="text"
                       name="message"
                       class="form-control input-md"
                       style="height: 40px;"
                       placeholder="Type your message here..."
                       v-model="newMessage"
                       @keydown="isTyping"
                       @keyup.enter="addMessage"
                >

                <span class="input-group-btn">
                    <button class="btn btn-primary btn-sm" id="btn-chat" @click="addMessage">
                        Send
                    </button>
                </span>
            </div>
            <span class="pull-left typingPeer" v-if="activePeer" v-text="activePeer.name + ' is typing...'"></span>
        </div>


        <ul class="chat">
            <li v-for="message in messages">
                
                <div class="chat-body clearfix">
                    <div class="header chat-header">
                        <strong class="primary-font">
                            <span v-if="online == true"><i class="fa fa-circle text-success"></i></span>
                            <span v-if="online == false"><i class="fa fa-circle text-default"></i></span>

                            <span v-if="message.user.first_name">{{ message.user.first_name }}</span>
                            &nbsp;&nbsp;&nbsp;-&nbsp;
                        </strong>
                        <small class="chat-date" v-if="message.created_at">
                            Posted: {{ message.created_at | formatDate }}
                        </small>
                        <small class="chat-date" v-else>
                            Posted: {{ message.created | formatDate }}
                        </small>

                    </div>
                    <p class="chat-msg">
                        {{ message.message }}
                    </p>
                </div>
            </li>
        </ul>
    </div>

</div>
</template>

<script>
    export default {

        props: ['thread'],

        data() {
            return {
                newMessage: '',
                activePeer: false,
                messages: [],
                typingTimer: false,
                subject: '',
                chatId: '',
                online: false,
            }
        },

        mounted() {

            this.fetchMessages();

            window.Echo.private('chat')
                .listen('.newChat', (e) => {
                    this.messages.unshift({
                        message: e.message.message,
                        user: e.user,
                        created: e.message.created_at                        
                    });
                })
                .listenForWhisper('typing', (e) => {
                    this.activePeer = e;

                    if(this.typingTimer) clearTimeout(this.typingTimer);

                    this.typingTimer = setTimeout(() => {
                        this.activePeer = false;
                    }, 2000);
                })

            window.Echo.join(`chat`)
                .here((users) => {
                    console.log('HERE ' + users);
                    this.online = users.length;
                })
                .joining((user) => {
                    this.online = true;
                    this.$toaster.success(user.first_name+' is joined the chat room');
                })
                .leaving((user) => {
                    this.online = false;
                    this.$toaster.warning(user.first_name+' is leaved the chat room');
                });
        },

        methods: {
            isTyping() {
                window.Echo.private('chat')
                    .whisper('typing', {
                        name: window.Laravel.user.first_name
                    });
            },

            fetchMessages() {
                axios.get('/messages/fetch/' + this.thread).then(response => {
                    // console.log(response.data);
                    this.messages = response.data;
                    this.subject = response.data[0]['subject'];
                    this.chatId = response.data[0]['unique_id'];
               
                });
            },

            addMessage() {
                axios.post('/messages/send/' + this.thread, { message: this.newMessage, user:  window.Laravel.user.first_name });
                this.messages.unshift({
                    message: this.newMessage,
                    user: this.user
                });

                this.activePeer = false;
                this.newMessage = '';
            }
        }
    }
</script>

here's my event:

<?php

namespace NRS\Events;

use Illuminate\Broadcasting\Channel;
use Illuminate\Contracts\Broadcasting\ShouldBroadcastNow;
use Illuminate\Queue\SerializesModels;
use Illuminate\Broadcasting\PrivateChannel;
use Illuminate\Broadcasting\PresenceChannel;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
use NRS\Models\Message;
use NRS\Models\User\User;

class MessageSent implements ShouldBroadcast
{
    use Dispatchable, InteractsWithSockets, SerializesModels;

   /**
     * User that sent the message
     *
     * @var User
     */
    public $user;
    /**
     * Message details
     *
     * @var Message
     */
    public $message;
    /**
     * Create a new event instance.
     *
     * @return void
     */
    public function __construct(User $user, Message $message)
    {
        $this->user = $user->first_name . ' ' . $user->last_name;
        $this->message = $message;
    }

    public function broadcastAs()
    {
        return 'newChat';
    }

    /**
     * Get the channels the event should broadcast on.
     *
     * @return Channel|array
     */
    public function broadcastOn()
    {
        return new PrivateChannel('chat');
    }
}

then within my view I'm calling the Vue as, just to get the thread ID based on segment.

<chat-form thread="{{ Request::segment(2) }}"></chat-form>

So it's just the part

  window.Echo.join(`chat`)
                .here((users) => {
                    console.log('HERE ' + users);
                    this.online = users.length;
                })
                .joining((user) => {
                    this.online = true;
                    this.$toaster.success(user.first_name+' is joined the chat room');
                })
                .leaving((user) => {
                    this.online = false;
                    this.$toaster.warning(user.first_name+' is leaved the chat room');
                });

That I am unable to get working, to show whether or not the user is online or not.

Hope someone can help me

17th August, 2018

theUnforgiven left a reply on VueJS Online/offline Status • 2 months ago

@ejdelmonico Thanks! Yeah that may give me some starting point. Will have a go with that. :)

16th August, 2018

theUnforgiven left a reply on VueJS Online/offline Status • 2 months ago

Anyone?

theUnforgiven started a new conversation VueJS Online/offline Status • 2 months ago

So I have built a small chat feature within my app, but now I want to know how I can get the status of the person, i.e online/offline.

This is the Vue I have currently and ideally want something like Slack offers where if someone is offline gives you the option to send notification if the user is offline, or just leave it if they don't send straight away.

<template>
<div>
    <div class="panel-body">
        <div class="panel-heading">
            <h4>{{ subject }} - <small>Chat ID: {{ chatId }}</small></h4>
            <h6></h6>
            <br />
            <div class="input-group">
                <input id="btn-input"
                       type="text"
                       name="message"
                       class="form-control input-md"
                       style="height: 40px;"
                       placeholder="Type your message here..."
                       v-model="newMessage"
                       @keydown="isTyping"
                       @keyup.enter="addMessage"
                       @keyup="whisper()">

                <span class="input-group-btn">
                    <button class="btn btn-primary btn-sm" id="btn-chat" @click="addMessage">
                        Send
                    </button>
                </span>
            </div>
            <span class="pull-left typingPeer" v-if="activePeer" v-text="activePeer.name + ' is typing...'"></span>
        </div>


        <ul class="chat">
            <li v-for="message in messages">

                <div class="chat-body clearfix">
                    <div class="header chat-header">
                        <strong class="primary-font">
                            <i class="fa fa-user-circle"></i> <span>{{ message.sender }}</span>&nbsp;&nbsp;&nbsp;-&nbsp;
                        </strong>
                        <small class="chat-date" v-if="message.created_at">
                            Posted: {{ message.created_at | formatDate }}
                        </small>
                        <small class="chat-date" v-else>
                            Posted: {{ message.created | formatDate }}
                        </small>

                    </div>
                    <p class="chat-msg">
                        {{ message.message }}
                    </p>

                </div>
            </li>
        </ul>
    </div>

</div>
</template>

<script>
    export default {

        props: ['thread', 'user'],

        data() {
            return {
                newMessage: '',
                activePeer: false,
                messages: [],
                typingTimer: false,
                subject: '',
                chatId: ''
            }
        },

        mounted() {

            this.fetchMessages();

            this.listen();

            window.Echo.private('chat')
                .listen('.newChat', (e) => {
                    this.messages.unshift({
                        message: e.message.message,
                        sender: e.message.sender,
                        recipient: e.message.recipient_name,
                        created: e.message.created_at
                    });
                })
                .listenForWhisper('typing', (e) => {
                    this.activePeer = e;

                    if(this.typingTimer) clearTimeout(this.typingTimer);

                    this.typingTimer = setTimeout(() => {
                        this.activePeer = false;
                    }, 2000);
                });
        },

        methods: {
            isTyping() {
                window.Echo.private('chat')
                    .whisper('typing', {
                        name: window.Laravel.user.first_name
                    });
            },

            fetchMessages() {
                axios.get('/messages/fetch/' + this.thread).then(response => {
                    this.messages = response.data;
                    this.subject = response.data[0]['subject'];
                    this.chatId = response.data[0]['unique_id'];
                });
            },

            addMessage() {
                axios.post('/messages/send/' + this.thread, { message: this.newMessage });

                this.activePeer = false;
                this.newMessage = '';
            }
        }
    }
</script>

So based on the above, how best could I achieve this online/offline status?

12th August, 2018

theUnforgiven left a reply on Error Message Adding A Message [stumped] • 2 months ago

Within my controller I fire of the broadcast like so:

public function sendMessage(Request $request)
{
        $user = user();

        $message = $user->messages()->create([
            'message' => $request->input('message')
        ]);

        broadcast(new MessageSent($message))->toOthers();
}

But again not sure why the listener isn't firing and updating in realtime.

theUnforgiven left a reply on Error Message Adding A Message [stumped] • 2 months ago

So I have the event passing through to pusher as shown above, but the listener isn't listening and therefore not updating the list or showing in real-time on the screen.

Can any of you lovely people, help me out?

11th August, 2018

theUnforgiven left a reply on Error Message Adding A Message [stumped] • 2 months ago

The event is now like so:

class MessageSent implements ShouldBroadcast
{
    use Dispatchable, InteractsWithSockets, SerializesModels;



    /**
     * Message details
     *
     * @var Message
     */
    public $message;

    /**
     * Create a new event instance.
     *
     * @param Message $message
     */
    public function __construct(Message $message)
    {
        $this->message = $message;

        $this->dontBroadcastToCurrentUser();
    }


    /**
     * Get the channels the event should broadcast on.
     *
     * @return Channel|array
     */
    public function broadcastOn()
    {
        return new PrivateChannel('chat');
    }
}

It did have the user on as Eloquent i think within the constructor method, but I guess that was causing the problem, so removed it for now and all seems to be sending the APIMessage to Pusher. My only other problem now is that the event isn't pushing in realtime.

Pusher shows as:

{
  "message": {
    "id": 74,
    "user_id": 103,
    "message": "qwerty",
    "created_at": "2018-08-11 21:35:40",
    "updated_at": "2018-08-11 21:35:40"
  }
}

And I have an Echo listener as follows:

Echo.private('chat')
            .listen('MessageSent', e => {
                this.messages.push(e.message.message);
            });

But again this isn't pushing in realtime and therefore not updating the list or showing to the other user.

theUnforgiven left a reply on Error Message Adding A Message [stumped] • 2 months ago

No nothing, and just says to refer to docs, but I can't for the life of me figure out why

theUnforgiven left a reply on Error Message Adding A Message [stumped] • 2 months ago

Should just be an individual message, which having just checked yes it's a single message. I wonder if its the user object.

theUnforgiven left a reply on Error Message Adding A Message [stumped] • 2 months ago

Ok fixed that, but that now produces another error, something relating to Pusher I believe The data content of this event exceeds the allowed maximum (10240 bytes)

theUnforgiven left a reply on Error Message Adding A Message [stumped] • 2 months ago

Not sure I follow you @tykus

Edit Your Profile
Update

Want to change your profile photo? We pull from gravatar.com.