wyatt44 wyatt44
4

Testing Registration

Hello Everyone! I am writing a test to check that invalid data posted to the register endpoint fails validation. I am trying to assert that the response is a redirec...
trevorpan trevorpan
4

Forge: script for adding column to production database table

Was reading this post below and feel I have a good understanding of the process of creating a new migration which then adds a column to an existing table. I know I'll have...
Forge
4
43
moukbel moukbel
2

Changing Variables.scss not working !

hi, i start a new project and Im trying to change some variables, what seems is nothing working $body-bg: red; i have sure install node_mud...
dannisi1985 dannisi1985
1

Update parent data

I know the right way to update a parent data is using events. But I do 'this.$parent.data = newdata' it still works and I was expecting some errors to show in the browser c...
Vue
1
32
ahoi ahoi
7

Set radio-button value by bool in array

I'd like to solve the following problem: I got a data structure like that: { "options": [ { "id": 1, "title...
Vue
7
83
JamesFreeman JamesFreeman
5

Mocking 3rd Party Classes within Singleton

I'm looking to test that TwitterOAuth is initiated with the correct config information, I have attached the code I have at the moment. Is it possible to depend...
Nael.Saeed Nael.Saeed
11

Form Request Validation for JSON Parameter

Hi there, I have an AJAX request sent to my API. This request has a parameter that should contain a JSON formatted data. I want to validate that it is actually JSON....
Laravel
11
118
jasonb jasonb
10

can I access current user data in blade?

I want to access the user data, name for instance in my header.blade.php if the user is logged in. What is the simple solution? I know I am asking basic questions bu...
General
10
13629
mada72 mada72
2

get address in order

Hello, I try to get de user address in my order Controller $address = Address::where('id', '=', Auth::user()->address_id)->get();...
Phunzor Phunzor
3

[Homestead] Only showing contents of last site in yaml

So after buying a new PC, I've installed the most recent Homestead box, which goes fine. Nasty thing tho is that it only serves the contents of the last mapped site in home...

"Nested pagination": Paginate (sub-)item in ApiResource

Hello everybody, I got an ApiResource like this: <?php namespace App\Http\Resources; use Illuminate\Http\Resources\Json\JsonResource; use Illumin...
victordelaunay victordelaunay
5

groupBy method doesn't return array with key

Hi. I'm trying to create an api. Here's my current setup: A Product has many Listing A Listing has one Size products - id - brand - name - sl...
Mandrizzy Mandrizzy
4

How to prevent a user from logging in if they have not verified their email ?

I am using laravel default authentication mechanism using the make: auth command to handle user authentication. I have it set up where i email a user a welcome email along...
Laravel
4
478
mariusp mariusp
6

RESTful API series

Hello! Are you going to do some lessons/series on RESTful API from scratch to expert? Thanks!...
Laravel
6
861
RFFRED RFFRED
6

what to put in Model observers

Hi, I am learning about model observers. It's pretty neat and useful but I was wondering if it is good practice to put in there things not related to the model (such...
Laravel
6
142
oliverbusk oliverbusk
7

Caching a specific column in relationship?

I have a model called Document, in this I have a method that I use throughout my website to get the full path to the specific document:...
finchy70 finchy70
10

Pass query result to vue component via axios to populate a dropdown.

I have started building a Vue component that will populate a dropdown then depending on whats selected populate a text area. Select box in template. &...
Vue
10
54
oliverbusk oliverbusk
1

Relationship belongsTo two columns

I have three models: File Field Result A file can have many fields, and a field ca...
InToSSH InToSSH
8

L5 Polymorphic relationship - table doesn't exist error

Hi, I have a simple relationship between ItemVariant and Image. class ItemVariant extends Model { public function images () { return $this->m...
DonSchoeman DonSchoeman
14

How do I install the dom extension for PHP7?

I am trying to do a composer install for a laravel project on a staging server of ours but the composer dependency check fails at phpunit stating that it requi...
Servers
14
35083
RFFRED RFFRED
4

laravel collective / html

Hi Is the laravelcollective/html repo a good module to use. I can see many tutorials on the net but their web page (...
lukegalea16 lukegalea16
16

Laravel min Validation not working

I am trying to validate a request as shown below and the max is working well, however if I enter a string of 2 characters for the device and data, it is still accepted and...
Laravel
16
160
psychosocial227 psychosocial227
3

rendering blade syntax in a vue component

Am asking to know how can one render a blade syntax in a view component example i will like to render this {{ config('app.name') }} © {{ date("Y")...
Vue
3
60
pandiyan pandiyan
4

1118 Row size too large. The maximum row size for the used table type, not counting BLOBs, is 65535 . This includes storage overhead, check the manual.

Hi, A have 281 columns in my user table.when i migrate error came like SQLSTATE[42000]: Syntax error or access violation: 1118 Row size too large. The maximum...
bekaskaki bekaskaki
3

join 3 table by laravel eloquent model

i have 3 model : class PurchaseDetail extends Model { protected $fillable = ['purchase_id','product_id','quantity','price']; public function purchas...
Van1310 Van1310
2

Undefined variable: mail

hii when i try to send mail then undefined variable error in laravl 5.5 here is my controller file public function round_store(RoundRequest $request,$...
hassanshahzadaheer hassanshahzadaheer
3

tasks not found

Hi dear all! I am working on Laravel 5.7 from scratch series. When I add the new task and hit the button it shows me 404 error. I don't understand where I am wrong...
adhik13th adhik13th
1

How to Select Dropdown using pluck using Foreign Key

I'd like to show names on my select dropdown I have 3 tables: 'users','users_pro' and 'practice' users : id ,name ,dob ,.. etc...
nhayder nhayder
2

Select proper value from array dynamically

in my app i have page footer are where it supposed to show copyright message dynamically according the users reading language. the copyright data with multiple langu...
Vue
2
29
98mason 98mason
3

Relation has - Through

companies id - integer name - string venues id - integer company_id - integer name - string sensors id - integer venue_id - integer...
ignisrzeus ignisrzeus
6

Laravel API Query String Route

Hi! I'm fairly new to building APIs using Laravel, and I was wondering why when I use query strings in postman, the data returned will always be from my index method....
Laravel
6
106
ElijahPaul ElijahPaul
14

Single Redis configuration for both local and production (cluster) environments

How can I configure my Redis configuration in config/database.php to use my local single Redis instance in my local environment and my Redis cluster in product...
Laravel
14
219
amite amite
9

Errors not showing in Laravel 5 App

I got a fresh laravel 5 app set up but I can't see any errors on screen. I have turned debug to true in app.php and added the correct...
General
9
2002
PhoeniX5 PhoeniX5
16

How to populate a dropdown menu from database ?

I need to populate a drop-down menu with MySQL database values and trigger it when you select a value, it populates a second drop-down menu with values related to the value...
Laravel
16
308
Create a New Discussion Button