Category "laravel"

return table except deleted_at (softdeletes) laravel

I'm trying to return a table without deleted rows (softdeletes) This is my code public function getMailRecipients($meoId){ return DB::table('mail_recipients

Implementing route based models in Vue3 (Inertia.js)

I am following the following this guide, that shows how to enable "Route Based Modals" in Inertia.js. The post is written for Vue2, and I am using Vue3 - and I

Sliders in Laravel

I am not able to show images in slider one by one, it displays all images at once. My static code is here and it works well with sliding images. <secti

Fetch files from next cloud storage and display in Laravel website

I have a website built with Laravel. I need to fetch files from my nextcloud storage and display in the website. I have successfully installed sabre/dav to crea

Laravel change log path

I'm using the following change my log path: \Log::useDailyFiles(...) But I still get log entries in /storage/logs/. How can I use only my log path?

Laravel 5.2: Unable to locate factory with name [default]

I want to seed database when I use this public function run() { $users = factory(app\User::class, 3)->create(); } Add three user in database but wh

How to join on a select result with eloquent in Laravel?

I want to join on a result of other select like this : SELECT * FROM TABLE1 JOIN ( SELECT cat_id FROM TABLE2 where brand_id = 2 GROUP BY TABLE2.cat_id) A

Unable to guess the mime type as no guessers are available Laravel 5.2

So I'm getting this when I want to submit my form: Unable to guess the mime type as no guessers are available (Did you enable the php_fileinfo extension?) I h

How to override Backpack's UserCrudController?

I am trying to override/extend Backpack's default UserCrudController in Laravel 8 so that I can replace the list and edit operations with my own. To do this I t

Laravel query builder binding parameters more than once

I'm trying to bind the same value to some parameter in a raw query (Laravel 5.2) //this is a non practical example ,only for clarify the question DB::table('us

Unable to connect with TLS encryption with Laravel 5.5 Swiftmailer

I am trying to send a mail using the Laravel inbuilt swift mailer but I keep getting the "Unable to connect with TLS encryption" error everytime. Below is my .e

Unable to connect with TLS encryption with Laravel 5.5 Swiftmailer

I am trying to send a mail using the Laravel inbuilt swift mailer but I keep getting the "Unable to connect with TLS encryption" error everytime. Below is my .e

laravel Livewire wire:click not firing the function

I want to do a SPA with laravel livewire, i want to use wire:click to fire a funtion in the component but it not working , excuse me if the code mess its my fir

I can't add Vue page transition with inertia js in vue js

The transition Does not work in inertia page . if add appLayout between transition tag . its working . but all content gives transition. Dashboard.vue <templ

class LaratrustSeeder does not exist

I tried to clear the cache and config and do vendor and dumpload everything but keeps telling me the class Laratrust does not exist I am using laravel 8 any s

Elastic Beanstalk with Laravel Envoy

I write a bash script to run the laravel envoy command in Elastic Beanstalk. #!/bin/sh cd /var/app/current/ sudo php vendor/bin/envoy run fillData & And it

(Cache::lock()) -> get() -- Under what conditions does it return false?

I'm looking into using the Cache::lock mechanism with laravel, but something isn't exactly clear to me. This is the example they use: $lock = Cache::lock('foo',

Install specific version using laravel installer

As of now, if I use this command laravel new blog It will create a laravel project with the latest version like 5.2, but what if I want to install a specifi

How to handle unchecked checkboxes in Laravel?

I have an edit form with several checkboxes in Laravel. When I check the boxes and update the record, it works correctly, but if I uncheck the box it doesn't re

Can`t see the file history in Gitlens (on a specific project)

I have a problem with Gitlens extension. Firstly, Gitlens or Git History extension is working fine on any other project except the this Laravel project. My prob