skeith22

skeith22

Member Since 3 Years Ago

Bacolod City

Experience Points
52,510
Total
Experience

2,490 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
465
Lessons
Completed
Best Reply Awards
0
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 11
52,510 XP
Oct
22
3 days ago
Activity icon

Replied to What's The Difference Of Laravel + Vue AND Laravel Jetstream/Fortify + Inertia/Vue

I'm well aware that laravel/ui is still available, but the problem is that they declared it deprecated and not recommended for scaffolding authentication. Also, it's not even in the documentation at all, which we all know will eventually cause errors in the future if they would stop maintaining it.

I also read the Jetstream documentation already. It only says Livewire and Inertia which I mentioned above in my original post about it my concerns about it. No other options for you if you have a 3rd party or external frontend/client.

I think you need to read my Post again to better understand my questions and concerns.

The problem is that again, they would probably kill laravel/ui in the near future, and it would be better to start migrating your authentication structure to what is recommended and will be maintained for sure. This will also make sure your application is up to date on updates and improvements regarding authentication.

Anyway, thanks for that discussion linked. it helped a lot.

Activity icon

Started a new Conversation What's The Difference Of Laravel + Vue AND Laravel Jetstream/Fortify + Inertia/Vue

I'm currently on Laravel v6 LTS with a Vue SPA using Passport and planning to upgrade to Laravel v8, but I'm hesitating about the Jetstream/Fortify and Inertia/Vue stack. I'm looking if it's compatible with my current architecture as the application is kinda big. I read about Inertia/Vue and based on what I read, it's not SPA and the routes are in Laravel as well, but it does say it behaves like a SPA (not sure if this is true).

I wanted to transfer to what will eventually be the mainstream of authentication scaffolding, but I have a few concerns about it when you came from an older version of Laravel and the application is kinda big.

First is routes, components, and behavior, I have A LOT of routes in my router.js, and the components are dynamically loaded. It looks like I have to transfer my routes from my frontend to the backend if I wanted to use the Inertia/Vue stack recommended by Jetstream, and it looks like a lot of hassle to move and to test everything again.

There are a few questions I wanted to know about it regarding my first concern.

  1. Will it behave as my old application do like a SPA does?
  2. Can it handle complex/complicated processes? like really complex things, as I see that the backend is handling some of the logic/functionality, wouldn't that add a hassle to architecting how does the frontend get what you want?
  3. How optimized is the stack regarding request/response, since it relies on the backend on some logic/functionality and it will probably do a lot of request/response?
  4. How does it handle offline functionality if ever your connection or the client's connection is intermittent? Do the functions still work or everything will die?

Second, the Authentication Document (Jetstream) is forcing you to either choose between Livewire and Inertia stack, and they declared laravel/ui deprecated already (probably a bad idea though for those who are using external Vue, React or Angular as Frontend but I don't mind honestly).

Here are my questions on my second concern.

  1. What if don't want to use them, how can you scaffold authentication quickly while using the latest implementation of Laravel Fortify while maintaining the current architecture?
  2. I want to take advantage of updates and upgrades regarding Laravel Authentication but you're stuck with Jetstream letting you choose between Livewire and Inertia. Both of these are designed to work inside Laravel and no other options for an application that is using external Frontend.

If anyone has experience with my concerns, please do share them here. As I really need advice, guides, and suggestion as to how will I go with upgrading the Laravel version. Anything would probably help me decide.

Thank you.

Oct
18
1 week ago
Activity icon

Commented on Refactor To A BelongsToTenant Trait

I have the same question, that disturbs me A LOT. @kevin_mckee

Oct
04
3 weeks ago
Activity icon

Replied to Larave V8 I Think The Routing Changes Is Kinda Wrong Don't You Think?

@michaloravec Same thought, VS Code still has some work to do if it wants to reach Sublime Text. A lot of devs think VSC is better than ST but people who actually fully utilize what ST is actually really capable of doing know that ST is miles ahead of VSC actually. That's why all these years of checking up on VSC, it still doesn't convince me to transfer at all.

Especially that Sublime Merge application by Sublime Text, that kills VSC. It just makes your work easier to trace. It's like Github but locally, you can check on changes, hunks, branches, merges, and etc2, all in your ST.

Until VSC has that, I won't probably transfer anytime soon.

Oct
03
3 weeks ago
Activity icon

Replied to Larave V8 I Think The Routing Changes Is Kinda Wrong Don't You Think?

@laracoft I found this, maybe this would work for you. it's using IntelliSense.

https://laracasts.com/discuss/channels/general-discussion/intelephense-doesnt-find-my-definition-in-vs-code.

I'm sorry I can't do much, cause I'm using Sublime Text 3.

I'll give some explanation why I use ST3, but this is not for discussion. but feel free to reply on this.

The reason is, I'm still not convinced VS Code is faster to develop than Sublime Text 3 when using PHP, Python or, other language.

FYI, I have a lot of custom settings, snippets, packages for php, vue, and nodejs development support installed for faster development.

I tried using VS Code and imported as much settings as I could from ST3 to VS Code. Thanks VS Code for having this awesome feature. Migrating from one IDE is much easier. But my experience developing Laravel apps was still slower, VS Code didn't have some of the features that ST3 has. Navigating or fuzzy searching through files is way way faster in ST3 than VS Code, If you've master the shortcut keys. Also Adding and Deleting files too. Also I couldn't find some package that ST3 has but VS Code doesn't. There's a ton of ways and shortcuts for things on Sublime Text 3 that I couldn't find on VS Code, and is still like 2 to 4 times faster when I develop on ST compared to VS Code.

Also, I haven't used a mouse for 6 years straight already, and I tell you can CODE DAMN FAST like 30-50% faster with no mouse. If you master your laptop's keyboard layout and your IDE's shortcut keys. Preferably with a less 10 key setup. I never look back at a mouse again when coding.

Probably another 2-4 years from now, VS Code will catch up with Sublime Text regarding shortcut keys, key commands, custom settings (This is the bomb on ST), customization (Also this), and etc. For me ST3 is way powerful in terms of a lot of things still.

But don't get me wrong VS Code has them too, but not quite there yet, not quite. Time to time I checkup on VS Code to see how it's progressing or is it catching up on ST3 on some things.

Anyway, I hope my link helps you on your problem.

Activity icon

Replied to Larave V8 I Think The Routing Changes Is Kinda Wrong Don't You Think?

@laracoft I think you should stick with IntelliSense, I'm not sure what does Intelliphense do though. but on my experience IntelliSense does it on my ST3. When I imported my Sublime Text 3 settings to VS Code it works like magic.

So try uninstalling both, close and open, then reinstall IntelliSense only. See if that works.

For me ST3 just works like magic.

Activity icon

Replied to Larave V8 I Think The Routing Changes Is Kinda Wrong Don't You Think?

@laracoft That is true, it does help to lint this. This is what I noticed first hand on ST3 that's why I was irritated with the changes but it does has its pros. so pretty much most IDE benefit from this.

I guess rewriting all of my apps to follow this practice is a good start, since this will be a permanent change and there are also changes in models, factories, migrations, and seeders that really helps a lot too.

Oct
02
3 weeks ago
Activity icon

Commented on Top Navs

I agree man.

Activity icon

Commented on Top Navs

I've used Bootstrap from v2 up to v4 for years already, I've got to say Tailwind is a different beast. It solves the customization problem that Bootstrap has when doing custom layouts or UI. sure Bootstrap has some great ready-made components but if you're using a frontend framework like Vue or React, you can easily make most of the components Bootstrap has using Vanilla CSS or Tailwind and have power over flexibility and customizations.

For me, I think transitioning from Bootstrap to Tailwind CSS is the best thing I did, Tailwind for me is better than Boostrap given that I have years and years of experience using nothing but Bootstrap.

Activity icon

Replied to Larave V8 I Think The Routing Changes Is Kinda Wrong Don't You Think?

You have a point there if this helps improve application quality sure why not then. I guess we have just to live with it.

Sep
30
3 weeks ago
Activity icon

Replied to Larave V8 I Think The Routing Changes Is Kinda Wrong Don't You Think?

@jlrdw I honestly think Larave UI is still the best way for me to scaffold Authentication honestly. It has worked for years already and there's no problem with it, but Jetstream just made it even easier and simple for those who don't want to hassle themselves in handling Authentication. If you're using frontend framework then Laravel UI is still the way to go about.

I guess there's no use complaining as long as it's free lol

Activity icon

Replied to Larave V8 I Think The Routing Changes Is Kinda Wrong Don't You Think?

@laracoft man thank you for clearing things out, I kinda understand now what you mean, I guess the very reason that change was done is probably because of what you mentioned regarding IDEs like PHPStorm so they can actually lint the codes before even running it.

I guess we just have to live with this, changes at least with this in mind it won't hurt as much as not understanding it at all though lol

but to give credit for PHP, that code as string is kinda powerful if properly implemented and used though, that's the only downside of it, IDE's won't know if it's broken or not.

Activity icon

Replied to Try To Build A Laravel Api And Vuejs

hey @ddoser020, I'll try to answer your questions.

  1. I think that is very clear already for the dev? Backend and Frontend are already separated and thus should focus on their part, like Backend should handle Authentication, APIs, Security, Validation, and etc. While Frontend focuses on UI and UX, while frontend should also take into consideration how it calls API cause that would affect your performance too. honestly, this is a long discussion regarding this.

  2. That depends on what is the requirement of your application, weight the pros and cons of it. Do you really need it to be SPA if all it does is just present information? What kind of data/information will it present? only you know that answer to that one. but to give you an answer you should go with Larave and Vue, practice your skill while developing simple applications. FYI I use Laravel + Vue NOT Laravel and Vue. There's a difference in both. The one you mentioned is Laravel and Vue though.

  3. It doesn't affect performance but it does affect how scalable, maintainable, flexible, reusable, and robust your code is, thus resulting in faster development time and it's easier to scale, maintain, reuse, and extend.

  4. Just make sure your API is implemented properly to avoid security risks, it goes the same for your frontend too. Handle sensitive information properly in your frontend side. give only what your frontend really needs.

  5. Don't be afraid of deployments, deploying your backend and frontend isn't that hard if you're using services. I'm assuming you would use a service or something. BUT handling everything like the server, installing the stack and configuring everything that is needed, and then deploying your application is a different story though. that's a whole lot of things to learn my friend. That's for a DevOp job already.

I prefer not to worry about that now and focus on developing your application, then just worry about it if you're really going to deploy it in the future.

Sep
29
3 weeks ago
Activity icon

Replied to Larave V8 I Think The Routing Changes Is Kinda Wrong Don't You Think?

Hey @jlrdw , yes I'm very aware of that one already before v8 was released. Still, I thank you though for giving that answer here. that might help other devs who are facing that problem.

What do you think about the new changes on v8 regarding Routing or Registering Routes?

Activity icon

Replied to Larave V8 I Think The Routing Changes Is Kinda Wrong Don't You Think?

FYI, I like the username though lol.

Anyway, yes the changed that you mentioned, it's kinda hassling and disturbing to import the Controller every time. And the new one is not easy to read at first glance (yes you'll get used to it eventually), but the point here is the readability of it.

And yes you could always just put this back protected $namespace = 'App\Http\Controllers'; on your RouteServiceProvider.php to avoid the hassle of importing it on top and long path class names.

But the point here is thatRoute::get('/', '[email protected]'); this is way readable and easy to understand than an array in the second argument in Route::get('/', [controller::class, 'method']);. One might get confused as to what else can you pass on that second argument as array. Like this [controller::class, 'methodName', 'couldThereMoreHere?', 'orHere?']; instead of [email protected] which is very clear straight forward. Don't you think?

I guess one reason is that for the support of IDE like PHPStorm that you mentioned.

To answer your questions though

PS I might misunderstand what you mean by code as string though, if so do please explain it to me further, thank you. so here goes.

  1. It's kinda pointless to question this though, we all know it's a string that is being converted to a controller and a method name for the sake of making registering routes easier, hence the pattern [email protected] that's being translated in the back by another function.

  2. Well, I don't know any language that actually reads a code as string though, so if you've any experience writing your own routing system, you should know that is just really a string that is being translated using a pattern or an algorithm to know what Controller and what Method Name to use. So this is related to answering number 1, it is just a string, and there's no code as string here.

  3. $class->$method is sticking pretty much sticking to the standard on how PHP works, like $user->save()

  4. If that's the case isn't there any way to do it?

  5. I've mentioned above in my answer in 1 and 2 above, there's no code as string here though. and how is it better than before?

Does code as string you mean is that the string really does equates to a method or function behind it? Just guessing though.

Thank you for the time to replying to this though, it really helps me understand what other devs think of the new updates regarding this.

Activity icon

Started a new Conversation Larave V8 I Think The Routing Changes Is Kinda Wrong Don't You Think?

Does anybody think also that the changes in v8 regarding defining routes in web.php or api.php are kinda wrong?

I mean, we've been used to doing the old stuff for a couple of years and they suddenly changed it in v8. I do think they didn't just do it for the sake of changing it actually, but they did it because it might have a performance impact or something. If so does anybody know what is the reason for this change?

I'm assuming this has to do with caching routes?

I still do think they need to revert it back to the old way of how we are registering routes.

Activity icon

Replied to Withpath Laravel After Search

Can you explain further what do you want to achieve? And what are the difficulties you're facing right now to achieve your goal

If I understand this correctly, you want to add query parameters to the pagination path correct? Like if you're changing pages or searching, you want to retain the query parameters?

Sep
08
1 month ago
Activity icon

Started a new Conversation How To Set SOAP Header In HttpGuzzle Envelope Body?

I currently have this, does anyone know how to add headers to this?

<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/">
    <Body>
        <testConnection xmlns="urn:myurl">
            <name>Test Connection</name>
        </testConnection>
    </Body>
</Envelope>

I'm having this response error

<SOAP-ENV:Body>
    <SOAP-ENV:Fault>
        <faultcode xsi:type="xsd:string">ERROR</faultcode>
        <faultactor xsi:type="xsd:string"></faultactor>
        <faultstring xsi:type="xsd:string">1  Authentication failed! You need to send soap headers or HTTP headers containing your credentials. If you want to use soap headers, the credentials must have the form of &quot;&amp;lt;Credentials&amp;gt;&amp;lt;username&amp;gt;username&amp;lt;/username&amp;gt;&amp;lt;password&amp;gt;password&amp;lt;/password&amp;gt;&amp;lt;/Credentials&amp;gt; </faultstring>
        <detail xsi:type="xsd:string"></detail>
    </SOAP-ENV:Fault>
</SOAP-ENV:Body>
Aug
31
1 month ago
Activity icon

Started a new Conversation Laravel Multiple Polymorphic One To One On A Single Model

Does anybody know what does the parameters passed on this->morphTo() look like?

I currently have 2 polymorphic relationships on the table and I think it's getting confused when I use the with query. It just loads forever and gives error at the end.

using with('journableFrom') does work BUT with('journable') doesn't.

I think it's just getting confused and I need to specify it manually on the relationship

I currently have this on my Model

protected $fillable = [
    'journable_from_type', 'journable_from_id',
    'journable_type', 'journable_id'
];

public function journableFrom()
{
    return $this->morphTo();
}


public function journable()
{
    return $this->morphTo();
}

I have looked at morphTo and I'm not sure what the $name and $ownerKey looks like

this is the method morphTo looks like

public function morphTo($name = null, $type = null, $id = null, $ownerKey = null)

Aug
22
2 months ago
Activity icon

Awarded Best Reply on This.$route.query Is Empty On First Load

I found the issue, it was my mistake. looks like I was deleting the properties of it on another component. it took me quite a while to find it because there are too many component files.

Activity icon

Replied to This.$route.query Is Empty On First Load

I found the issue, it was my mistake. looks like I was deleting the properties of it on another component. it took me quite a while to find it because there are too many component files.

Activity icon

Awarded Best Reply on Vue This.$route Is NOT Picking Up Other Query Parameters

I found the issue, it was my mistake. looks like I was deleting the properties of it on another component. it took me quite a while to find it because there are too many component files.

Activity icon

Replied to Vue This.$route Is NOT Picking Up Other Query Parameters

I found the issue, it was my mistake. looks like I was deleting the properties of it on another component. it took me quite a while to find it because there are too many component files.

Activity icon

Replied to Vue This.$route Is NOT Picking Up Other Query Parameters

I added values to name and display_name same results only the 2 of them were picked up by this.$route.query.

Activity icon

Started a new Conversation Vue This.$route Is NOT Picking Up Other Query Parameters

I just noticed there is something wrong with Vue.

when you console.log this this.$route.fullPath. this is the result

users?page=3&per_page=15&name=&display_name=&order_by=desc

BUT when you console this.$route.query this only contains { display_name: "", name: "" }

page, per_page, and order_by is not in the query object.

Activity icon

Replied to This.$route.query Is Empty On First Load

I just noticed something else too, on my child component, this is the value of the this.$route,fullPath

users?page=3&per_page=15&name=&display_name=&order_by=desc

but the this.$route.query only contains { display_name: "", name: "" }

page, per_page, and order_by is not in the query.

Activity icon

Replied to This.$route.query Is Empty On First Load

Isn't the parent and chid component basically accessing THE SAME instance of this.$route because this is global?

so the parent and child should output the same result of this.$route

Activity icon

Replied to Is It Safe To V-bind This.$parent On Named Slot?

I found something that works if anyone ever encounters this here is the answer

<some-component>
    <template v-bind:data="data">
        <div class="row">
            <div class="col-md-6 form-group">
                <label for="name">Name <small class="text-danger">* Required</small></label>
                <input id="name" type="text" class="form-control" v-model="data.name">
            </div>
        </div>
    </template>
</some-component>
Activity icon

Replied to This.$route.query Is Empty On First Load

Yes, I do have beforeRouteEnter on my parent component.

beforeRouteEnter(to, from, next) {
    // Values are { page: 2, per_page: 15 }
    console.log("BeforeRouteEnter: ", to.query);

    if (to.query.per_page == null) {
        next(vm => vm.getData({
            page: to.query.page,
            per_page: 15
        }));
    } else {
        next(vm => vm.getData({
            page: to.query.page,
            per_page: to.query.per_page
        }));
    }
},
Activity icon

Replied to This.$route.query Is Empty On First Load

I just noticed something really disturbing and bad about Vue regarding this one.

I have a parent and a child component and my URL looks like this.

http://domain.test/users?page=2&per_page=15

on my parent component

mounted() {
    console.log(this.$route.query); // It has values. { page: 2, per_page; 15 }
}

on my child component

<< THIS HAS VALUES YESTERDAY >>
mounted() {
    console.log(this.$route.query); // This is undefined

    Vue.nextTick().then(() => {
        console.log(this.$route.query.page); // This is STILL undefined
    });
}

<< THIS HAS VALUES YESTERDAY >>

The weird thing about this is that the child component has values yesterday and now I just noticed it's undefined while I was checking for UI changes in the parent component. I didn't touch the child component.

Can anyone confirm if they have this behavior on their parent and child components?

Activity icon

Started a new Conversation Is It Safe To V-bind This.$parent On Named Slot?

I have a sample code here.

It says v-bind directives don't support the modifier '$parent'. but it works fine on my end.

<some-component>
    <template v-bind:this.$parent="$data"> <<< THIS RIGHT HERE
        <div class="row">
            <div class="col-md-6 form-group">
                <label for="name">Name <small class="text-danger">* Required</small></label>
                <input id="name" type="text" class="form-control" v-model="$data.name">
            </div>
        </div>
        // Some code here.
        // Editing some data here too.
    </template>
</some-component>

Does anybody here know another safe way of passing the whole parent data on the child component slot? I am also editing the data directly inside it

Aug
20
2 months ago
Activity icon

Replied to Rename "data" Key In Collection Result

I was actually looking for a solution to this right now. when using axios to handle this it's actually kinda wrong when you read the response

Here is an example as to why it would be nice to actually have support for renaming data key on pagination.

Let's say we have a component that would display a list of users.

<template>
    <div>
        <div v-for="user in data.data"> // This should be data.users
            {{ user.name }}
        <div>
    </div>
</template>

axios.get('/api/users', { params }).then(response => {
    this.data = response.data;
}).catch(error => {
    // Catch error
});

You might be saying why not just use this.users = response.data.data?

The reason is that when you have a really BIG frontend and you're using slots, components inside components and you're passing data a lot from parent to child or component to whatever component, it is disturbing and tedious to do when passing object variables that are dynamic that has 10 properties with 10 or more data inside every property AND you don't know what data you're passing. Because you're using data keyword instead of what that key name should really be.

Plus when you're reusing the components and all. IT IS CONFUSING to read. Especially for someone who is new to the project.

It would be nice if someone would actually recommend this to @TaylorOtwell, this will literally help a lot of devs who are facing this problem.

We could just have a code like this

$users = App\User::paginate(15)->renameKeys(['data' => 'users']);

{
   "total": 50,
   "per_page": 15,
   "current_page": 1,
   "last_page": 4,
   "first_page_url": "http://laravel.app?page=1",
   "last_page_url": "http://laravel.app?page=4",
   "next_page_url": "http://laravel.app?page=2",
   "prev_page_url": null,
   "path": "http://laravel.app",
   "from": 1,
   "to": 15,
   "users":[
        {
            // Result Object
        },
        {
            // Result Object
        }
   ]
}

This will find all the keys the match it and replace it with the value.

Then on your Vue code

<template>
    <div>
        // This is way better to read and to understand.
	<div v-for="user in data.users">
            {{ user.name }}
        <div>
    </div>
</template>

axios.get('/api/users', { params }).then(response => {
    this.data = response.data;
}).catch(error => {
    // Catch error
});
Aug
17
2 months ago
Activity icon

Replied to What Does Mean "100 Max Connections" In Pusher Free Plan

Yeah I know it's a lot, but I guess I think the price is too much for me because of where I live.

Probably for you guys the price is fair but for us not living in the US, that is very expensive for some of us.

With that amount of money, I could pretty much create a Redis Cluster and Echo Server Cluster to handle that amount of users but way less expensive. But I don't want to burden myself with the hassle of maintaining though.

Activity icon

Replied to What Does Mean "100 Max Connections" In Pusher Free Plan

I wanted to try pusher for a change, since I've been using Redis, Socket.io, and Laravel Echo Server for 3 years already.

but I guess it's not that price friendly for me.

Aug
15
2 months ago
Activity icon

Replied to What Does Mean "100 Max Connections" In Pusher Free Plan

Don't you think that's a bit of a small amount for 30k users for$1,199/month? Well I mean for me that's very expensive in my country, their pricing is kinda targeted to the US only and not price friendly globally.

Activity icon

Replied to Where Are You All From?

Bacolod, Philippines

Activity icon

Replied to Date For When Laravel Mix Would Official Release A Version With Webpack 5 Fully Supported?

so looks like we have to endure another year for the official fix. this is kinda painful hahaha

Activity icon

Replied to Date For When Laravel Mix Would Official Release A Version With Webpack 5 Fully Supported?

I'm just currently not using the extract(['vue']) but app.js file size is kinda big (Mix v5).

I do have a solution for those who are waiting for this.

using Mix v2

package.json file

"devDependencies": {
    "axios": "^0.19",
    "babel-plugin-syntax-dynamic-import": "^6.18.0",
    "bootstrap": "^4.5.0",
    "cross-env": "^7.0",
    "jquery": "^3.5.1",
    "laravel-mix": "^2.0",
    "lodash": "^4.17.13",
    "popper.js": "^1.12",
    "vue": "^2.6.10",
    "vue-router": "^3.3.2",
    "vue-template-compiler": "^2.6.10",
    "vuex": "^3.4.0"
}

.babelrc file on your root project

{
  "plugins": ["syntax-dynamic-import"]
}

webpack.mix.js file

const mix = require('laravel-mix');

mix.js('resources/js/app.js', 'public/js')
    .sass('resources/sass/app.scss', 'public/css')
    .extract([
        'vue'
    ]);

if (mix.inProduction()) {
    mix.version();
}

mix.disableNotifications();

on your app.js file, make sure to remove .default when declaring a component like this

FROM Vue.component('example-component', require('./components/ExampleComponent.vue').default);

tO Vue.component('example-component', require('./components/ExampleComponent.vue'));

Aug
14
2 months ago
Activity icon

Replied to What Does Mean "100 Max Connections" In Pusher Free Plan

If I understand this completely regarding their free plan of 100 concurrent connections. Meaning you can only have a maximum of 100 users online at the same time? wouldn't that be like a VERY VERY VERY small amount of users? even their Growth Plus could only handle 30k users online at the same time? what if you have 100k online at the same time?

OR

What the concurrent connection means is that 1 Channel whether Private/Public/Presence could have a maximum of 100 users able to join that said Channel. So what this means is that you can have unlimited users online but every Channel could only handle a maximum of 100 users able to join it.

their explanation regarding concurrent connection is very confusing.

I'm curious cause I have never used Pusher but I'm planning to use it for a small project. I'm used to using Redis and Socket.io as my driver for real-time for the past 3 years.

Activity icon

Started a new Conversation Date For When Laravel Mix Would Official Release A Version With Webpack 5 Fully Supported?

I was wondering if anyone knows when is the release date of Mix with full support for Webpack v5, because until now the extract(['vue']) is still producing app.css with a 0-byte file.

Does anyone have an easy solution for this?

Activity icon

Replied to Connect Laravel With Firebase Real Time Database

Just be honest that you own the site, people would appreciate it better.

Jun
19
4 months ago
Activity icon

Replied to Migration Polymorphic Relationships Doesn't Create Indexes When It Doesn't Reach Index Character Limit

To test it just create two tables with one table that has a long name to reach the index character limit.

Activity icon

Started a new Conversation Migration Polymorphic Relationships Doesn't Create Indexes When It Doesn't Reach Index Character Limit

Laravel V6.X

I just noticed that when you have a polymorphic relationship that DOESN'T hit the index character limit. it doesn't create an index.

FOR EXAMPLE, I have two tables named tags and comments

IN REALITY BOTH HAVE INDEXES THIS IS JUST AN EXAMPLE

tags migration has this (DOESN'T HAVE AN INDEX)

$table->morps('taggable', 'taggable_index');
// DOESN'T HAVE INDEXES because it didn't reach the index character limit.

comments migration has this (THIS HAS AN INDEX)

$table->morps('commentable', 'commentable_index');
// HAS INDEXES because it reached the index character limit.

index name is `commentable_index`
referring to `commentable_id` and `commentable_type` columns.

my real tables are stock_requests (has index) and stock_transfers (doesn't has index)

MySQL Workbench and PHPMyAdmin UI both show the same result when looking into the Indexes.

is this normal? that polymorphic column that doesn't reach index character limit doesn't have indexes?

Activity icon

Replied to What's The Best Online Payment Service? Stripe, Paddle, Or Mollie?

Probably the support for different countries, the ease of setting it up, service support, customization and etc.

I see that Stripe doesn't support my country. so that's out of the way now lol

Mollie does support my country but it needs a company registration first which SUCKS.

I don't know with paddle yet though.

Activity icon

Replied to What's The Best Online Payment Service? Stripe, Paddle, Or Mollie?

Paypal is asking a bit too much as of the moment. so I'm looking for a different Payment Method.

Could you give me a tip on how to implement Paypal?

Jun
16
4 months ago
Activity icon

Commented on Stripe Checkout

I agree they need to update this, together with Mollie and Paddle too.

Activity icon

Started a new Conversation What's The Best Online Payment Service? Stripe, Paddle, Or Mollie?

Does anyone know what's the best service or driver for Online Payments, Subscriptions, and One-time Payment?

I wanted to know if anyone has tried all 3 and can give me good feedback regarding the 3 services? especially if you're serving multiple currencies.

Jun
01
4 months ago
Activity icon

Commented on String Calculator Kata

I agree with you on that one, or he could just mention that they need to import the classes above if their IDE doesn't have auto import.

May
18
5 months ago
Activity icon

Replied to Laravel How To Clear Instances On Queue:work

Hi Alexsun, no not clearing jobs from the queue, but rather clearing the singleton instances on the framework.

Activity icon

Replied to Laravel How To Clear Instances On Queue:work

we'll apparently the creator added some code and the code is just updating the instance with the correct values, apparently he's the only person who knows the system in and out.

We could've done that but we aren't familiar with what Classes to use or what, and it's poorly coded though with inconsistent naming for variables and etc which makes it even harder to understand (sigh).

this was fixed just today, but I'm still interested in how to do what I asked here for future reference.