Stack Overflow » Laravel
50 FOLLOWERS
Stack Overflow is a platform for developers and technologists to get answers on tough queries and build a community to share and gain knowledge with fellow co-workers. This category holds discussions specific to Laravel.
Stack Overflow » Laravel
19m ago
My Laravel web application is able to generate invoice in form of pdf. I want to integrate web.whatsapp.com onto the application such that the user can scan qr on web.whatsapp and send pdf via whatsapp using their number form my application.
Currently I use whatsapp API to send pdf, but drawback : the number associated with whatsapp API cannot be used on my mobile device. So my clients receive pdf from a different number and revert back to me on another number.
I want something like this video
Currently using API to send pdf ..read more
Stack Overflow » Laravel
19m ago
I have a library https://splade.dev/docs/using-vue-libraries. I'm using the Splade table.
I have app.js:
import { Carousel, Slide, Pagination, Navigation } from 'vue3-carousel';
const el = document.getElementById("app");
const app = createApp({
render: renderSpladeApp({ el }),
})
.use(SpladePlugin, {
"max_keep_alive": 10,
"transform_anchors": false,
"progress_bar": true,
})
.component('Carousel', Carousel)
.component('CarouselSlide', Slide)
.component('CarouselCharts', Chart)
.component('CarouselPagination', Pagination)
.component('CarouselNavigation', Navigation)
.mount(el ..read more
Stack Overflow » Laravel
3h ago
I am building an application on which users are able to start new chats with a chatbot. I built the frontend with Vue3, backend in Laravel 11, pgsql database and I have an external python API coupled with a redis database. Important thing:I store most of the data in the pgsql database including all of the chats and messages they contain. I also store the chats and chat messages in my redis database for my api to have faster access to the whole convo.
When a user gets on the new chat page (lets say url is https://www.my-app.com/chat) he can type some text in the chatbox then submit a new messag ..read more
Stack Overflow » Laravel
3h ago
I'm looking for a way to view the images contained in a private folder in storage: here is the asset storage/app/private/images/nomefile.jpg my problem is that I would like to view the images only via asset blade and not view them via the full path of the URL, this is because I would like them not to be public but only viewable in the app after authentication, so via asset() there is a way. I've tried them all but I can't, here's the code:
Controller :
$request->validate([
'image' => 'required|image|mimes:jpg,jpeg,png|max:8000'
]);
$imageName = time() . '.' . $requ ..read more
Stack Overflow » Laravel
3h ago
I am trying to implement Fedex APIs in laravel for national and international shipments. I am having issues with shipment create API. sometimes it works, sometimes not. The payload body is so extensive and I don't understand most of it.
I am calling get service types API
then rate quotes API
then create shipment.
How do I setup my create shipment API payload, so it works on any origin destination? Can anyone help me with this?
I have tried sending whole payload, but still it works on some origin destination combination, and with some, it doesn't work. I get multiple types of errors. Mostly I ..read more
Stack Overflow » Laravel
7h ago
I have a table that has a polymorphic relation with 3 tables, maintenance_dealer, obsolescence_dealer, and Hospital_Equipment_Master. I want to search based on two tables only maintenance_dealer and obsolescence_dealer, but whenever I send a request it searches all tables and since some relationships are only defined in maintenance_dealer and obsolescence_dealer, and not on Hospital_Equipment_Master it throws an error. Here is my code:
public function __invoke()
{
$searchParameters = request()->only([
'hospital_id',
'machinery_id',
'serialNo ..read more
Stack Overflow » Laravel
9h ago
I want to run some functions so that when one function is finished, it runs the next function. Can you explain that? Example: I want to run command Create a table and then run command migrate
like this image https://i.sstatic.net/6HHOXDzB.png
I tried to run it with events but it failed ..read more
Stack Overflow » Laravel
10h ago
Reading the Laravel 11 documentation I saw that sessions are stored in storage/framework/session, however according to the CIS Benchmark Guidelines this is somewhat unsafe, and our project has to follow some of these guidelines.
Does Laravel allow me to change the session directory to something like /tmp ..read more
Stack Overflow » Laravel
14h ago
i have an SyntaxError: Unexpected end of JSON input and i dont know how to solve that. My method at controller was return a json but why its still error. When i change the method to post it ok but i need it as get , please help me
This my code to fetch endpoint at my laravel 10 controller
async function searchFunction() {
let input, filter;
input = document.getElementById('searchInput');
search = input.value;
try {
// Make a request to the server
const response = await fetch(`/warga/search?search=${search ..read more
Stack Overflow » Laravel
15h ago
i have built an app with Laravel l1, when I transferred the app to my production server i got this error:
This page isn’t workingpulse.connectyu.com is currently unable to handle this request.
HTTP ERROR 500
here is my public_html/public/.htaccess
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews -Indexes
</IfModule>
RewriteEngine On
# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
# Redirect Trailing Slashes If Not A Folder...
R ..read more