返回首页
We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [laravel]

Laravel is a free, open-source PHP web framework, created by Taylor Otwell and intended for the development of web applications following the model–view–controller (MVC) architectural pattern and based on Symfony. The source code of Laravel is hosted on GitHub and licensed under the terms of MIT License.

Filter by
Sorted by
Tagged with
0
votes
0answers
5 views

Class 'Memcached' not found in Laravel Elastic Beanstalk App

I am deploying a laravel 6 project to an amazon elastic beanstalk application. It's running php7.3. During eb deploy ERROR: ServiceError - Failed to deploy application. Looking at logs I see ...
0
votes
0answers
5 views

Laravel Multi Tenancy Queue Worker - Works in Command Line But Not Artisan:call

I have a Laravel multi tenancy set up, so that each tenant has their own database with the Jobs/Failed Jobs Tables in, And a default database with the list of tenants and their database names. (when a ...
0
votes
0answers
10 views

Laravel page blank after redirect?

I'm trying to make a redirect from an <a> html and it redirects to the correct link but the page is blank, the vue file is not empty so the page should not be blank. I'm not sure why it's blank ...
0
votes
0answers
6 views

curl_setopt_array(): cannot represent a stream of type Output as a STDIO FILE* - Laravel 5 / Goutte

I'm using Goutte and Laravel for web scraping. But unfortunately I'm getting this error. curl_setopt_array(): cannot represent a stream of type Output as a STDIO FILE* This is my code. $...
0
votes
0answers
10 views

Can't send emails through Laravel task scheduler

I have worked a lot with Laravel in the last two years but never had to create a scheduled task. I followed tutorials to create my command but I face a problem now everything is prepared to work. My ...
1
vote
2answers
17 views

Laravel login timing out

After starting up a new Laravel project, creating the UI with bootstrap, and setting up the auth controllers using: php artisan make:auth I ran the database migration and seeded a user which came ...
0
votes
1answer
19 views

Get class methods on an extended class from within the parent class

I have a trait AutomatedEmails with a submit function, part of which features the below: AutomatedEmails.php: if (!method_exists($this, str_replace('-', '_', $slug))) return redirect()-&...
0
votes
0answers
22 views

I have a problem in updating student semester after they passes the exams and goes to next semester

I am working on a project of university management system I want that my system be an automatic so after 4 month the students that passes the semester the semester should increments and when again I ...
2
votes
0answers
22 views

What is the different between LaravelRedis::connection() and Redis::connection() In Laravel 5.7?

In Laravel 5.7 LaravelRedis::connection() can't return any data but Redis::connection() return data successfully, i run this command "composer require predis/predis" before use redis. so is there any ...
0
votes
2answers
25 views

Laravel “with” is not populate related model

I have two tables in Laravel Eloquent: UserCategory: id | user | category and Category: id | name UserCategories relates to Category trough belongsTo: class UserCategory extends Model { ...
-1
votes
1answer
22 views

For Laravel Project is it possible to assign another back up server?

I am running a laravel project, i have backed up the data from the database to a second database. in case if the first database goes down how to configure the second database to be used.
0
votes
1answer
30 views

Laravel Select Query and Pagination

I've been trying to perform a multiple table based query on my laravel project and I got it done for a while. Now, I realized I had to add a paginator for a better user experience. The thing is that ...
0
votes
0answers
12 views

How to get notifcation property along with data

I have a notification logic where I notify to users when the quantity of stored items becomes zero Like this // Notify users if out of stock if ($item_object->quantity == 0) { ...
0
votes
1answer
25 views

laravel model morph to itself and other models

i'm in misunderstanding concept of laravel elequent models i have an model called Article that has a table with columns $table->bigIncrements('id'); $table->string('title')-&...
0
votes
0answers
21 views

Order data by order column within pivot table

I've got 4 tables groups, cats, faqs, and faqcats. faqcats is a pivot table and currently holds group_id | cat_id | faq_id | cat_order | faq_order I want to display the category once then display ...
2
votes
0answers
15 views

How should I store the access token to my API in the browser after login flow authorization

In creating a web app I'm keeping my web client and backend API completely separate. My Laravel API backend will exist on api.myawesomeapp.com and my NextJS front end will be the main consumer on ...
0
votes
1answer
35 views

PHP - How to send a SoapClient Request having multiple elements under a node with same name in the XML request body?

There are two SOAP endpoints I am trying to consume using WSDL. I have been able to successfully implement the first, I'm currently having issues with the second because of the way the XML request ...
0
votes
2answers
27 views

Vue router navigation guard prevent url from being changed

I'm using a vuejs navigation guard to do some checks to check if a user is valid to enter a page. If the user doesn't meet the criteria I want the auth guard to return false which it currently does. ...
0
votes
0answers
22 views

Visual Studio Code and Laravel commands

I have MacBook and I use Visual Studio Code. I am beginner with Laravel. I use Laravel 5.8 in my project. When I open command+shift+p and choose: Artisan Migrate Fresh I get this error: [ERR] ...
0
votes
5answers
36 views

Add foreign key to a migration (Laravel)

I´ve spent the whole day trying to figure out what is happening with the following migration. This the migration of the table. My idea is to use 'id_stays_abroad' and 'user_id' as foreign keys. ...
0
votes
0answers
24 views

Object of class Illuminate\Pagination\LengthAwarePaginator could not be converted to int

public function index(Request $request) { if($request->search) { $posts = Post::join('users', 'author_id', '=', 'users.id') ->where('title', 'like', '%'.$...
0
votes
0answers
12 views

Laravel Mollie with other merchants

I use this package http://github.com/mollie/laravel-mollie for my project. I have tested it with my test account and works fine. Now I want other people to register on my website and add items to ...
1
vote
2answers
34 views

API validation errors not showing In Laravel

I am trying to make a post request to my Laravel post endpoint but I am not getting any validation errors. Controller class LoginController extends Controller { public function adminLogin(...
0
votes
2answers
37 views

Laravel data is not getting inserted for some columns

I am trying to insert the data in laravel where I want to insert 4 columns in DB - empid, name, in-time and out-time. but i am getting syntax error 'unexpected =' for columns separated by '-' e.g: ...
0
votes
1answer
24 views

Laravel API Rest doesn't work in device Android

I have an app in IONIC and in browser the call to API works but when I run on android device it shows this error: HttpErrorResponse {headers: HttpHeaders, status: 0, statusText: "Unknown Error", url: ...
0
votes
4answers
27 views

How to create custom validation rule in Laravel 6 API

I need to use my custom validation rule for validating API requests. Request Class: This is my request validation rule. namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; ...
0
votes
0answers
15 views

Barryvdh/Dompdf blank page issue and large text is not displaying to next page in PDF

I am getting some issue of blank pages in Barryvdh/Dompdf package while generating PDF. It does not render large text content to the next page and displays underneath the bottom of the page. It also ...
0
votes
1answer
32 views

Laravel - compact(): Undefined variable: operator in Builder.php

I have PHP version-7.3 installed in my system and Laravel-5.8. When I tried to rub composer install or composer update on an old Project with Laravel-5.4 and PHP Version-5.6.4, I got this error shown ...
0
votes
1answer
13 views

What will be the expiry time, when we set SESSION_DRIVER / CACHE_DRIVER as redis in Laravel?

Session lifetime is set as below 'lifetime' => 10080 Now I just want to set an expiry time when we set "SESSION_DRIVER" as Redis SESSION_DRIVER=redis If we set "CACHE_DRIVER" as Redis cache ...
0
votes
0answers
28 views

Laravel 6 Session does not persist between api.php and web.php

Both of the files I put together in web.php so that they share the same web middleware. But the session does not Store I am create a SMS OTP system. In the API\SmsController@create function I run $...
0
votes
0answers
12 views

Not found the filter: ModelFilter mohammad-fouladgar/eloquent-builder

So i am using this Eloquent Builder http://github.com/mohammad-fouladgar/eloquent-builder And i am trying to do some filtering, but whenever i try to define filter, i get error: http://prnt.sc/...
0
votes
2answers
37 views

Laravel Crud Application Editing a record

I have a problem with my Laravel crud application for Registrations. There are these tables: Registration, ExtraRegistration (with a registration_id, extra_id and extraoptions_id), Extra and ...
-1
votes
2answers
38 views

How to concatenate a columns in Laravel Eloquent? [duplicate]

Considering this customer table with the following columns: first_name middle_name sur_name extension thus: id first_name middle_name sur_name extension -------------------------...
0
votes
1answer
40 views

How to select sub-query with left join inside using eloquent?

I'm very new to Laravel, how can I make this query in Laravel using Eloquent model: SELECT ( SELECT departments.deptname FROM school.counts LEFT JOIN reference.departments ON counts....
0
votes
1answer
33 views

Source of method in Laravel

In the source code of Illuminate\Mail\PendingMail (API reference), the queue method references $this->mailer->queue. However, $this->mailer is an instance of Illuminate\Contracts\Mail\Mailer (...
0
votes
2answers
28 views

PHP Laravel How to get original pdf file name and make it downloadable

I want to make a page in my laravel-application, where it should be possible to download a bunch of PDF-files. I've created a Model and a Controller, and within my Nova backend, I have uploaded some ...
-1
votes
0answers
31 views

Testing method that store data in two tables in Laravel

I've a method for create a new user, that create a new row in other table domains. I think that only, I can do the test, if when I return the api response, I return the user and domain data, which I ...
1
vote
0answers
27 views

Dispatching to queue always chooses the default connection

I have an application running many different kinds of jobs that run for several seconds to an hour. This requires me to have two seperate queue connection due to retry_after being bound to a ...
-1
votes
1answer
48 views

how to get a whole collection outside foreach loop without saving it in an array

i have a collection inside foreach loop named $ManualProducts now i am trying to access that collection ouside the loop without saving it in an array foreach ($productlisting as $product) { $...
1
vote
2answers
36 views

CSS Cache Laravel

I have a site under Laravel based on a template uploaded on Themeforest. I use the CSS proposed by this template. I would like to set up custom CSS rules but I have the impression that Laravel has a ...
0
votes
1answer
20 views

File upload with el-upload and axios, no progress bar

I have created file uploader with element ui and axios. but there is no progress bar to display the progress of uploaded file. <template> <div class="app-container"> <h1>My ...
-1
votes
0answers
26 views

October CMS | Is it possible to disable checkboxes for certain rows or hide certain rows?

I am creating a plugin which allows people to add their own payment statuses and payment methods. There are two values in my payment statuses model which I require for a reportwidget I use in the ...
1
vote
1answer
25 views

Laravel - How to pass cached value to multiple views without extra requests?

Have several data collections that are retrieved from cache and need to be passed to several different views. For performance optimization need them to be retrieved only once, without extra requests ...
0
votes
3answers
62 views

Laravel Custom Controller getting 404 error

I have created the new controller using command line on laravel php artisan make:controller PhotoController --resource just display the string on a function of PhotoController like below <?php ...
-1
votes
2answers
42 views

Like + Dislikes Laravel

I am working on a web programing assignment for University and have hit a snag when trying to make a like and dislike function for a comments area of a guestbook. Evectively the numbers on the site ...
-1
votes
0answers
20 views

Best practices to handle user expiry date in laravel

What is the best way to manage user expiry in the web application? I've an application developed in laravel in which I set user expiry date as per the plan duration after the payment is successful. ...
-1
votes
2answers
41 views

Laravel Crud Editing makes a new record

I have a problem with my Laravel crud application for Registrations. There are these tables: Registration, ExtraRegistration (with a registration_id, extra_id and extraoptions_id), Extra and ...
-2
votes
0answers
27 views

Laravel project not working in cpanel faced error Target class [App\Http\Controllers\fileController] does not exist

Laravel project not working in cpanel faced error Target class [App\Http\Controllers\fileController] does not exist. But project completely running locally without no error. Error image route.php ...
3
votes
2answers
47 views

How to add a where condition with a variable to my controller?

I have a search function and I want to add a where condition for results. Here is my view @foreach($users as $user) <li class="col-sm-4 col-xs-6 md-margin-bottom-30"> ...

返回首页
杏彩计划 杏彩官网 杏彩APP 杏彩走势图 杏彩下载 杏彩官方 杏彩网站 杏彩怎么玩 杏彩官方 杏彩靠谱吗 杏彩代理 杏彩骗局 杏彩投注 杏彩倍率 杏彩开奖 杏彩漏洞