skip to Main Content

Php versions – Laravel 11 failing with composer install on ubuntu apache2

with composer create-project laravel/laravel project-name failing with an error. Generating optimized autoload files > IlluminateFoundationComposerScripts::postAutoloadDump > @php artisan package:discover --ansi PHP Warning: require(/Documents/project-name/vendor/autoload.php): Failed to open stream: No such file or directory in /Documents/project-name/artisan on line 9 PHP Fatal error:…

VIEW QUESTION

Laravel – PUT method is not supported for route vehiculos/7676729/edit. Supported methods: GET, HEAD

I'm trying to understand PHP Laravel but can't figure out how to make this put operation. Basically I have my db created with artisan and the table for vehiculos is simple. Schema::create('vehiculos', function (Blueprint $table) { $table->string('id')->foreign('idFk')->references('id')->on('clientes')->onDelete('cascade'); $table->string('marca'); $table->string('modelo'); $table->year('anio');…

VIEW QUESTION

Laravel: regenerate cache

I am using cache to store data structure from database: Cache::forever(static::DATA_STRUCTURE, json_encode($tree)); However before I generate there should cleaned old: Artisan::call('cache:clear'); But generating new cache takes some time and I want to store old cache until new will be generated.…

VIEW QUESTION
Back To Top
Search