Our Black Friday sale is now live! All individual subscriptions are 50% OFF. This week only!

datanorte datanorte
2
With this function get the sum, but I would like to do it with eloquent. $totalPaids = DB::table('subscriptions') ->join('prices', 'subscriptions.price_id', '=', 'prices.id') ->select('prices.price')->sum('prices.price'); The models are rela...
DDSameera DDSameera
2
When user login in to the system , it should be check "Valid Google recaptcha", if NOT , it should redirect to login page. so i used middleware for this. now it doesn't work Middleware > checkGoogleRecaptcha.php <?php namespace App\H...
Shiva Shiva
11
I would like to use nwidart/laravel-modules and inertia together. The problem I'm having is that in my Users module when I try to access the index page I get this error in my console Uncaught (in promise) Error: Cannot find module './Index' I know t...
leviathanz leviathanz
3
I got the following error BadMethod CallException Method does not exist, when access the page my controller: public function schedule_item(){ $paired_schedules = $this->getSchedule_PC(); return view('todo_schedule.schedule_item', c...
RonanH RonanH
1
Hi, I have setup the Passport Personal Access Token Flow. When I create an access token i.e. $token = $user->createToken($validatedClient['token_name'], [$validatedClient['scope']])->accessToken; the access token is returned. This seems to be...
Rainieren Rainieren
1
I recently got a new MacBook and wanted to install valet on a fresh installation of Catalina 15.7. I followed every step on the Laravel website but both services Nginx and dnsmasq keep giving the status error. I tried reinstalling brew and even valet...
DDSameera DDSameera
0
This is my code. Is this best practice ? i can see this messages in my logincontroller https://snipboard.io/JzxRPb.jpg <?php namespace App\Http\Controllers\Auth; use App\Http\Controllers\Controller; use App\Providers\RouteServiceProvider; use Il...
mupenzi mupenzi
1
Illuminate\Foundation\ComposerScripts::postAutoloadDump PHP Warning: Uncaught ErrorException: require(C:\xampp\htdocs\House_Renting\vendor\composer/../tightenco/collect/src/Collect/Support/helpers.php): failed to open stream: No such file or direct...
I'm building 4 e-commerce sites for a client. These 4 sites will use the same code base and be deployed as separate applications. I'm then setting up a CMS that is using Nova to manage all the product data, users and orders from all the sites. The CM...
mohansharma mohansharma
0
I am developing a laravel package and I want to test my blade components for which I am using InteractsWithViews trait in my tests, but when I call $this->blade() function it gives me this error. InvalidArgumentException: View [lar3DBD.tmp] not fo...
afoysal afoysal
1
I have 2 tables users and machines which have many to many relationship. I am trying to display Users list with machines using DataTable. My code is like below if ($request->ajax()) { $data = User::with('machines')->select('alias')...
afoysal afoysal
1
I am working in a Laravel Application. I have 2 tables users and machines with many to many relationship. I am also using a pivot table machine_user. I need to delete records from pivot table which are related to a specific user when I delete a user....
nhoxtwi nhoxtwi
21
Hi everyone, I'm developing a queue system that run a lot of jobs everyday (about 300k jobs per day), using docker and Redis queue. I'm facing a problem that my job is randomly stuck after a few hours. Here is my job: <?php namespace Modules\Shop...
oussamaSid oussamaSid
4
I have a laravel project and I'm wondering about the best way to implement opening hours and availability in Listing table. Step to produce: A listing model has these columns: title city address availability time opening hours I think about making...
geerizzle geerizzle
5
This is driving me bonkers. See this insert: $subscription = new Subscription([ 'user_id' => \Auth::user()->id, 'stripe_id' => $cart->stripe_sub_id, 'stripe_plan' => $panel->chosen_plan, 'last_order_id' => $...
hjortur17 hjortur17
26
Hi, is it possible to have a where clause on belongsToMany relationship? I want to only get the Bookings associated with services that have the category garage. So what I'm trying to do is: Bookings where services->category = garage Here is my SQL...
RomainB RomainB
0
Hi Everyone, I'm issuing some trouble which I feel to be "random": I am working with axios on VueJS 2 for weeks now and all was fine. I'm using the basic register/login jetstream's page, I'm not working on a SPA. Yesterday I wanted to upgra...
Rabeedmenam Rabeedmenam
2
am tiring get value of meta key from table called site.management this table =>http://www.mediafire.com/file/pa4gs0pbwpoalqj/Homemetakey.PNG/file public function index() { if (Schema::hasTable('site_managements')) { $homep...
exSnake exSnake
5
Hi guys, i want to make a setUp for my feature test. Is there something like $viewPermission = factory(\App\Permission::class)->firstOrCreate(['name' => 'view_user']); I'm asking this because sometime this permission could already exist and my...
tykus replied
Solved
commandantp commandantp
23
Hey guys, Any advice on using Laravel Cashier & Stripe Connect (for marketplace) ? If you have already used it in that way, what did you change to adapt it? Thanks! Have a nice day!!...
DDSameera DDSameera
1
How to setup Google Recaptcha v2 invisible option in laravel 8 ? Is that possible to develop it without using plugin , if NO, please provide me reliable methods....
oscarburgos oscarburgos
4
Hi from Spain laravelers, Can anybody give me a clue about why I´m getting this error when I run npm install & npm run dev in a new Laravel project after create it with laravel new pruebaJS --jet npm ERR! code ENOENT npm ERR! syscall open npm ER...
akashgupta akashgupta
5
InvalidArgumentException No connector for [] in QueueManager.php line 172...
KalimeroMK KalimeroMK
3
my code return RoomDiscount::where('room_type_id', '=', $request['room_type_id']) ->whereBetween('start', [$date['start'], $date['end']]) ->orWhereBetween('end', [$date['end'], $date['start']]) -&...
ronon ronon
3
I'm currently working on a project which will be used by multiple companies simultaneously. The companies won't have access to the documents,projects,etc.. from other companies, which is a very important case obviously. A company can has many employe...
alex_hill alex_hill
9
I am testing out the spatie/laravel-permission package and am having similar issue to others in terms of cache. I have tried the following three commands, none of them seem to make a difference: php artisan cache:clear php artisan config:cache php ar...
isamirsalehi isamirsalehi
3
hey there one of my method in Feature testing uses the below JSON request and it wants to send an id to the particular method to create an instance from that id in the controller, but when I send it, it does not do anything and just returns me a 404...
iaibai iaibai
0
I wonder if anyone has any ideas about this problem I'm having with deployment to Elastic Beanstalk? I've got a Command that's scheduled to run every minute. It normally takes about 45 seconds, and I've scheduled it using: ->everyMinute()...
ahuson ahuson
2
I am using Spatie media library to manage media in my laravel app. The issue is it generates oversized images even if the uploaded file is small which results in pixelated images. Below is my model code. Suppose if I upload image of width 700 pixels,...
Swaz replied
Solved
mikromike mikromike
1
Hello This is my first time when I am using Maatwebsite\Excel , version 3.1 and Laravel 7. I can save CSV file to DB (Mysql) but it saves with first row (header). I have looking for the way exclude it but haven't found the way yet. here is my class...
< GDB > < GDB >
8
Good afternoon all, I get the following error : SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'googmaps' I added a column to my database table where the user can insert a 'Google maps'-link. As you probably can imagin...
bplace bplace
9
I have a Blade component which generates an HMTL link element given a page id, which needs to work as an inline element : View file Lorem ipsum l'<x-front.link id="12">anchor text</a>, etc... components/front/link.blade.php <...
sauravs012 sauravs012
4
My Controller $posts = Posts::where('status','publish')->orderBy('id', 'desc')->take(10)->get(); return view('front', compact('posts')); My View {{$posts->links}} I want convert http://127.0.0.1:8000/?page=3 TO http://127.0.0.1:8000/pa...
realtebo realtebo
1
In my package, i'm doing this to simulate posting of a new image Storage::fake('image_upload'); $fake_image = UploadedFile::fake()->image('photo1.jpg'); $response = $this->post(route('package.product-image.upload'), [...
GodziLaravel GodziLaravel
3
Hello I want to setup my email parameters in the .env file , now i'm using MailTrap and it works well , but I want to use the hosting email (inmotion hosting) the parameters are : Incoming Server: secure251.inmotionhosting.com Outgoing Server: s...
Create a New Discussion Button