Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

shahr's avatar
Level 10

laravel 7 php artisan optimize is not working

I have installed laravel 7 on my local server. When I run php artisan optimize command then laravel returns the error:

error

0 likes
40 replies
automica's avatar

@oxbir why would you want to run php artisan optimize on your localhost?

Its the last place you need to optimise your codebase.

automica's avatar
automica
Best Answer
Level 54

just run php artisan optimize:clear

2 likes
shahr's avatar
Level 10

@automica - thanks

But one question: Does php artisan optimize no longer exist in Laravel 7?

automica's avatar

its part of laravel 7. But if you are getting an error you need to address what the error says to proceed.

shahr's avatar
Level 10

@automica

Okay, my goal was to cache the routes. When I do this, I get an error later.

cache

shahr's avatar
Level 10

@michaloravec

You do not have sleep and life?

Hey, you sit around the forum 24 hours a day

shahr's avatar
Level 10

What do they know? I do not know at all what is your problem with me?

I swear to God. I need this forum.

MichalOravec's avatar

@oxbir The answer for

Please write in capital letters 1 plus the square root of 25

is?

sr57's avatar

Still no answer to this question, @oxbir should a little bit lazy or ... tired :-)

shahr's avatar
Level 10

What is this now? Is this a question? Is it math? Is.............

shahr's avatar
Level 10

Okay, I agree, I'm sorry, it won't happen again. I'm getting embarrassed.

MichalOravec's avatar

You're right, it will never happen again.

This was your last thread...

shahr's avatar
Level 10

I said it will not be repeated. I was wrong.

Please write in capital letters 1 plus the square root of 25

َAnswer SIX or 6

shahr's avatar
Level 10

I swear to God. I need this forum.

I swear to God. I need this forum.

I swear to God. I need this forum.

I swear to God. I need this forum.

I swear to God. I need this forum.

I swear to God. I need this forum.

I swear to God. I need this forum.

I swear to God. I need this forum.

MichalOravec's avatar

That's your problem...

You don't have time to learn, we don't have time to help you.

By the way don't try to create another account...

shahr's avatar
Level 10

What should I do? Forgive me? My mouth is serviced. I am stressed. I am sad.

MichalOravec's avatar

What should I do?

Use stackoverflow...

It's time to say good bye.

Snapey's avatar

You know you can just create a new account... but when you do, so that we don't notice it is you, please THINK about the problem. Read the error messages, google for a solution, try a few things then when you have tried, you can write a question that explains what you have tried and what you don't understand.

Meanwhile hope that your employer does not come across this thread (or the others)

shahr's avatar
Level 10

@snapey

OK, I just don't know, @michaloravec what the problem is with me? When I ask, hides my account.

I get upset when he does that. My heart breaks, I curse.

Next

Please or to participate in this conversation.