Questions tagged [laravel-5.7]

1

votes
1

answer
257

Views

Consume Passport fror Ajax calls : Laravel

I am using Passport within my Laravel-5.7 based application. It is first time for me to work on any Laravel application using Passport. I am able to generate oauth_access_token successfully. However, integrating Passport in my application breaks running ajax calls. I tried to find solution on Intern...
BlueSuiter
1

votes
0

answer
433

Views

Laravel 5.7 - Change .env file location for production

I use Dokku to host my Laravel 5.7 project. I have a .env.production for production environment. I have a .env.staging for staging environment. I have a .env.local for local environment. I can add Dokku config APP_ENV=production on server and I want Laravel know the file to use by APP_ENV.
pirmax
1

votes
0

answer
631

Views

Signed route for email verification does not pass signature validation

I recently updated my project from Laravel 5.6 to 5.7 and added the email verification steps described by Laravel docs to my project. Everything works great on my development machine (which is http) but when I update my production server (which is https) with all changes then when laravel sends me...
Wayne Fulcher
1

votes
0

answer
40

Views

FLAC Recording from iPhone not getting Converted Using Google Speech API

I have Configured AVAudioRecorder as below to record Audio in Flac Format Recorder Configuration let settings: [String: Any] = [ AVFormatIDKey: Int(kAudioFormatFLAC), AVSampleRateKey: 16000, AVNumberOfChannelsKey: 1, AVLinearPCMBitDepthKey: 16, AVEncoderAudioQualityKey: AVAudioQuality.high.rawValue,...
iOS Geek
1

votes
1

answer
763

Views

File will not upload using laravel 5.7 forms

I switched from the laravel collective forms of 5.4 to the forms of 5.7. everything was working perfectly until I switched and tried using the new forms. I'm trying to upload a simple picture with a text post. The text is uploaded in the database, but the picture/file is not. I'm not sure what I'm m...
adam hardy
2

votes
2

answer
103

Views

How to make laravel read foreign language characters from mysql database?

It is converting a readable character to 'á‹á‹µ ደንበኛ'. I am using 'utf-8' for the columns of the table
Aman
1

votes
0

answer
105

Views

Laravel, show only owner's product list throw same Route and multiple Models

I am trying to display multiple owner's product lists throw the same route. For example, my route is: http://example.com/store/public/products N.B: I don't want to put id in the route. Now, I have five tables. They are like, users table +----+---------+------+-------+----------+ | id | role_id | nam...
Foysal Nibir
1

votes
2

answer
312

Views

Laravel MustVerifyEmail is not sending e-mail

I'm currently working on a project with Laravel 5.7. As I implemented the MustVerifyEmail class in my User model, the application does not send email as expected. The case is: 1) I have followed the Laravel documentation here: https://laravel.com/docs/5.7/verification 2) I used https://mailtrap.io t...
Seah Sky
1

votes
0

answer
303

Views

Receiving post-autodump-load error when pushing to Heroku

I am running into the following errors when trying to push to Heroku using git push heroku master. I thought I had updated everything, but nothing seems to be working.I have also compared to a recent application that I was able to push successfully. I've included my composer.json file. Laravel 5.7,...
Beth
1

votes
2

answer
38

Views

Property [task_category] does not exist on this collection instance

enter image description here Model in Laravel 'Property [task_category] does not exist on this collection instance.' public static function findOrCreate($plan_id, $data) { $fromDate = Carbon::now()->subDay()->startOfWeek(); $nowDate = Carbon::now()->today(); $spent_time = static::where('plan_id', $p...
Lia nur fadilah
1

votes
2

answer
198

Views

Laravel Update Database with ajax

Hey guys I'm using laravel 5.7 and I'm attempting to make a ajax post request to update my database. The ajax would post based on a checkbox on change function. Example if i toggle off the checkbox it would send a request and update my status to Inactive in my User table. After attempting it, i had...
Dexter Siah Tze Ming
1

votes
0

answer
26

Views

can save when create new data, but can't calculated data by category

Model can save when create new data, but can't calculated data by category public static function findOrCreate($plan_id, $data) { $fromDate = Carbon::now()->subDay()->startOfWeek(); $nowDate = Carbon::now()->today(); $spent_time = static::where('plan_id', $plan_id)->first(); if (is_null($spent_time)...
Lia nur fadilah
1

votes
3

answer
271

Views

get HTTP code in json response in laravel

I need to save the response code that was sent via json, for example 404: Route::fallback(function(){ return response()->json(['message' => 'Not Found'], 404); })->name('api.fallback.404'); I tried with this code: use Illuminate\Http\JsonResponse as Resp; if (!$this->response_code) { $this->response...
Sandro
1

votes
1

answer
66

Views

How to create a three way pivot using Eloquent ORM

Very new to Laravel but am loving what I am seeing so far. I am working on an application where Clients attend Sessions and Sessions can be attended by many Clients. In addition to this, Clients may also complete Assessments in Sessions they attend on an individual basis (i.e. one client = one asses...
Zakalwe
1

votes
1

answer
46

Views

can't save data, when create new data by same category

Model error : 'Array to string conversion (SQL: update spent_times set updated_at = 2018-10-23 09:16:43, spent_time = 16, percentage = 70, task_category = testing where id = 1) ◀' public static function findOrCreate($plan_id, $data) { $fromDate = Carbon::now()->subDay()->startOfWeek(); $nowDate...
Lia nur fadilah
1

votes
1

answer
29

Views

Need To Assign My Vendor's ID To InvoiceTable - One To Many Relationship

I'm using Laravel 5.7 & VueJs 2.5.* ... I have a TicketInvoice and each TicketInvoice is related to a Vendor. Like a Vendor hasMany() TicketInvoices and a TicketInvoice belongTo() a Vendor. Now the issue i'm getting is when i create my invoice, i have a list of Vendors, i need to select the vendor f...
Saif Zakir
1

votes
0

answer
36

Views

Dropzone with Laravel. Large files cause 500 error

I have increased these settings in php.ini: memory_limit = 500M post_max_size = 256M upload_max_filesize = 256M The config settings for dropzone.js are: acceptedFiles: 'text/csv', timeout: 3000000, maxFilesize: 128, // MB Trying to upload 50MB csv files. File seems to upload fine but I immediately g...
Kevin Warren
1

votes
2

answer
421

Views

Laravel Bootstrap CSS Link {{ asset }}

I would like to know, why on fresh Laravel install, the following code does not link Bootstrap CSS file with the blade.php file, this is what I believe the correct code to make it work:
1

votes
1

answer
205

Views

Installing MDBootstrap (Vue version) in laravel 5.7

I've been trying to set up a project in Laravel 5.7 and one of the requirements is that it need to have MDBootstrap and Vue.js. I tried following the official guide for installing MDB Vue as a dependency using npm install --save mdbvue but now according to the guide, now I need to add 2 imports imp...
natral
1

votes
0

answer
121

Views

Laravel 5.7 Problem in multiple authentication(This page isn’t working)

I just started in Laravel framework. I'm watching the tutorials on youtube 'How to make a multiple authentication'. Everything is working well, I can login for both users(user/staff),register new account but I realized that when the credentials is incorrect(either of the two users) it will give me a...
Angel
1

votes
1

answer
149

Views

Adding Data to the multiple column in laravel 5.7

Hi I am working on a project and I need to do some addition while working on a table. like I have to fill the three fields and change the status to 2 using checkbox Array. I tried it all but with no luck. Kindly look into it and Let me know the changes I can Do. My Model CustomerLoad.php is
munish rana
1

votes
1

answer
332

Views

How to stream download data from current view in Laravel 5.7

I am making a basic database application that allows users to submit search parameters through a form and have the results displayed in a view. I create a query from an Eloquent model, paginate, and then send the results to a view. I would like to place a link on the results view that lets users dow...
Registered User
1

votes
0

answer
24

Views

Blueimp S3 Thumbnails Don’t Display

I'm using Blueimp with S3 in my Laravel 5.7 project, the upload worked perfectly but it's not showing the thumbnail after upload. I'm using a temporary URL to view the files, but only the thumbnail is not working. Has anyone had a similar problem? Upload return JSON for Blueimp $photographSave = $al...
Rodrigo Mariano
1

votes
1

answer
50

Views

How to send email to a user upon receiving an email from another user?

So I am trying to build a system that works like the facebook email notifications where a user receives an email based on some actions performed by another user. Then, the first user may reply to that email and the second user will also get their reply. Now I understand how to send basic emails. But...
goodhand
1

votes
1

answer
71

Views

vue-date-pick cannot display the calendar design

in my laravel + vue project, i install and import the vue-date-pick. But suddenly when i run my web, this is the output of date-picker This the code for install the vue-date-pick in app.js in laravel. import Datepick from 'vue-date-pick'; vue.component('date-pick', Datepick); This the vue-date-pick...
Peejong
1

votes
3

answer
39

Views

Laravel Using Stale Files?

I have a Laravel project that was generating errors, so I deleted the offending line, pushed the code to the repository, pulled the code onto the production server and retried. However, I'm still getting the exception referencing the line of code which no longer exists. I checked the production ser...
mankowitz
1

votes
0

answer
25

Views

Laravel - Reading data from cache file inside GlobalScope apply function

I am trying to read some data from cached filed previously stored after user has logged in. If auth()->attempt($credentials) passes i store some users data to cache file. $user_id = auth()->user()->id; $user = User::with(['roles.perms','offices.clients','offices.locations.country'])->find($user_id);...
user3605921
1

votes
0

answer
60

Views

Multi auth while one guard should be multi-tenant plus socialite

So, i need to have a multi-auth system which is fairly straight forward (going to use the following just to make it easy on me: https://packagist.org/packages/bitfumes/laravel-multiauth) However the problematic part of all this is that one of them guards should be multi-tenant, i'll explain: the f...
YahavIL
1

votes
1

answer
171

Views

Cannot load fonts in Laravel 5.7 & Vue 2 project using Element UI & iView UI Toolkit

I recently installed laravel v5.7 and vue 2. I then installed Element UI and iView UI Toolkit, everything works perfectly, but anything that uses icons in any iView UI component shows square blocks, but i want the result to look like the documentation where i the alert has an icon. I have searched a...
Julian Tabona
1

votes
1

answer
242

Views

Email Verification in laravel 5.7 for admin guard

I want to implement must verify in admin routes, i have admin guard and all routes related to admin, how can i achieve this functionality for admin guard in Laravel 5.7
Krish Bhardwaj
1

votes
0

answer
176

Views

Multiple image upload in Backpack/Laravel

I am making a photography website, and I have categories there. For example: 'Wedding', 'Streets' and etc. However, I want to add many images to particular category at once, and I have another table for this called 'images' table. It has 2 columns: name and category_id . In Backpack it has 'upload m...
Адыль Алиев
1

votes
2

answer
286

Views

Asset Helper Function Not Working Correctly in Laravel 5.7

I'm new to MVC and Laravel, and I'm trying to include CSS but getting a 404 error. The URL it's generating is... http://localhost/testing_laravel/css/app.css If I use the URL this way instead... http://localhost/testing_laravel/public/css/app.css It works fine. My question is why do the tutorials...
Mohsin
1

votes
1

answer
53

Views

Has anyone experienced Laravel Artisan commands returning the opening <?php tag in responses

I have been putting together a web application with the latest version of the Laravel framework (5.7 as of current time) and i have noticed a rather frustrating bug with the Artisan functionality. As an example when i run php artisan migrate i get the below example response:
Chris Harker
1

votes
2

answer
59

Views

Get last from relation where is condition

I have two tables with relation one to many. My task is quite simple, I need for each parent last item from relation table where is applying condition. First table is status: | id | partner_id | status | created_at | |----|------------|--------|---------------------| | 1 | 1 | 1...
Jaroslav Klimčík
1

votes
0

answer
33

Views

How can i receive broadcast notification for admin guard?

I am doing broadcast notification for admin guard and have done broadcast notification on pusher server, notifications are displayed in pusher server but i am not able to print notification on console This is my app.js code Echo.private('App.Model.Admin.Admin.' + userId) .notification((notification)...
Krish Bhardwaj
1

votes
2

answer
57

Views

using Laravel 5.7 : how can i get json value name from an array ?

I want to get the names values from a JSON array. { 'workspaces': { 'workspace': [ { 'name': 'SITR', 'href': 'http://localhost:8080/geoserver/rest/workspaces/SITR.json' }, { 'name': 'fire', 'href': 'http://localhost:8080/geoserver/rest/workspaces/fire.json' }, { 'name': 'info-geospasial', 'href': 'h...
shee
1

votes
0

answer
39

Views

How to open list where parent_id with laravel and vuejs

I have a categories table with below picture. I want to when click on parent_id => 0 open collapse sub category with parent_id => 1. Category.php class Category extends Model { public function parent() { return $this->belongsTo(Category::class, 'parent_id'); } public function children() { return $th...
Mahmoud Khosravi
1

votes
0

answer
38

Views

Sometimes get data and sometime gives an error which is not valid json in Angularjs with Laravel 5.7? Looking For Answer

I am working in laravel 5.7 along with angularjs. I receive the data but sometimes it gives me data and sometime it gives me an error which is data is not valid json form, parse {} error. Below is my angularjs code $http({ method: 'GET', url : 'get-portlanding' //Laravel route }).then(function(resp...
Akhtar Munir
1

votes
2

answer
509

Views

upload file on laravel 5.7

Hello i have some issue on code .dont want to upload file on database and i do all operation adviced here but that not resolved solution on my case and this is the error and code : Argument 2 passed to Symfony\Component\HttpFoundation\RedirectResponse::__construct() must be of the type integer, arra...
Badr

View additional questions