stargatesg1 stargatesg1
10

Change default Login path

I am using Laravel 5.2.10 Currently with you use the Laravel Authentication options all the default path's point to /login. How do I change login path to:...
Laravel
10
2244
murilo murilo
7

merge collection with for each()

Hello Guys , I have this collection that I want to merge $collection = collect($all_features[0]); $merged = $collection->merge($all_features[1])->merg...
Laravel
7
647
nibri10 nibri10
0

Select Field with and autocomplete Fields

How would I auto-complete the fields from the ID of the select field I am not sure how to solve the problem My Code public function Fields(Request $request){...
Nova
0
9
WebSpanner WebSpanner
5

Best way to test an Eloquent model method which calls a static method on the same class?

Class: class MyEloquentModel extends Model { // Returns input concatenated with output of bar for that input public function foo($input) { $b...
Laravel
5
198
chrisgrim chrisgrim
3

Filtering through an array inside an foreach

Hi, I am trying to modify an object "label" inside an array. I am trying to use this code for (let item of this.dataset) { i...
risav risav
6

Display image saved in storage folder

I uploaded an image on the storage folder. On Controller: $chesis_no = $request->input('chesis_no'); $filename = $request->owner_pho...
ampersand ampersand
3

Set default value on hidden fields

Hi, I found this interesting section on the Laravel Nova's Documentation page:...
Nova
3
101
sanjayacloud sanjayacloud
1

Error SQLSTATE[22007]: Invalid datetime format: 1366 Incorrect string value: '\xC5\x8D-tan...' in laravel

Hi all, I got above error "SQLSTATE[22007]: Invalid datetime format: 1366 Incorrect string value: '\xC5\x8D-tan...' in laravel" when insert strings. anyone...
p0t4t0 p0t4t0
14

How do I handle multiple submit buttons in a single form with Laravel?

I have a form with 3 buttons, one for saving the form data into the database, one for previewing and one for advanced options which should redirect the user to a view with...
Laravel
14
4409
gbryant200 gbryant200
0

Homestead mapping Folders

I'm trying to use Apache in Homestead. I'm using homestead/laravel 7.2.1 box. I've searched and searched and can't find anything that works. I want to sync /var/ww...
sykorax sykorax
0

cURL fails with timeout inside background job

Hi, We have a monolith application stack running in Kubernetes. We use RabbitMQ as a message broker. Some of the jobs invoke external services with Guzzle HTTP clien...
moukbel moukbel
0

<RouterLink> Cannot read property 'resolve'

hi, I'm trying to use to set the correct menu as active when I click it, and I'm getting this error, anyone knows what it's mean? Error in render: "T...
Vue
0
14
MarlonV MarlonV
1

Saving for each loop

I get the following error when I want to store phone numbers in the database. openssl_encrypt() expects parameter 1 to be string, array given...
ElijahPaul ElijahPaul
16

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
16
248

pull-right does not work in show.blade.php

anyone knows how to work pull-right in show.blade.php using laravel 5.6...
Laravel
5
306
Azik Azik
0

After assign a data property equal to a props returns null..

this is my code ? <template> <div>{{ addresses }}</div> <!-- // returns an Array { "id": 1, "name": "Green t...
Vue
0
110
arunsomant arunsomant
0

Collection map() returns wrong data.

$products = $products->map(function ($product)use($attributes){ $details = array(); foreach ($attributes as $attribute)...
saleem_hadad saleem_hadad
23

Larecipe - Write gorgeous documentations like Laravel.

Salam everyone ☺️ I just want to share my new package called Larecipe, used to create nice looking documentation like Laravel docs....
General
23
1003
kgp43 kgp43
0

Nova, how to save product features in separate table?

Hi, I'm using Nova to add and modify product data. Currently I have a tables/models for each product type (each type got a lot of features that I need to use)...
Nova
0
17
sraines sraines
6

Where with difference of 2 columns

I'm working with Laravel v5.4.36 Like the title says, I'm trying to do something like this: SELECT * FROM table WHERE column1 -...
Laravel
6
104

Pivot table for 3 models?

Hi, I got 3 models: motors, gears and suppliers. I would like to attach purchase-prices to my products (motors and gears) from a supplier. Any suggestions how...
Crazylife Crazylife
8

How to get a specific categories with its sub categories item?

I have this relationship in my model public function subcategories() { return $this->hasMany(self::class, 'id_parent', 'id_category'); }...
ncltours ncltours
1

Laravel Nova multiple database connection problem

I am working in a Laravel Nova project where I have two separate database. One contains Laravel nova settings and another one contains separate dataset. I want to create re...
Nova
1
24
Veleous Veleous
2

Duplicate assertions using assertJson and assertJsonStructure

If using assertJson which if I understand correctly checks JSON structure and data, is there any point in also using assertJsonStructure in the sa...
minaFaragAmin minaFaragAmin
1

wildcard subdomains point to new laravel apps with forge setup

i want my main laravel application EX : Mina.com , to be able to generate new subdomains that could point to different laravel applications within the same server. 1...
Forge
1
20

Homestead / Composer issues

I've created a clean Homestead install and I've been getting problems creating new projects with Composer, it creates new Laravel projects just fine but say if I go to crea...

How to change email in Laravel app?

I am working with Laravel 5.7 and I have configured my .env file using gmail as following to send emails MAIL_DRIVER=smtp MAIL_HOST=smtp.gmail.com MAIL_PORT=...

CRUD Vue.js components showing blank screen with laravel

I am very new to vue.js and so basically tried to create a CRUD template to add tags to articles. I am clueless how to do it so please help good people here is my ta...
athamz athamz
2

How to access the lesson

Hello everyone, I just registered in laracasts website but i didnt see any lesson which can access for me. How to access and watch video lesson in laracasts?...
FallOutBoi FallOutBoi
12

Checking if relation exists in blade

Hi, i am trying to show different icon when user has specific item in wishlist but it doesnt work. I have relations set up like so Product.php public f...
Laravel
12
110
finrik finrik
5

Mail Notifications - Add custom variable

How can I set custom variables or/and overwrite $url in the notifications and use them under /views/vendor/mail/html/...? Notification::route('mail', ['[email protected]...
evaslims23 evaslims23
9

belongsToMany Trying to get property 'id' of non-object Error

Hi guys. I am trying to add a belongsToMany functionality to my project for Countries and Products. As in if a user decides to create a product listing he can have the opti...
Manrix Manrix
1

Success notification best practice

Hi. I was reading a guide on building vue js spa apps and noticed that the success message is on client side and not returned by the server: axios.put('users...
Vue
1
37
Van1310 Van1310
0

validation.captcha error when submit data

when i try to click recaptcha then and submit data then error validation.captcha here is my blade file <div class="form-group{{ $errors->ha...
hassanshahzadaheer hassanshahzadaheer
16

This action is unauthorized. for all user except user have id of 2

Hi! I am stuck to understand why the code does not allow performing curd action except the superuser. I try my best to solve this problem google it but still not got...
Laravel
16
178
Create a New Discussion Button