fylzero

Member Since 6 Years Ago

Chicago, IL

Experience Points
302,810
Total
Experience

0 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
1971
Lessons
Completed
Best Reply Awards
146
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.

  • Community Pillar

    Earned once your experience points ranks in the top 10 of all Laracasts users.

Level 50
302,810 XP
Apr
17
13 hours ago
Activity icon

Replied to RelatedSameModel Relationship

@croftcoder I could be wrong, but 4 things here for scope. 1. You shouldn't need to specify the table since you are scoping to the posts table already in the model. 2. I would not use get() or collection functions on a scope. The idea is that this is a query scope so you can utilize get() after calling this with Eloquent. 3. I'm not sure what unique is doing for you here without defining a key. I'd guess that is just running on id, which should not have any overlap anyway. 4. I would not reuse the word posts in your scope.

class Post {
    public function scopeRelated($query) {
        return $query->where('id', '<>', $id);
    }
}

// Then call like...
Post::related()->get();

You want to avoid using get because maybe you'll want to use count() - Post::related()->count() or some other chaining method before calling get.

Apr
15
2 days ago
Activity icon

Replied to Jetstream Upgrade To V 2

@willjohnathan What you could try, kind of a pain but might help find the problem. Create a fresh Jetstream 2 project and then git init / add / commit. Then copy the repo you want to upgrade over the files of the fresh repo. What this will do is allow you to git diff, VS Code/GitLens make this really easy, to see everything that is different between the repo. That should help you find anything that the upgrade instructions or you may have missed.

Activity icon

Replied to VUE OnChange Function Not Working

@felicia00 Try changing the method name to something other than onChange. Just guessing this could be an issue / maybe a magic word in Js. Try v-on:change="getDropdownParams" ...or something that makes sense her.

Activity icon

Replied to RelatedSameModel Relationship

@croftcoder This completely depends on what the criteria is that you're using for related posts. This could maybe be a local query scope or just a method that returns a query. Plenty of ways to do this but it depends on how you are defining what a related post is.

Activity icon

Awarded Best Reply on Seeding - Laravel Model Factories With 3 Level Relationship

@oliverbusk You should really name your relationships according to your models so you don't wind up with confusing nomenclature across the app.

Could just do something like this...

$property = Property::factory()->create();

$lease = Lease::factory()->create([
    'property_id' => $property->id,
]);

$invoice = Invoice::factory()->count(5)->create([
    'lease_id' => $lease->id,
]);

Or you could even just create new data from your factories...

return [
    'lease_id' => Lease::factory(),
    'tax' => 0,
    'total' => 25000,
];
Apr
10
1 week ago
Activity icon

Replied to Seeding - Laravel Model Factories With 3 Level Relationship

@oliverbusk Totally ignore that part. I read it closer and I see what you're doing. You were listing the Model filename and for some reason my brain read that as that was the model you were trying to define the relationship for. Having lines then InvoiceLine at a glance added to that confusion... but your structure makes sense here.

Apr
09
1 week ago
Activity icon

Replied to Seeding - Laravel Model Factories With 3 Level Relationship

@oliverbusk You should really name your relationships according to your models so you don't wind up with confusing nomenclature across the app.

Could just do something like this...

$property = Property::factory()->create();

$lease = Lease::factory()->create([
    'property_id' => $property->id,
]);

$invoice = Invoice::factory()->count(5)->create([
    'lease_id' => $lease->id,
]);

Or you could even just create new data from your factories...

return [
    'lease_id' => Lease::factory(),
    'tax' => 0,
    'total' => 25000,
];
Activity icon

Awarded Best Reply on Laravel Charts With Query Builder

@rafaeladi get() will return a collection, so you'd need to turn that into an array.

$total_test = DB::table('test_executions as e')
    ->where('e.case_id','1')
	->get()
    ->toArray();
Apr
08
1 week ago
Activity icon

Replied to Laravel Charts With Query Builder

@rafaeladi get() will return a collection, so you'd need to turn that into an array.

$total_test = DB::table('test_executions as e')
    ->where('e.case_id','1')
	->get()
    ->toArray();
Apr
04
1 week ago
Activity icon

Replied to Authentication Via Email With Laravel Sanctum

@mecjos How do you plan to authenticate a user... who is not a user?

It sounds like you may be talking about password-less authentication, but even that would require registration and I don't think it is possible based on zero responses to my other question here:

https://laracasts.com/discuss/channels/laravel/is-it-possible-to-login-with-sanctum-programmatically

Activity icon

Replied to Laravel Vapor Costs

@miguellima Depending on what services and scale your app needs, between $50 to a few thousand dollars a month. Ideally your app should scale revenue with increased usage and your costs should be a fraction of your revenue that will both grow together.

https://usefathom.com/blog/vapor-one-year

https://divinglaravel.com/cost-performance-optimization-in-laravel-vapor

Also to keep costs low, consider adding protection from DDoS:

https://laracasts.com/discuss/channels/vapor/how-do-you-protect-vapor-from-ddos-spin-ups

An un-checked DDoS attack on a serverless structure can cost a ton of money.

If you plan to use a scalable database, those can also cost a bit extra.

Apr
02
2 weeks ago
Activity icon

Replied to Laravel Charts With Query Builder

@rafaeladi Try using static labels and a static data set. This should tell you if the problem is Laravel charts or something else.

Is there any type of stack trace telling you what is throwing that error?

Activity icon

Replied to Laravel Route Api.php

@david001 If you're using Vue, you'll need to setup Sanctum to properly auth your SPA to your api routes. Otherwise you'd need to pass a Bearer token in your axios call. If you don't want to use Sanctum you could just rely on regular auth and use web.php for your SPA routes.

Activity icon

Replied to List Model Send By @body Retrofit To Laravel Backend,

@jesulo Maybe try foreach ($request->all() as $val) {

Thinking you're trying to loop the entire request, not just the values you're passing.

Apr
01
2 weeks ago
Activity icon

Awarded Best Reply on Custom Type Of Tenancy Setup.

@stank0v01 Do you have a master table that holds the tenants/districts/building/whatever then you want to use that to connect to the tenant table? It sounds like you're hitting a chicken-or-egg problem of steering tenancy based on table data. Unless you have SSO or some additional table driving the source of truth on tenancy then steer that based on domain or post-login, that's going to be a challenge.

Single db multi-tenancy using global scoping is generally a better way to go. Just mentioning that... but if you are steering tenancy based on a table I'd kind of recommend using a domain to make that easier. Otherwise post-login session steering is maybe the way to go. Idk, this sounds a little over-engineered if I am being totally honest.

Maybe just use https://spatie.be/docs/laravel-multitenancy/v2/installation/using-multiple-databases

Is there a reason you can't use a subdomain with the building name slugged as an identifier?

Activity icon

Started a new Conversation Is It Possible To Login With Sanctum Programmatically?

I'm working with a legacy SSO system that authenticates to a service then redirects to Laravel (currently using Laravel/UI scaffolding) and logs the user in that is passed from the auth service.

Now the goal is to build an SPA and I'm wondering if this same pattern would be possible for Sanctum SPA auth. I'm not sure if this is possible and/or secure for that matter?

I'm imagining instead of using redirects, the SPA would have to call the auth service, auth, then Guzzle the auth token from the app and return that as a response in the same way Sanctum does.

If anyone has any thoughts, other suggestions, or just thinks I'm way off base, please let me know.

Additional Note: Since this app will not be a monolith - the SPA will be a separate VueCLI app, I need to do this with Sanctum API auth or the Mobile auth pattern.

Activity icon

Replied to Laravel Charts With Query Builder

@rafaeladi I looked at the package briefly and it seems like this uses Chartisan under the hood. Which is basically a Library, called similarly to a facade. I'm not sure if that syntax is what is tripping you up or if you actually mean the data. You can populate the data using Eloquent or QueryBuilder.

public function handler(Request $request): Chartisan
{
    $data = DB::table('whatever')->pluck('column_with_numbers');

    return Chartisan::build()
        ->labels(['First', 'Second', 'Third'])
        ->dataset('Sample', $data->toArray());
}

Obviously keeping this example very simple... but you can grab labels dynamically if needed... pretty much do whatever you need to. Hope this helps.

Activity icon

Replied to Why Laravel 8 Is Burning So High Memory In Each Request?

@danimohamadnejad It probably will be a problem eventually but this function isn't going to accurately give you feedback on server load.

1GB of RAM isn't a lot to add scale. This is why you need to scale up servers as your app grows or use something like Vapor that auto-scales.

I would also look into installing Laravel Debugbar and see what that says about your memory / models / sql to see where you can add more efficiency.

Activity icon

Awarded Best Reply on Spattie Roles/permissions Quesiton

@user1980 The truth is you have flexibility here and having the same protection in two places doesn't hurt anything. Generally I prefer to have middleware protection specified in the route files. I just feel like it is easier to see/understand that way. ...but the same argument could be made that having it in the controller is "cleaner" and more tucked away. As I said, my personal preference is to just have these things in the route files. Hope that helps!

Mar
31
2 weeks ago
Activity icon

Replied to Vapor Deployment Size Is Too Big

Docker based runtimes allow you to package and deploy applications up to 10GB in size

https://docs.vapor.build/1.0/projects/environments.html#runtime

Activity icon

Replied to Redirecting To An External URL From A POST Request

@rapido Posting to a get route isn't going to work. You'd have to change the route to use Route::post for this to work.

Activity icon

Replied to Spattie Roles/permissions Quesiton

That's an interesting consideration I wasn't thinking about initially. Even with resource routes you have the choice to unwind those and add middleware to each route... annnnd... these are the type of code style guide decisions that kill our souls. lol

Activity icon

Replied to Spattie Roles/permissions Quesiton

@user1980 The truth is you have flexibility here and having the same protection in two places doesn't hurt anything. Generally I prefer to have middleware protection specified in the route files. I just feel like it is easier to see/understand that way. ...but the same argument could be made that having it in the controller is "cleaner" and more tucked away. As I said, my personal preference is to just have these things in the route files. Hope that helps!

Activity icon

Replied to Custom Type Of Tenancy Setup.

@stank0v01 Do you have a master table that holds the tenants/districts/building/whatever then you want to use that to connect to the tenant table? It sounds like you're hitting a chicken-or-egg problem of steering tenancy based on table data. Unless you have SSO or some additional table driving the source of truth on tenancy then steer that based on domain or post-login, that's going to be a challenge.

Single db multi-tenancy using global scoping is generally a better way to go. Just mentioning that... but if you are steering tenancy based on a table I'd kind of recommend using a domain to make that easier. Otherwise post-login session steering is maybe the way to go. Idk, this sounds a little over-engineered if I am being totally honest.

Maybe just use https://spatie.be/docs/laravel-multitenancy/v2/installation/using-multiple-databases

Is there a reason you can't use a subdomain with the building name slugged as an identifier?

Activity icon

Replied to Laravel/ui Error Despite Correct Installation

@denewey Have you run composer install since modifying the composer.json file? I would give that a shot then try again.

Mar
30
2 weeks ago
Activity icon

Replied to Please Help...Cannot Access Database In My M1 Machine (after 2 Days)

@dreamlist Try sudo mysql.server start. I've run into this before and that fixed it for me.

Mar
29
2 weeks ago
Activity icon

Replied to Redirecting To An External URL From A POST Request

@rapido See my previous response (below). Your syntax is correct. Try this with a new route.

Route::get('testing123', function() {
    return redirect()->away('https://www.google.com');
});

If that works, you have another issue. Maybe using a programmatic magic word somewhere?

https://laracasts.com/discuss/channels/laravel/redirect-to-external-url-in-controller-not-working

Mar
27
3 weeks ago
Activity icon

Replied to Lumen Vs Sanctum Vs Passport

@liama Unless you know your eventual product roadmap will call for something, I would not just pull random things in that might get used someday. Yes, technical debt is real... but, so is over-engineering.

That said, absolutely... you could always use Sanctum now and tear it out / replace it with Passport later.

If you ever need to do this, one trick I would use is creating a fresh Laravel install, Git init/commit the project, then install Sanctum. By doing this you can look in, for example, VS Code's source control and see the diffs of everything you'd need to walk back to uninstall it.

Sanctum is pretty much a composer package, a config, a migration, and a middleware entry in the Kernel file. It is not exceedingly difficult to remove from a project.

Mar
26
3 weeks ago
Activity icon

Replied to Lumen Vs Sanctum Vs Passport

@liama There really aren't multiple examples of what I'm describing.

Passport/Oauth2 basically gives your application the API and interface to allow users to create access tokens that allow third-party apps to communicate with the API of your Laravel application. So unless cross-application access is something you need, you can pretty much skip using Passport.

Definitely watch the Laracast video on Passport to gain a better understanding of what this does. Taylor Otwell actually connects two laravel apps using it in this video. https://laracasts.com/series/whats-new-in-laravel-5-3/episodes/13

The truth is, Passport is a bit complex because Oauth2 is complex. The Laravel docs certainly assume anyone using Passport has a solid foundational knowledge of Oauth2 imo. Without that, you won't have an understanding of what the terminology is around grant types, etc.

Sanctum is much simpler. It allows you to properly auth your SPA and create tokens for your API. That's really all it does. I say properly because up until Sanctum was released I would often see applications being created that just relied on logging a user in through Blade views then relying on web routes for the SPA code. This comes with a few challenges that Jess Archer laid out nicely in a Laracon talk (almost right before Sanctum was really a thing / released). https://www.youtube.com/watch?v=Zv4bUXEwl20

Mar
23
3 weeks ago
Activity icon

Replied to Does Polymorph "scale"? Honest Question.

@jlrdw I mean, polymorphic tables are certainly cleaner in the database. The example used in the docs shows 2 examples, one with users, posts and images (images being the poly table) where you can avoid having user_images and post_images tables and just have an images table that handles both cases. The second example shows posts, videos and comments (comments being the poly table) where you can avoid needing a post_comments and video_comments table in favor of a single comments table.

All of that said, I'm not clear on what you mean by "it is more efficient to query a table directly". Do you mean by not using a relationship at all? Or did you mean something else?

Either way, this doesn't really get to the core of my question which is simply - has anyone run into database performance issues with large polymorphic tables/relationships? This is something I hear other developers trying to make a case for. I don't really see how they could be horribly inefficient, especially with a composite index that prioritizes the type/model first. I could see them being slightly slower, but I'm curious if anyone has experience with this at significant scale or if anyone has done load tests on polymorphic tables.

Activity icon

Started a new Conversation Does Polymorph "scale"? Honest Question.

Wondering what the consensus is on using polymorphic table/relationships at scale?

Does this cause major performance issues?

I already know you can use the morphs() migration helper, which automatically creates a composite index on the polymorph table... something that everyone should use ,if you are not, on poly tables imo btw.

I've had a couple conversations at work about this and I keep running into "this is a bad pattern / will slow down at scale".

I am not an expert on such things and wanted to float the question out there to hear thoughts and opinions that either give me a better argument in-favor of or change my mind against using them on large-scale projects.

Please let me know your thoughts!

Mar
18
4 weeks ago
Activity icon

Awarded Best Reply on Package Recommendation For Vue 2.6 - Check Dirty State In Forms

I just did this manually and it isn't too bad... you need json stringify/parse to keep the object from tracking changes. If you try this and remove that, you'll see what I mean.

A little verbose (probably) but this does the trick. Tracks individual, section, and all state changes.

state: {
    thing: {},
    originalThing: {},
},
mutations: {
    reset(state) {
        state.thing = state.originalThing;
        state.originalThing = JSON.parse(JSON.stringify(state.thing));
    },
    setThing(state, thing) {
        state.thing = thing;
    },
    setOriginalThing(state, thing) {
        // Using parse/stringify as a hack to lock the original state in place.
        state.originalThing = JSON.parse(JSON.stringify(thing));
    },
},
actions: {
    async pullData({ commit }, id) {
        const thing = await axios
            .get(`/api/thing/${id}`)
            .catch((error) => console.log(error.response));

        commit('setThing', thing.data);
        commit('setOriginalThing', thing.data);
    },
},
getters: {
    thing(state) {
        return state.thing;
    },
    originalThing(state) {
        return state.originalThing;
    },
    isDirty(state) {
        // Fields
        const thingName = state.thing.name != state.originalThing.name;
        const thingDescription = state.thing.description != state.originalThing.description;

        // Sections
        const infoSection = !![
            thingName,
        ].includes(true);

        // Any Section
        const anySection = !![
            infoSection,
        ].includes(true);

        return {
            infoSection,
            anySection,
        };
    },
},

Activity icon

Replied to Package Recommendation For Vue 2.6 - Check Dirty State In Forms

I just did this manually and it isn't too bad... you need json stringify/parse to keep the object from tracking changes. If you try this and remove that, you'll see what I mean.

A little verbose (probably) but this does the trick. Tracks individual, section, and all state changes.

state: {
    thing: {},
    originalThing: {},
},
mutations: {
    reset(state) {
        state.thing = state.originalThing;
        state.originalThing = JSON.parse(JSON.stringify(state.thing));
    },
    setThing(state, thing) {
        state.thing = thing;
    },
    setOriginalThing(state, thing) {
        // Using parse/stringify as a hack to lock the original state in place.
        state.originalThing = JSON.parse(JSON.stringify(thing));
    },
},
actions: {
    async pullData({ commit }, id) {
        const thing = await axios
            .get(`/api/thing/${id}`)
            .catch((error) => console.log(error.response));

        commit('setThing', thing.data);
        commit('setOriginalThing', thing.data);
    },
},
getters: {
    thing(state) {
        return state.thing;
    },
    originalThing(state) {
        return state.originalThing;
    },
    isDirty(state) {
        // Fields
        const thingName = state.thing.name != state.originalThing.name;
        const thingDescription = state.thing.description != state.originalThing.description;

        // Sections
        const infoSection = !![
            thingName,
        ].includes(true);

        // Any Section
        const anySection = !![
            infoSection,
        ].includes(true);

        return {
            infoSection,
            anySection,
        };
    },
},

Mar
16
1 month ago
Activity icon

Started a new Conversation Package Recommendation For Vue 2.6 - Check Dirty State In Forms

Using Vue 2.6 with VueX w/ modules...

is there a package that helps handle keeping track of dirty (modified from original) state?

Working on a manual implementation currently. Wondering if anyone knows a better way to go?

Mar
07
1 month ago
Activity icon

Replied to Get Attribute Inside Model?

@mulugu Generally, yes... there really isn't enough info/context provided here to know what is going on.

Polymorph setup for Laravel usually will not have a simple type column. It is typically set up with an imageable_type or whatever + _type.

You're not wrong that typically $this->column should work in a model... but this is maybe trying to override an existing function, it doesn't seem to be using the standard Laravel polymorph data recommendations... unless the context is trying to override the way types are stored? (and if that's the case, I'd really like to know why)

Mar
06
1 month ago
Activity icon

Replied to Get Attribute Inside Model?

@panthro getMorphClass() is already a method used to get the alias for the class of the related model.

Example:

$alias = $post->getMorphClass();

$class = Relation::getMorphedModel($alias);

If you just want the type you can reach directly for the *_type. So if you have an Image model with an imageable_type in the table just do Model::first()->image->imageable_type or Image::find(1)->imageable_type.

Activity icon

Replied to How To Refresh Bearer Token In Laravel Sanctum

@darkec I have seen videos where it is recommended to set session expiration in an SPA app to like 30 days. You can also set Axios to use an interceptor on status 419 to refresh the page or direct to login. Check YouTube for Jess Archer's Laracon video about how this works.

https://youtu.be/Zv4bUXEwl20

Feb
27
1 month ago
Activity icon

Awarded Best Reply on How Do Emit To V-model In Vue 3?

Finally figured this out... was missing emits.

$emit('update:search', $event.target.value)

<script>
export default {
  emits: ['update:search'],
  setup () {


    return {}
  }
}
</script>

<search v-model:search="search" />
Activity icon

Replied to How Do Emit To V-model In Vue 3?

Finally figured this out... was missing emits.

$emit('update:search', $event.target.value)

<script>
export default {
  emits: ['update:search'],
  setup () {


    return {}
  }
}
</script>

<search v-model:search="search" />
Activity icon

Started a new Conversation How Do Emit To V-model In Vue 3?

I can't seem to figure this extremely simple thing out.

In Vue 2, you can emit from a child component directly to the v-model. How do you do this in Vue 3?

$emit('input', $event.target.value)

<thing v-model="whatever" />

https://v3.vuejs.org/guide/migration/v-model.html#using-v-bind-sync

<ChildComponent v-model="pageTitle" />

<!-- would be shorthand for: -->

<ChildComponent
  :modelValue="pageTitle"
  @update:modelValue="pageTitle = $event"
/>

This would lead me to believe the syntax for this would be:

$emit('update:modelValue', $event.target.value)

...but it doesn't work. What am I doing wrong here? Super new to Vue 3.

Activity icon

Replied to Vapor Deployment Size Is Too Big

@nolannordlund You should check out the Laravel YouTube channel series about Vapor. Somewhere in there they talk about size limits for artifacts and how to get around that with Docker containers.

https://youtu.be/4WvRChmRhDo

Feb
25
1 month ago
Activity icon

Replied to MySQL Or Eloquent

@tovisbratsburg Eloquent ORM gives more expressive syntax to access relationships, scope data, or access mutated attributes. You also get the benefits of casting, automated timestamps, etc. There are a lot of benefits of using an ORM. That said, they can cause a performance hit in some cases (usually only a concern at significant scale).

Feb
23
1 month ago
Activity icon

Replied to Can We Use Vue Js And Components Building Between The Laravel Project?

I misunderstood your question I think. I was interpreting as you wanted to use components between multiple projects.

Feb
21
1 month ago
Activity icon

Replied to Can We Use Vue Js And Components Building Between The Laravel Project?

@yanikkumar One thing we've done at my company is stand up a private npm repo for shared Vue components. This has been working out great, keeps things DRY and aligned between projects.

Feb
17
2 months ago
Activity icon

Replied to What Is The Best Practice For Using Traits?

@abdobargush This is actually the perfect case for a polymorphic relationship. It doesn't add much database complexity. In fact it should simplify things quite a bit as you'll only need a single table instead of a column on multiple tables to drive this. You should really look into / consider this approach.

Feb
15
2 months ago
Activity icon

Replied to Laravel PHPUnit Tests Running VERY Slow On Apple Silicon?

@mumbaiman I also have the M1 mac and haven't noticed an issue. One thing I can say is consider running your tests in parallel to save some time?

https://laravel.com/docs/8.x/testing#running-tests-in-parallel

Activity icon

Replied to Is It Possible To Programmatically Navigate To A Nested Route? (Vue Router)

@martinbean Using router push to a path does not work with nested routes... thus why your search was so easy. ;)

Activity icon

Replied to Careful, Laravel Commands Are Not Careful

@martinbean Based on this comment and Dries comment on the PR, I actually closed it out.

The first step of installing Breeze is to create a new Laravel application.

This was simply a failure to follow instructions without a safety net.

Activity icon

Replied to Careful, Laravel Commands Are Not Careful

@niran I submitted a PR to the Laravel documentation.

https://github.com/laravel/docs/pull/6834/commits/ac80d49c4384502948384334e9c5b7824da23748

This probably should be on there, that's fair to say...

With that said... not backing up your project or running a version control system, then installing any kind of package is just begging for a catastrophic problem. I would suggest you reflect on that and fix your process so that doesn't happen again.

I would also strongly urge you to be more respectful to people who are creating these tools that you benefit from. There are MANY pitfalls of programming that do not hold your hand or warn you. Pretty much every dev at some point has run a rm -rf or dropped tables they didn't mean to. You learn from it and you grow if you own the responsibility for it.