Category : laravel-8

I would like to integrate stripe to my laravel 8 project. But the composer always removes fideloper during the installation process (composer require stripe/stripe-php). And this leads to an erro: In Application.php line 735: Class FideloperProxyTrustedProxyServiceProvider" not found when trying to start laravel. What could I do? Sourc..

Read more

I have an application where users can control their properties and leases. These are the relationships defined: //Team.php /** * A team can have many properties. */ public function properties(): { return $this->hasMany(Property::class); } //Property.php /** * A property can have many leases. */ public function leases(): { return $this->hasMany(Lease::class); } As you can see ..

Read more

How do I write this in Laravel to get the query below to work? Working Query: select fname, lname, title, case when picture IS NULL then ‘https://www.aaa.com/images/interior/bench2.jpg’ else ‘https://www..aaa.com/images/staff/’ + REVERSE(LEFT(REVERSE(picture), CHARINDEX(‘/’,REVERSE(picture)) – 1)) end as picture from Staff One of my many tries $faculties = DB::table(‘tblFaculty’)-> select( [‘Fname’, ‘Lname’, ‘title’, DB::raw(‘(case when picture IS ..

Read more