AbdulBazith AbdulBazith
8

How to make a printout in laravel

Guys iam working with a project Inventory control system. when a purchase order is done i need to take a print out. i have a button while viewing the purchase...
Laravel
8
101
moukbel moukbel
4

Send Email using Gmail - localhost

i got this error: Swift_TransportException Expected response code 250 but got code "530", with message "530 5.7.0 Must issue a STARTTLS comman...
AbdulBazith AbdulBazith
3

Hosting shows error msg http 500 error

Guys i have done a project in laravel now i tried to host it in shared domain. actually there is no seperate domain for this project. so my boss decided to ho...
AbdulBazith AbdulBazith
9

php version problem when deploying laravel project

Guys i need to deploy a laravel project in cpanel. i deployed. but i got error http error 500 i found many solutions and at lasti found that php...
behnampmdg3 behnampmdg3
6

How can I write this with Eloquant

SELECT members.name, members.email, members.created_at, courses.title FROM members INNER JOIN courses ON courses.id = members.course_id AND...
appyapp appyapp
7

Custom database queries not linked to any model - where to put

I am working on an existing site developed using plain PHP and have started developing a section of the site using Laravel. I am new to Larvel and it's concepts and have so...
nirmalsp nirmalsp
3

Auth::attempt method always bind with users table?

I have very big doubt in Auth::attempt method, when i read the documentation it say we can use it also we can customize it with some array of values, but i need to know is...
behnampmdg3 behnampmdg3
1

sortable, variable loses value after "stop"

This is very strange. The first console.log pronts 1 but the second one is totally different. Does"stop" do something to the variables?...
rijans rijans
2

Migration to Add Comment to Existing Column

I have a column as tinyInteger. Now I would like to add comment to the column with new migration file. public function up() { Schema::table('sales_invoices', functio...
Laravel
2
143
linktoahref linktoahref
5

Redirect to Custom URL after session timeout

I have an route '/admin' which is using the auth middleware. Once the session is timed out while accessing the route it redirects to the de...
Laravel
5
1000
zaster zaster
1

Old Value of Select

Old value is not selected for the below mentioned code <select class="form-control" name="user" id="user">...
RikuK RikuK
3

passport - "npm run dev" fails

Hello. I'm using Laravel 5.7 and trying to implement OAuth2 using passport. I followed the documentation on...
nabilunfarhanun nabilunfarhanun
3

Can I use model function or relationship inside eloquent?

In my model order.php I have a function called total_cost which returns a number. Can I use this function to run query. My model is like, public funct...
canfone canfone
10

Laravel 5.1 404 response to JSON

Hello, I am trying to create a RESTful API using laravel 5.1, I'm trying to fetch a resource with an invalid ID, the result is 404 since it is not found, but my prob...
Laravel
10
1132
shaqaruden shaqaruden
3

Weird template or render function not defined

I have created a custom select input component everything is working fine and the component display but I am getting a template or render function not defined error....
Vue
3
13
sunnyboy sunnyboy
21

Laravel Ajax - Put request 500 internal server error

Hi All, It has been almost a week and still I'm not able to find out the 500 internal server error mystery which is happening only on when the application is on runn...
Laravel
21
128
yassineqoraiche yassineqoraiche
6

are you using mailables? you must use this package!!

Hello laravels, I want to introduce you to my laravel package that will make your life easier. Main Features: Create mailables without using comm...
Laravel
6
134
therealkyo therealkyo
4

Email Verification in an API

[ #emailverification #api #jwt ] Hi Guys, Does somebody have faced the problem to implement the email verification (L! 5.7+) in an API with JWT? All th...
chrisgrim chrisgrim
2

How to do a foreach loop for 1-10

Hi, I have an drop down where I want users to choose between 0 and 10. Right now I am doing it <select name="immersiveScore" id="im...
zaster zaster
4

Method delete does not exist.

if ($cost_item->status == 0) { $po_item = POItem::where('cost_item_id', $cost_item->id)->get();...
chadhutchins chadhutchins
7

How to structure Controller for AJAX and CRUD endpoints?

We have a pretty standard Laravel app. I have the usual CRUD endpoints for the for dealing with my models, but I also need to add some AJAX calls. Say I have a CarsC...
BillRiess BillRiess
1

Running out of memory PHPUnit CI/CD Pipelines

I'm getting this error in Bitbuckets Pipelines when running PHPUnit but not when I run PHPUnit locally... PHPUnit 7.5.7 by Sebastian Bergmann and contributor...
hjortur17 hjortur17
3

Tinker not working

Hello, I'm​ trying to use php artisan tinker to create 50 threads but it's not working. Here is the command: php artisan tinker Psy Shell v0.9.9 (PHP 7.3.0...
JohnnyW2001 JohnnyW2001
2

Session not persisting

UPDATE: It wasn't Laravel, it was my code. I WAS overwriting the value. Ignore the below. *I understand that a request must fully complete for ses...
dragonmarch dragonmarch
6

Upload file from laravel web in ubuntu to shared folder in windows7

I can upload this file to my server but I can't upload to shared folder from window7. I can access that folder from ubuntu desktop. When i upload it show error like: The fi...
apinheiro apinheiro
7

hasManyThrough need help

Hi, i'm learning Laraval by developing a small app . This app will store books, writers and publishers. Scenario: 1 publisher hasMany books; 1 book belongs t...
larschinkel larschinkel
7

Get Dynamic Route Group Prefix Parameter

Is it possible to get a dynamic route group parameter? I try to set the database depending on a route prefix like this: Route::group(['prefix' => '{databa...
Laravel
7
911
jlrdw jlrdw
4

PHP General 3 (hopefully last)

I have a function I use to get a calling class: <?php namespace App\Helpers; class DBS { public static function __callStatic($method, $params)...
behnampmdg3 behnampmdg3
6

Come on Laravel there has to be a way to do this the right way...

Hello; Hardcore Larafan here. But I am in shock or still in denial that I have to loop through queries. Snapey or some bad a$$ Laramaster plz tell me how to d...
Laravel
6
178
mac03733 mac03733
2

Many to Many on same Model ??

assumings its possible. how would i do it i have a users model , it stores both student and guardian records.i would like to create a many to many relationship( guar...
romulo27 romulo27
13

Associating models

I have a seed, I wanted the moment he created the Dealerships he assosed Brand, how to do it? private function fillDealerships(array $files) {...
gbdematos gbdematos
3

Real Time Activity Feed

Hi! I'm making a real time activity feed using laravel echo, but, I only want users to see activity from other users that he follows. What would be the best w...
Julien44 Julien44
6

Update custom pivot model "SQLSTATE[HY093]: Invalid parameter number: parameter was not defined"

Hello, I'm using a custom pivot model named AccountEvent that contains "event_id" and "account_id", both referencing to another table. I would like to u...
eusapxai eusapxai
3

count in join not working properly

i want to get the count of the rating and count value is multiplied by the product picture/pictures for eg: if we have 2 picture of product and the rating count is 3 then t...
masandikdev masandikdev
1

whereMonth / whereYear for DateString Table

Hi im working on database that require combine by month but the table is on DateString not DateTimeString. how to convert this to work at DateString Table....
Create a New Discussion Button