But how can i send something to server through socket connection yo the server?

|
2020-06-26 19:22:10
Need some data fetch help
. 2020-06-26 19:39:23
laravel_discuss-43076.jpg

Siberfx 2020-06-26 19:39:24
lovely
. 2020-06-26 19:40:30
Hi
When there are more than one assertation in our test method, is this better to split each assert to another separated test?
. 2020-06-26 19:42:18
. 2020-06-26 19:39:23

Or like this screenshot we should put may assert in one test?
For example this test in this photo checks product insert (ProductController@store)

And checks 3 different things:
– Returned json contains some fields
– HTTP status should be 201
– Database should have inserted product

realSamy 2020-06-26 19:50:03
DesolatorMagno 2020-06-26 19:20:37
Look into the appserviceprovider, in the boot method you can have code that work in every route, BUT, there are better ways to manage the locale.

oh, thanks, I’ll do those better ways later! I just need to easily switch between my project languages for now!

realSamy 2020-06-26 19:50:21
cayetanohosma 2020-06-26 19:21:22
You needs a middleware. That is what you need

ok thanks🤔👌

R_N_M_O 2020-06-26 21:18:17
hello everybody
I have a problem that I encountered in Laravel and I need help ,
I want to do an import/export of an Excel file for the system, and the Excel file contains more than one sheet and there are also drop-down lists, so I want to import it into the system and specify the special sheet for data to add it to Database .
how can i do that ? ☹️
arafhossain 2020-06-26 22:13:47
R_N_M_O 2020-06-26 21:18:17
hello everybody
I have a problem that I encountered in Laravel and I need help ,
I want to do an import/export of an Excel file for the system, and the Excel file contains more than one sheet and there are also drop-down lists, so I want to import it into the system and specify the special sheet for data to add it to Database .
how can i do that ? ☹️

I have done that before but i couldn’t able to import .xlxs/.xls files. This types of extension maybe not able to import in db.

But I have done that by converting excel file to the csv file. U can do it just open and save as CSV file thats its

realSamy 2020-06-26 22:14:59
DesolatorMagno 2020-06-26 19:20:37
Look into the appserviceprovider, in the boot method you can have code that work in every route, BUT, there are better ways to manage the locale.

may you give me some examples please?!

DesolatorMagno 2020-06-26 22:18:36
You can work with a package or Middleware that take care of that.
2020-06-27 00:08:21
Hey guys,

@Siberfx @channaveer_hakari

Can you guys explain a polymorphic relationship vs normal relationship, – which one is better and why?

Looks like Polymorphic is more simple, advance and easy, what’s your input on this?

Siberfx 2020-06-27 00:14:02
well in Polymorphic it has advantages by creating a single table but collect multiple relations data from different models in a single table, on normal relationships, you should create seperate tables for each relation. for example a post with comments (post_comments) relationship should be separate from a video with comments (video_comments)
Siberfx 2020-06-27 00:14:51
well this just one of the good advantage of using polymorphic relations instead of normal relations
Siberfx 2020-06-27 00:15:22
by normal relations also can achieve by using pivot but its much code, much effort 🙂
2020-06-27 00:17:22
Yep, that’s what I was feeling (too much code with same output with normal relationship) , whereas polymorphic works like magic 👌

Thank you @Siberfx

DevVivek 2020-06-27 07:19:45
Hi ..i have created a laravel project and implemented socket io .. whenever there is a API call I’m firing the event and sending data … Its working

But how can i send something to server through socket connection yo the server ? ( Without the API route )

DevVivek 2020-06-27 07:23:03
Basically i want to listen for events from clients
VICTOR DADA THE BRAND 2020-06-27 08:10:10
Join

@warjp

babzproject 2020-06-27 09:44:33
laravel_discuss-43104.jpg
Help,i want to generate transaksi.js with laravel mix,i’ve running npm run dev but the asset not update file transaksi.js can not be read
amirAutomationEnginner 2020-06-27 09:48:17
Exuse me can u suggest a intermediate education in laravel
2020-06-27 09:55:41
Can i host laravel and Vue in godaddy shared hosting
2020-06-27 09:56:14
Or in hostgator shared hosting
2020-06-27 10:05:09
babzproject 2020-06-27 09:44:33
Help,i want to generate transaksi.js with laravel mix,i’ve running npm run dev but the asset not update file transaksi.js can not be read

Show the webpack. mix js code

Bhalaji 2020-06-27 17:06:19
laravel_discuss-43111.jpg

Bhalaji 2020-06-27 17:06:45
Wow js is not working…..plz help me to solve this
Bhalaji 2020-06-27 17:07:03
laravel_discuss-43113.jpg

tanmaya09 2020-06-27 17:10:30
Need a Suggestion:

While using Laravel Relationships, Laravel generated “Sub queries” for Database and Subqueries are lil bit slower than Joins. So can we convert Sub queries to join ?

Any suggestions please..

ikudratov 2020-06-27 17:17:03
Hi, I have a question about Laravel+Vue

How can I write correctly following script into /resources/js/app.js?

import Vue from ‘vue’;

new Vue({
el: ‘#app’,
});

ikudratov 2020-06-27 17:17:33
Error: import declarations may only appear at top level of a module
ikudratov 2020-06-27 17:17:59
why?
imkb 2020-06-27 17:19:18
imkb 2020-06-21 13:39:06

Help me pls..

2020-06-27 17:25:49
https://chat.whatsapp.com/FToFfcpLmJ31IYQQLNwCeM

Vue.js Developers💻📲WhatsApp.com
WhatsApp Group Invite
sobirjonovs 2020-06-27 17:36:57
I have a question…
sobirjonovs 2020-06-27 17:38:43
There are two forms to validate in one Update method. But If I want to send data to server there being an validation error(because, I have filled the first one, but the second was empty). How to vlidate two forms by form name in laravel?
sobirjonovs 2020-06-27 17:41:26
Wait… I have found an answer, after it is successfull, I will tell you
berto309 2020-06-27 19:34:55
laravel_discuss-43127.jpg
Please this is the error i’m getting when i’m using laravel-websockets package.
berto309 2020-06-27 19:36:21
berto309 2020-06-26 01:03:20
Hello guys .. i’m using laravel-websockets package in my app but when and event is broadcasted Echo doesn’t send it back to the client for real time update. it’s working with and i want to use it this package. Please any help

these are the configs

Acird Burn 2020-06-27 19:55:49
does anyone know how to remove public folder in laravel 6.0
Acird Burn 2020-06-27 19:55:59
tried many htacuess but all are failing
2020-06-27 20:02:44
What do you mean by remove? What you actually need?
Acird Burn 2020-06-27 20:08:38
2020-06-27 20:02:44
What do you mean by remove? What you actually need?

i want to remove the public url

Acird Burn 2020-06-27 20:08:49
out of the url
berto309 2020-06-27 20:25:01
Acird Burn 2020-06-27 20:08:38
i want to remove the public url

Rename server.php in your Laravel root folder to index.php

Copy the .htaccess file from /public directory to your Laravel root folder

Acird Burn 2020-06-27 20:25:36
berto309 2020-06-27 20:25:01
Rename server.php in your Laravel root folder to index.php

Copy the .htaccess file from /public directory to your Laravel root folder

did that

Acird Burn 2020-06-27 20:25:47
css is not loading
berto309 2020-06-27 20:27:23
Try {{ asset(‘public/css/your.css’) }}
Acird Burn 2020-06-27 20:30:44
if i do project/public
Acird Burn 2020-06-27 20:30:55
everything works
Acird Burn 2020-06-27 20:31:06
but if i use the htacess
|