Support the ongoing development of Laravel.io →

2,389 Threads

How to pass data to json from Database?

Hello, Here is my Row Query to get the data from database. $user = DB::table('users')->get(); I w...

0 Likes
7 Replies
Solved
posted 8 years ago

syntax to check a value in a if statement

Is the below if statement correct, where newQ and newP are values, and post_type is a variable :...

0 Likes
3 Replies
posted 8 years ago

need to check a specific value selected by the user in a radio button

I have a very newbie question in Laravel. In the controller I want to create something like : if ($Q...

0 Likes
0 Replies

Link each product to its product_details page

In native PHP it takes about 2 minutes to link each product on the page to its product_details page...

0 Likes
4 Replies
Solved
posted 8 years ago

Laravel 5.2 BUG: CORS, GET not working with preflight OPTIONS

The dreaded CORS Error: Cross-Origin Request Blocked: The Same Origin Policy disallows reading the r...

0 Likes
6 Replies

How do I use chunk to insert large amounts of data into database?

I would like to insert a large number of rows into my database using chunks, but I am not sure I am...

0 Likes
2 Replies
Solved

response()->json() return an object instead of string json

Hello, I make a get ajax request, and my controller is in charge of making query to the database and...

0 Likes
4 Replies

Why does the update to AWS SDK break Laravel 5.1?

So we have a Laravel 5.1 API running on our systems, and use the AWS SDK for php for pushing jobs to...

0 Likes
1 Replies
Solved
posted 8 years ago

posted text from ckeditor is not getting modified text

Hi i use ckeditor in my form it appears on the edit form and populated with the text from db but now...

0 Likes
0 Replies

Another problem only with Chrome

Hi guys,.. today i've an error yet with Chrome.. This is the message that i see when i try to load t...

0 Likes
24 Replies

Upload and display mp4 files?

###Best way to upload mp4 file on disk and display them in video tag on the page? ###For example: ##...

0 Likes
0 Replies

Schedule jobs + Cli command or Controller->Route script + Cron Job?

Hello, I'm having an issue what is best approach to schedule job in laravel. Setup is like this: The...

0 Likes
1 Replies
Solved

how to to interact with response, before it is sent

Is there anywhere in the app life cycle in which I can interact with the response given from a route...

0 Likes
2 Replies
posted 8 years ago

How can I route pages that create by pagination to a controller

When get data from database like this $reviews = Review::latest('created_at')->paginate(5); Lara...

0 Likes
1 Replies

how to save array of json Laravel Vue

I posted this question on Laracast forum.However,I have not got a solution,so please excuse me to po...

0 Likes
1 Replies
posted 8 years ago

Route POST error 500

Hi,I I'm a beginner,I have a problem about Route. I write a post route,when I click submit on brows...

0 Likes
5 Replies
Solved

Unit testing get error value about form request. Session missing key: errors

I'm try to write a unit testing for test form request in Laravel 5, but I can't not get data from &q...

0 Likes
2 Replies
Solved

order by related table while using with()

Hi, i have the following code for listing, sorting and filtering products. $query = Products::query...

0 Likes
0 Replies

Custom Validators not working

Hey everyone, I am having issues in my Lumen (v5.2.*) application with custom validators. I have a...

0 Likes
3 Replies
Solved

Removing index.php from URL Laravel 5.1.16

Just updated to 5.1.16 on my local install and everything seems to work fine with my pretty URL's ie...

0 Likes
4 Replies
Solved

Thanks to our community

Solutions given in the past year. Excluding solutions from thread authors.

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.