Skip to content
Advertisement

Tag: laravel-5

Downgrade PHP version Laravel 5.8

Is it possible to downgrade Laravel 5.8 PHP version to PHP 5? Searched around for resources yet I can’t find any. I need to downgrade it so that I can upload it to our local ubuntu server. Answer Laravel 5.8 requires PHP >= 7.1.3 because the code written in Laravel Core and in other PHP Libraries required by Laravel uses

Changing navigation and link URLs?

I am new to laravel and this will be inappropriate question. Although I searched I couldn’t find the answer. My project run smoothly with php artisan serve command. I just wanted to remove the artisan command. So I added my project into htdoc folder of XAMPP. Then I changed according to this answer https://stackoverflow.com/a/28799205/3558507 When I run my project by

Why I can not get model?

There are two models: class User extends Authenticatable { public function verifyUser() { return $this->hasOne(‘AppVerifyUser’); } } class VerifyUser extends Model { …

Add days to date in Laravel

I am beginner in Laravel. I use in my project Laravel 5.8. I have this code: How can I add $userPromotionDays to $daysToAdd (in Laravel/Carbon)? Answer You can create date with custom format and then add days to it using carbon. You can see details documentation here.

Advertisement