I posted this question on stackoverflow last night, but there has been no activity. Wondering if someone on here could help? I've been working in this application for several years and while doing some updates my passport authentication broke. I upda...
I have an app that tracks training requirement compliance by Division. I have Divisions that have a many to many relationship with requirements. Division Model public function requirements() { return $this->belongsToMany('App\Requirem...
Hi There, im using ubuntu 20 and recently installed dbeaver, now im trying to restore a database trying to edit my connection but in the Local Client input i dont have any MySQL Binaries like in windows, it shows can u guys help me?...
sheldonfrith sheldonfrith
2
I have read the docs front to back, and read every google article I could find, but I cannot find the information I need.... Context: My server is going to be serving javascript bundles to <script> tags in client websites. When the server recei...
devenjahnke devenjahnke
1
So I am building an application for a client who manages events that are staffed by volunteers from local non-profit organizations. There are four user roles (volunteer, organization manager, stand manager, and administrator) in the system of which o...
roman_paprotsky roman_paprotsky
0
Hi all I have a multi-tenant application where I use supervisor to run some queue workers and also use Spatie's media library extension. I have the MedLibrary extension conifgured to save conversions of files to my public filesystem when a user uploa...
Hey, I just wanted to upgrade Laravel Valet since a new version for PHP 7.4 was released yesterday. After I followed the steps of https://stitcher.io/blog/php-74-upgrade-mac I can't access any page anymore (ERR_CONNECTION_REFUSED in Google Chrome) an...
hanzanati hanzanati
0
Looking to integrate Mailcoach (or similar package) into a Laravel SPA. There will be multiple users who will have their own lists/segments. I have used Mailcoach but had some performance issues over 250k records. Will need a solution that can scale...
bksurik bksurik
4
Hello dear developers. I am a php developer quite well versed, I can write sql queries, I know the Laravel Framework well, but I am not a professional and I am writing this topic so that you would give me advice. How to me become a professional Larav...
Hey, We are building a laravel-application where a user has to record a 15+ minutes video through his webcam which will later be reviewed by callcenter agents. Therefore, the video has to be available on the server's storage. As a video of this lengt...
So I have a an course application that include attendance and grade taking. I have the attendance set up as a radio checkbox for absent or present and it is set to submit on change. When it submit it updates the users attendance but when the page rel...
bugsysha replied
Solved
cavalierod cavalierod
1
First off - apologies for the name of this thread - I couldn't figure out what to call it. I have an application (v8) that has a many:many relationship between users and projects. I am working on implementing Laravel Spark to handle billing at the pr...
Synchro Synchro
2
I want to exempt a show method in a controller from both authentication and authorization checks. I have an API resource which uses Laravel's default auth:api middleware, set in its controller's constructor: $this->middleware('auth:api')->e...
Synchro replied
Solved
freeToFly freeToFly
2
Hi There, I read alot about how to document my own laravel project with swagger. But im searchiing for a solution the other way. I'd Like to use laravel as an api consumer and wants to integrate an auto generated swagger-client as Libarie into my la...
Is it possible to use migration squashing with migrations loaded outside the database/migrations folder? https://laravel.com/docs/8.x/migrations#squashing-migrations...
digitalcrate digitalcrate
2
Hi Does anyone have any idea how I would go about resending the verification email to a user after a certain timeframe if they haven’t verified?...
jmacdiarmid jmacdiarmid
3
I'm working on a project that will automate the process of creating and submitting advertising campaigns to a third-party resource that uses geolocation technology such as geo-targeting and geo-fencing. In the research that I've done, everything I'v...
Spilock Spilock
2
Hi guys, I'm just wandering is there any updated codes that can help me with exporting and importing SQL Server Database? I've found this on the internet, but it's for PHP, and i'm wondering if there's any tweaks that can be used for Laravel? Do I ha...
Hello Everyone, I have a class that has enrollment. I have a field that is populated with ajax. It is one field that uses a LIKE condition on three columns or my users table. It work perfectly when I use $data = DB::table('users') -&...
ctyler replied
Solved
CodeInKlingon CodeInKlingon
1
I am trying to create a custom blade directive @count("images"). $occurrences = array(); Blade::directive('count', function ($expression) use($occurrences) { if( !isset($occurrences[$expression])){ $occurrences[$expression] = 1;...
I've been using this package frequently to create Models based on a remote API using the custom getRows method provided in the package. The problem I'm trying to figure out is in the Model you have getRows(), which queries and API and returns the res...
n00bCod3r n00bCod3r
3
Hello, as the title says I'm having problems with a return redirect() statement This is my code //inside my store() function $this->validateSocieta(); $this->validateCongruenzaDatiSoc(); $this->validateExtraOptions(); //this...
andyandy andyandy
6
In !!ONE!! of my projects VSCODE stopped suggesting names of Models while I'm typing. (It also started underlining "Controller".) https://i.imgur.com/ZOiBuO6.png But the real problem is that it isn't hinting Models anymore so I can easily n...
jmacdiarmid jmacdiarmid
10
I'm building an app for a digital marketing agency to automate advertising campaign submission and tracking for clients. I'm having trouble wrapping my head around what relationships I need based on the current manual process. I'm the only developer...
lemmon replied
Solved
briankidd briankidd
1
I am making a request from axios. I first have to get a sanctum csrf-token then posting to login where I get a 302 response back. I'm receiving the sanctum csrf token and when posting to login, I'm sending the Accept application/json header but Lar...
I want to make use of an event of a package, the event is already created all I've done so far, is to make a new listener but when it comes to linking both, what are the things i'll be needing? Like namespace of the package? Because I have to use Eve...
Hi All, New to Laravel, I don't understand how except works. I understand it works on collection and I understand that User::all() is a collection But User::all()->except(['id']) does not remove id ! What I do wrong? not understand?...
pc579 replied
Solved
santino santino
1
Hi, I was wondering if there is an alternative to deploy my laravel app without forge , BUT fast I want to deploy an app into my server each time give the instruction to PHP artisan the same way forge does but I want to do it with my own commands, I...
chadhurin chadhurin
2
Had an issue creating a new subscription for a billable model. My company model is the billable model and followed the docs setting CASHIER_MODEL=App\Models\Company in the .env file. When getting to the code: $res = $company->newSubscription('subs...
I have updated my Laravel app from 6 to 7 and then 8 without problems. However, when I try to build an my docker image, it fails at the composer install --no-dev -o command. If I run the same command in my terminal, there is no error. The error is In...
rickbolton rickbolton
4
Here is my code $start = Carbon::now(); $end = Carbon::now()->AddHours(7); $data = []; for($d = $start;$d < $end;$d->AddHour()){ $data[] = $d; }; return $data; This returns the end date for each loop into the array rather than each hour...
Hello, i am trying to get an out put of number like (10,15,20,25,20 .......55) data(){ return{ maxNumber: 55, }, computed:{ minsVar(){ for (var i=10; i <= this.maxNumber; i += 5){...
Steady-Entertainment Steady-Entertainment
3
composer update gives me the following Problem 1 - Root composer.json requires pbmedia/laravel-ffmpeg dev-php-8.0, it is satisfiable by pbmedia/laravel-ffmpeg[dev-php-8.0] from lock repo but pbmedia/laravel-ffmpeg[dev-master, dev-refactor, dev-v...
dennisprudlo dennisprudlo
9
Hey guys, so I am developing an application wich will have an API (for a native mobile app) and a web interface. I think its pretty clear where to put my routes (web.php and api.php). But how should I structure my controllers? I often read that the b...
trin replied
Solved
santino santino
4
Hi I was using this code that gives me back an array $groupContracts = SmartContract::search( strtolower( $this->searchBar ) ) ->constrain($groupContrains) ->get(); $this->smartContracts = $groupContracts->tak...
santino replied
Solved
Create a New Discussion Button