skip to Main Content

laravel error: curl_setopt(): Unable to create temporary file

I am trying to create a laravel project, but this error is popping out: Creating a "laravel/laravel" project at "./firstProject" In CurlDownloader.php line 197: curl_setopt(): Unable to create temporary file. create-project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--repository REPOSITORY] [--repository-url…

VIEW QUESTION

Laravel Eloquent: Create custom attribute from subquery

Modal: Subscription.php class Subscription extends Model { use HasFactory; public function payments(): HasMany { return $this->hasMany(SubscriptionPayment::class, 'sub_id'); } public function totalDurationDays(): Attribute { return Attribute::make( get: fn() => $this->payments()->sum('duration_days') )->shouldCache(); } } Controller: SubscriptionController.php $subs = SharedServer::from('subscriptions AS ss') ->select(…

VIEW QUESTION
Back To Top
Search