I have laravel carbon for get start + end of current week : $startofcurrentweek =Carbon::now()->startOfWeek(); //2020-02-17 00:00:00 $endofcurrentweek =Carb
Recently I just realized that Laravel generates a static method with column name when joined in a where clause using camel case example $user = User::whereN
I'm passing variables into the blade from controller. This is my code from controller: $offerConditionsData = Offercondition::where('offerId', $id)->where('
I have create a new trait within my Laravel project, but it doesn't work. First I have created a folder called App\Traits and my trait filenam
Laravel 3 Table table_user id name table_barang id iduser name statusbarang_id table_statusbarang id name My code UserModels: public function BarangModels()
I want to print the name of the user by finding it with 'finished_by' column where id of user is stored. but i get this error: Trying to get property 'name
I moved my project from desk to another. When I run php artisan it does not work. I tried to run composer update, but it returns the error Script @php a
In the livewire component, I have the script tag: <script> {!! $script !!} </script> Let's say the $script variable contains console.log('test'); I
I am working on Razorpay integration and after succesful payment when I try to save the details to the database I get an error. I am sending t
i have an collection like this 0 => array:4 [ "so" => "SO-1" "product_name" => "EXTREME FORTE - BP" "created_at" => Carbon @1527481346 {#628
I am making a schedule display system and it shows the schedules of ferries. my problem is if I dont put midnight time in order then query skips midnight time a
I'm trying to write in javascript and I want to understand why it doesn't work? sample order code that I want to copy: 593004485164756431 when I copy to clipboa
This is my ignore list which i have some item that i don't into that $ignoreRoutes = [ 'administrator', 'attachImage', 'login', 'logout', 'l
I have a Product model with id,name,price. The price value is stored in an external API and i need to fetch it every minute in order to update it in the databas
My component looks like this: namespace App\View\Components; use Illuminate\View\Component; use App\Http\Controllers; use Illuminate\Http\Request; class shop
I have a new Laravel project, with Passport and basic authentication installed, and I am getting this error when I try to call the built in /api/register endpo
Today I try swiper but not working. I install Swiper with npm npm install swiper this is my code index.blade.php <div class="swiper-container">
I have 2 columns in table servers. I have columns ip and hostname. I have validation: 'data.ip' => ['required', 'unique:servers,ip,'.$this->id] This
I'm using laravel default pagination with: {{$posts->links()}} and the pagination works, the links appear and
I came across an issue in my code base where a job was being terminated early while its timeout was set to 540 seconds. However after looking in the documentati