Armanhozyn's avatar

Armanhozyn wrote a comment+100 XP

1d ago

In the TicketController Replace method You are not Checking If the author Id Exists or not, You should handle the exception for the data.relationships.author.data.id already exists or not?

` public function replace(ReplaceTicketRequest $request, $ticket_id) { // PUT try { $ticket = Ticket::findOrFail($ticket_id);

        $model = [
            'title' => $request->input('data.attributes.title'),
            'description' => $request->input('data.attributes.description'),
            'status' => $request->input('data.attributes.status'),
            'user_id' => $request->input('data.relationships.author.data.id')
        ];

        $ticket->update($model);

        return new TicketResource($ticket);
    } catch (ModelNotFoundException $exception) {
        return $this->error('Ticket cannot be found.', 404);
    }
}

`

Armanhozyn's avatar

Armanhozyn wrote a comment+100 XP

1w ago

Its been long consistent journey for me, Thank you very much for the course, I wish you very best in your life.

Thanks again.

Armanhozyn's avatar

Armanhozyn wrote a comment+100 XP

1w ago

@shrustam When we run php artisan migrate:fresh --seed

Seeder fails with Database query because html column never been passed to database.

Because we use WithoutModelEvents In our DatabaseSeeder, So Seeder wont execute your booted method events from you Post Model.

So If that booted method doesn't execute, Database query will fail cz It wont fill the html column to the array for database so you will get sql default error that Html doesn't have any default value.

  use WithoutModelEvents;

So quick fix is in your factory update the array with html as well, So that it pass the correct array to the database.

 public function definition(): array
    {
        + $body = fake()->realText(600);
        return [
            'user_id' => User::factory(),
            'title' => str(fake()->sentence)->beforeLast('.')->title(),
            'body' => $body ,
			
           	+'html' => str($body)->trim()->markdown()
			
        ];
    }

    public function withFixture(): static
    {
        $posts = static::getFixtures()
            ->map(fn (string $contents) => str($contents)->explode("\n", 2))
            ->map(fn (Collection $parts) => [
                'title' => str($parts[0])->trim()->after('# '),
                'body' => str($parts[1])->trim(),
                + 'html' => str($parts[1])->trim()->markdown()
            ]);

        return $this->sequence(...$posts);
    }
Armanhozyn's avatar

Armanhozyn liked a comment+100 XP

2w ago

80% of the work takes 20% of the time. The other 20% of the work takes 80% of the time.

What you are saying to me is that you have 5-10% of your project complete by AI, by stating that 90-95% of the goals are met, which is the easy stuff, and what about the other 5-10%?

Who is going to spend the rest of the 90-95% of the time that still needs to be done?

Armanhozyn's avatar

Armanhozyn liked a comment+100 XP

2w ago

This answer I know will do no good, but when using AI it should be to assist, refactor and things like that. You should know how to already code the stuff if there was no AI. And authorization and authentication should not be done by AI.

But not saying you will, but there are people all over the World who will use AI the wrong way.

I recently used AI to help refactor some python code. But I know the math and can identify if all is correct.

Armanhozyn's avatar

Armanhozyn liked a comment+100 XP

2w ago

If you're serious I would chill and watch the courses. But you need a path you want to go down, usually which front end you're using is the big question.

I'd follow the courses. I wasted Hella time not watching 😞

Armanhozyn's avatar

Armanhozyn liked a comment+100 XP

2w ago

Sure it's worth learning all courses.

The AI doesn't replace you, it's just a collaborator.

You are the architect, you know what you exactly want and you ask the AI to do that.

If you don't know what you want, the AI can only imagine what to do.

For now, the AI isn't able to develop a proper scalable application with all security concerns.

Armanhozyn's avatar

Armanhozyn liked a comment+100 XP

2w ago

I understand your opinion.

Well ... some years in the past, calculators have been created ... and accounting softwares too.

But you still need to have an accountant.

Armanhozyn's avatar

Armanhozyn liked a comment+100 XP

2w ago

As of today, I believe it is still worthwhile to learn coding yourself. We still have to understand, review and request changes or refactoring to works done by AI.

There are still a lot of concerns regarding security and code quality with AI.

Armanhozyn's avatar

Armanhozyn wrote a reply+100 XP

2w ago

For now, the AI isn't able to develop a proper scalable application with all security concerns.

This is my whole point, Few years back AI couldn't solve programming issues efficiently, But now its doing with guidelines etc. or with proper prompt mabe.

As if now its not capable to do proper scalable application, What if It can after 3 or 4 month, That client doesn't needs to hire any developer, They just prompt about their idea and AI can make scalable proper application with all the security concerns. and Mabe client can also test every security concerns and Mabe client can also have test "is it really properly developed like a developer would built".

So after learning all these stuff, Client doesn't need to Hire!! he can just prompt his idea and AI is gonna develop it for him.

See I understand core stuffs needs to learn and should have knowledge, But I am talking according to business market.

As If now who have barely knowledge about software can make software with AI Claude etc.

What if a non coder doesn't know anything can also make software which are scalable and with all the secuirity concerns?

SO then We only gonna need developer in very critical problems or on very Large Complex Applications.

Its like where anyone can play football, Only Messi is gonna hired for the FIFA.

Armanhozyn's avatar

Armanhozyn liked a comment+100 XP

2w ago

Then its like waste time to learn all these stuff which can be automated in future.

If it feels like a waste of time to learn what happens under the hood, software development might not be the right career path for you.

Armanhozyn's avatar

Armanhozyn liked a comment+100 XP

2w ago

For AI there no like easy question or hard question, If you ask questions and it runs query from its database and calculate those data and pass it to you.

That's not how an LLM works. It doesn't run queries. It's a stochastic text predictor that produces text one token at a time. It's a pattern completion machine. The appearance of understanding is an illusion.

This is also true, But As if now you can get any kind solution with AI,

No. AI gives you text output. Nothing beyond that is guaranteed.

AI gets things wrong, hallucinates, tries to solve every problem locally rather than globally, etc. Some issues may be solvable with tooling, but some may be fundamentally beyond the capabilities of the current text predictor approach. These LLM's aren't AGI.

Armanhozyn's avatar

Armanhozyn wrote a reply+100 XP

2w ago

OK Now I am confirmed that I need to learn core stuffs and put my time there. Actually in my mind thousand of thoughts are running currently mabe Its lack of my knowledge. While you are defending with these much confidence that means I am on right path.

Thank you for the support I think I got my answer. I think I convinced my mind now.

Armanhozyn's avatar

Armanhozyn wrote a reply+100 XP

2w ago

This is also true, But As if now you can get any kind solution with AI,

I mean you ask any tough questions to AI and it will give you the solution,

For AI there no like easy question or hard question, If you ask questions and it runs query from its database and calculate those data and pass it to you.

Its like Answers based on your question. The more clear question the more easier the solution.

That 20% of hard work can also take 10% of time if you ask properly with clear context to the ai.

Armanhozyn's avatar

Armanhozyn wrote a reply+100 XP

2w ago

True Fact. But in Deep down like, It kinda feels what I gonna do within next 1 hour, Claude Opus 4.6 is doing that properly within 10 min, That is where my fear comes, If somehow it can produce or build software just like a professional developer do. with some GUI, Then its like waste time to learn all these stuff which can be automated in future.

Armanhozyn's avatar

Armanhozyn started a new conversation+100 XP

2w ago

Wait I am not taking about like AI would solve a code problem or fix it. I am talking according to business, If I code an application humanly, Its gonna take too much time, When a non coder who mabe barely knows coding but he Understands how the application works, He make the whole production level application without coding a single line.

So here is my question, Is it worth it to put my all valuable time learning vuejs components structure, Laravel MVC structure, how the code should refactor etc etc? Is it worth it put my value learning all these core stuff where now AI is handling 90% of the these stuff, We just need to tell the feature name or proper prompt.

OK Here is my another analyzation, Suppose I have built Production grade with Just Claude or copilot or mabe Lovable AI prompt, I know I dont know any of code inside what's happening, But the AI generated application is serving my goals perfectly, I mean the features I needed are working perfectly, So why do we need a developer to refactor the code or understand for human ? Because the application is already serving my 95% of the goal. If I need any customization AI is also doing that for that application.

So my whole point is, Is it really worth it to learn the core stuffs? Should I put valuable time on learning these core stuffs? Or should I migrate my self to learning making application with prompt or AI.

I dont know if I am thinking in right way or not, But these questions are in my head like AI already knows why should we learn core stuffs instead I can directly make applications with AI, Ok I understand I can't control the whole codebase but my application would be ready and with AI I can make customization or scale them.

Is it really worth it to learn Core Stuff or Coding? According current situation on earth?

The recent news oracle removed 30000 employee, and investing on AI.

Armanhozyn's avatar

Armanhozyn wrote a reply+100 XP

3w ago

@martinbean

I researched a lot with this, They removed it because, They want to separate policy names with controller methods, Like we need to explicitly tell which controller method should use which policy,

In this way it becomes automatic and in long run this becomes headache to understand which policy applied to which controller method.

Armanhozyn's avatar

Armanhozyn started a new conversation+100 XP

3w ago

In build forum course, I am trying to do this. use Illuminate\Foundation\Auth\Access\AuthorizesRequests;

class CommentController extends Controller use AuthorizesRequests;

public function __construct() { $this->authorizeResource(Comment::class); } }

In my controller, But I am getting this error for this Call to undefined method App\Http\Controllers\CommentController::middleware().

Do you know any alternative way to bind policy with controller? I found that we do it with route middleware method. But I am not sure which is the efficient way, So that it automatically detect my controller methods to my policy method. Just like authorizeResource() method.

Armanhozyn's avatar

Armanhozyn wrote a reply+100 XP

3w ago

First you have to know, How much do u know about Laravel? You can check path option and test you yourself by reading those headline of each course, If you are unfamiliar with the headline, That is the course you need to start from mabe.

Armanhozyn's avatar

Armanhozyn wrote a comment+100 XP

3w ago

We are not sending request->user()->id from the vue how does its saving into database?

Because it should give u this error

Attempt to read property "id" on null for this line of code in the controller, Because we are not sending user from the vue within the request, 'user_id' => $request->user()->id,

How come your video at 2:51 timestamp its adding the comment?