sunnyboy sunnyboy
3

How to iterate the json object in my view?

I am getting a json response from an api as below: {"element_root":{"tasks":[{"progress":0.700323,"task_id":"1&q...
Madhukar Madhukar
3

How to send the following in Guzzle POST HTTP request

Hey folks! I want to send the following curl request in the form of Guzzle HTTP request, I cannot figure out how to send the apikey. Any help is highly appreciated....
AbdulBazith AbdulBazith
3

How to fetch rate of a product from db which is selected in select box in array

Guys iam working with a project inventory control i have a purchase order form which is table structure product name(select box), quantity(textbox) and rate(textbox...
moses moses
7

Can I make CRM like Salesforce using Laravel and adminlte?

I want to make CRM system with Lead Conversion and Inventory Forecast. It looks like simply version of SalesForce(...
sunnyboy sunnyboy
0

IBM Watson Tone Analyzer with Laravel 5.7

I am trying to figure out how to use the tone analyzer within laravel project since couple of days. But not sure how to display it to the frontend. Need some help if in cas...
towhid towhid
16

SQLSTATE[42000]: Syntax error or access violation: 1075 Incorrect table definition; there can be only one auto column and it must be defined as a key

when i am using this migrations then show this error how to solve this issue public function up() { Schema::create('front_p_visa_infos', function...
Laravel
16
158
towhid towhid
9

How to populate timezone selectbox

shall i add static or other's way of show dynamically...
Laravel
9
105
cemcminn cemcminn
11

How to make list values available for multiple controllers (drop down view)

I am developing my first project. Things are going fairly well, but now I think I have missed a concept: I have a 'person' model (defined relationship: hasOne state...
Laravel
11
89

Curl error (code 3)

Hi! I have just updated my Laravel using composer update, unfortunately, I run into this problem. I wonder what went wrong? [2019-02-21 11:52:43] local.ERRO...
asad98iftikhar asad98iftikhar
1

Argument 1 passed to Illuminate\Auth\SessionGuard::login() must implement interface Illuminate\Contracts\Auth\Authenticatable, instance of App\role given

I am creating a field in different table from the RegisterController When i remove this Role Creation all is working Fine This is mine controller function...
zaster zaster
31

MethodNotAllowedHttpException in RouteCollection.php

web.php Route::prefix('employee')->group(function () { //More Routes //POItem Section Route::post('/poitem/create', 'Employee\P...
Laravel
31
158
adjaf adjaf
1

Artisan custom console command gets DB Access Denied

Hello, we are deploying Laravel as an API in AWS with MySQL. Everything is working fine except for the custom commands. We need to schedule two of them, the schedule is wor...
michaeldzjap michaeldzjap
15

Ajax FormData and PUT fails

I'm trying to update some form data using the @update action of a resource controller, but along the way learned that apparently it is not possible t...
Laravel
15
484
Ranx99 Ranx99
1

Get vimeo's video duration and other info

In my website, I am allowing users to upload videos to Vimeo through their API to my account, then after uploading.. Vimeo will take sometime for trans-coding the uploaded...
SamHam SamHam
8

Where to store global variable

I'd like to get some opinions on the best approach to storing a global variable that will be accessible to my models, views and controllers. The variable itself woul...
BarryJames BarryJames
6

Using a ManyToMany with additional Pivot fields - dedicated Model or not?

Hi I'm afraid I've complicated things and now I'm a little stuck, have read many articles but still cannot find the solution. So I have 2 resources - Users and Properties....
artisticre artisticre
2

Insert ID in different Table

I am trying to have the user_id inserted in my post table when the post is created but it isn't working. What can I do? public function store(Request $reque...
eleman eleman
6

User Profile Rating 1-5 rating star like

Hello, Everybody. Am requesting for your help, Am having trouble to implement a system where one can be able to rate a user profile and write a review. if you have a...
sunny_jay_jay sunny_jay_jay
4

Laravel logging to gzip rather than .log

On my AWS server all my Laravel log files older than today get gzipped and the .log file emptied. In my development environment on a local server this does not happen and I...
Another_X Another_X
1

Is there a way i could provide paramatere for all controllers used inside route group?

I am creating a multi-tenant app and I have created tenant scoping. Now, I would like my URL to have a tenant prefix but this creates a problem for me in the controllers, b...
Tim-KH Tim-KH
3

Moving a Method to a ServiceProvider vs Model

So I have a method in one of my controllers that I would like to use in a different Controller. But since I know I shouldn't be calling a method inside a controller from an...
SkyCoder SkyCoder
6

How to go in infinite foreach if there is a child

I want to output folder structure within ul>li>ul>li as long as there are sub arrays: <ul class="nav nav-pills flex-column"> @fore...
artemkopytko artemkopytko
2

Can't pass data via POST Ajax to Laravel 5.1

I've met a problem that I can't pass a variable via AJAX to Laravel Controller. Here's my code: AJAX function to submit an order: function submitOrder...
agilasadi agilasadi
3

How to get none related objects of Many to Many relationship

I have users and news table and then a middle table called news_user, the middle table determines which news has been seen by the use...
DesignDepotNL DesignDepotNL
5

Naming Routes

I've extended the task app Jeffrey builds in the Laravel from Scratch series. I've added a delete button after the task so the user is able to delete the tasks as well. All...
bartabel bartabel
4

Job still present in horizon after ->delete() ?

I'm trying to limit job concurrency on Redis, as described here: https...
marcellopato marcellopato
2

laravel-oci8

I´m trying to install yajra/laravel-oci8 on Laravel 5.7.* but always got this: composer require yajra/laravel-oci8 Using version ^5.7 for yajra/laravel-oci8...
Mike_3096 Mike_3096
2

SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: )

Hey guys i am creating a new db with Artisan::call() initially i'm able to migrate the database tables with php artisan migrate but later it throws access denied error.....
stemie stemie
1

Get error message from raw database query DB::getPdo()

How can I get the errror message from the raw query, for example: DB::connection('mysql2')->getPdo()->exec($sql); this just returns 1 or 0 I need...
learner1982 learner1982
10

Controller <> Model Conflict?

i'm considering to use the same import alias, for my models, in all my controllers. Example: App\Http\Controllers\ProductController.php use App\Produc...
Laravel
10
104
fikri1510 fikri1510
10

How to assign field from another model?

I have Model Profile and Participant, they are related by ssn. I want to save Participant to database from ParticipantController where one field is coming from Profile mode...
Laravel
10
74
JanakaDombawela JanakaDombawela
9

Laravel default login redirection not working

Hi I have installed the Laravel 5.7 version and when I go to authenticated url it redirects to the login page, but after login it redirects to home page. This authen...
nhayder nhayder
7

How to get a file size

I'm wondering how to get file sizes for these file formats pdf, imag, mp3, zip, video and maybe for video and audio files is there is a way to get the duration and dimensio...
NewbieToLaravel NewbieToLaravel
7

Using foreign keys in blade

Hello guys, I am developing a laravel webapp. I have a form to create new projects, one of the attributes is in fact an attribute of an other table "domaines&qu...
Laravel
7
172
mirkin93 mirkin93
8

Illuminate\Database\QueryException SQLSTATE[HYT00]: [unixODBC][Microsoft][ODBC Driver 17 for SQL Server]Login timeout expired

When I try to connect to my SQL Server with my Laravel App I got the error: Illuminate\Database\QueryException SQLSTATE[HYT00]: [unixODBC][Microsoft][ODBC Driver 17 for SQL...
Create a New Discussion Button