petrit petrit
3

After upgrading to MacOs Catalina mysql wont start

After upgrading to MacOs Catalina mysql service is not starting! When entering the page: SQLSTATE[HY000] [2002] Connection refused (SQL: select * from `users...
tomasosho tomasosho
3

follow not changing to unfollow laravel vue.js

I made a follow/unfollow system, the follow works just that it doesn't change to unfollow after refresh but it counts. My FollowButton.vue <templat...
Vue
3
26
Pixelairport Pixelairport
2

Medialibrary with existing S3 files

I use Spatie Medialibrary for avatar images in my project. Now I want to add uploads. These are uploaded with transloadit. That means not with the normal laravel Storage or...
Charrua Charrua
2

Trying to get client IP address, getting server IP

Hello, I have my Laravel app running on a DigitalOcean Droplet, inside a Plesk account. I have developed a webhook to store some information from an external website...
Atef95 Atef95
1

How to avoid loops to update multiple data

Hey guys I've a list of ordered_products that contains data like ( order_id , product_id ,price) that are related to a specific order.. in the process below I...
minhankyaw minhankyaw
4

Warning: mysqli_num_rows() in php

Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given in. This is my php code $query = "SELECT * FROM...
tomasosho tomasosho
11

@hasanyrole('admin|subscriber|membersubscriber') is not working for me

I am just getting blank page when i use the hasanyrole by when i use hasrole with a single role it work My code @hasanyrole('admin|subscriber|membersu...
Laravel
11
82
eludic eludic
17

Multiple Sessions from same browser

Hi, I am creating an application with different set of users - clients, staff and admin. Each one will have it own set of interface so a staff cannot access admin interface...
Laravel
17
872
davy_yg davy_yg
1

from Root

ProductCategoryRepository.php <?php namespace App\CacheableRepositories; use App\Enums\FlagEnum; use Modules\ProductCategory\Models\ProductCategory; cl...
hemmy6894 hemmy6894
3

How to check which class is inherit parent class??

class Parent{ public function check(){ /* * code */ return $child_class; } } class A extends Parent{} class B extends Parent{} $a = n...
davy_yg davy_yg
1

Cachable Repository

Can anyone help me explain what this package for: ref:...
Aronaman Aronaman
3

Delete media

i am deleting related media library i add to the model. i am using spatial media library...
JonasWeigert JonasWeigert
14

Laravel 5 PHPUnit Memory Allocation Exhausted

I have a large testing suite for our API built in Laravel. We just moved our code to the latest build of Laravel (from a pre 5.0 version) to get ready for the 5.1 release a...
Testing
14
1412
farshadf farshadf
6

how to test 50k users in laravel application

hi , i have an application and i want to test to see if it can handle 50k users or not , how can i test it is there any good tool for laravel to test application capacity ?...
RFFRED RFFRED
3

Accessing $request->validated() from a model

Hi I don't seem to be able to do this from a model when submitting a form $request = request(); //works $validatedData = $request->validated(); //f...

What is the proper way to handle API redirection

Hey guys, I am working on a project that uses React for the frontend and Laravel for the API endpoints which I am responsible for. The logic is to redirect users to...
Laravel
14
265

Provide API-Client to Controller

Hello everybody, I am using Laravel to call an external API. This is my Client: <?php use GuzzleHttp\Client; $client = new Client(); $res...
Ayomaid08 Ayomaid08
3

How to Use Webhook Url and save data in Database with Paystack

I am using https://github.com/iamraphson/vue-paystack in my laravel+vue S...
brayniverse brayniverse
1211

Where are you all from?

I'm wondering how far Laravel's reach extends to. I hail from London myself....
General
1211
7805
manof360 manof360
49

pass Slug and localization to route

Hi everyone.. I working on a website with two language to show success stories .. the problem start when click read More I get an issue when I pass the param of slug to t...
Laravel
49
360
tobyreed tobyreed
4

Unable to locate factory with name [default] [App\Reply].

Hello, I am following Jeffs course series called: "Lets Build a Forum With Laravel" and I am running into an issue I cannot seem to fix even after looking...
davy_yg davy_yg
13

Undefined offset: 1

Undefined offset: 1 ProductPriceListController.php public function update(Update $request, ProductPriceList $productPriceList) { $productPrice...
Laravel
13
90
matheenulla matheenulla
6

onDelete('cascade) not working

Hi I Have 3 tables 1)policy (primary key) 2)project_declaration (foreign key for policy) 3)endorsement (foreign key for policy) when...
zidance zidance
1

Rewrite rule in htaccess with trailing slash

I have following configuration on my htaccess RewriteCond %{HTTPS} !=on RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE] RewriteRule ^(.*)$...
A4Family A4Family
2

How to use search in Laravel?

For searching: First user have to select category and type something to search. The category id is passed to the controller. So, only the id of category needs to be shown w...
SU3158Y SU3158Y
4

How to make Laravel password stronger?

I want to strengthen Laravel's standard password validation: [A-Z] [a-z] [0-9]. I want to accept input with more than eight special characters and I need maximum support fo...
imuniz imuniz
3

Undefined type 'Route'

After running composer require laravel/ui my project show me the error "Undefined type 'Route'." in my web.php file. I can serve and visit the project in t...
davy_yg davy_yg
1

Editing vue

I am trying to understand how to edit vue. list-product-filter.blade.php <grocery-list :props_product_name="'...
Vue
1
26
danimohamadnejad danimohamadnejad
3

zip file is downloded with type "file"

Hello I am using following code to download a zip file from remote server. But it is downloading file with "file" type. ``...
vincentl vincentl
9

Multi Auth, middleware (auth:guard) is not properly working

I am new to Laravel and trying to setup a mult auth on my application following this:...
Kanchan186 Kanchan186
3

How to fetch gender value from database using foreach

view <div class="form-group"> <h5>Gender <span class="text-danger">*</span&g...
canadianlover canadianlover
20

BSc. in computer science - worth the money?

I have been to college and I took an intro to computers course as well as a visual Basic course. The intro to computers course was very easy and I was getting 75% in that c...
General
20
128
naykel naykel
2

Temporary Collection Attribute

Is there a way to add an additional temporary attribute in a collection? To be clear, I do not want to permanently store the value in the database as it is a days re...
Create a New Discussion Button