Set Mailable header via a trait?

I'm creating a Laravel package that would benefit from the use of emails. When a user would use my package they would want to email a file created by the package, but also set some custom headers for the email. In an ideal solution, I would like to ...
more »

2017-08-17 21:08 (0) Answers

Two wheres and One orWhere Laravel Conditions

i want to search in Lists and get only the results with id, but search in title and seach in description, i dont want title and description i want title or description, but with this way i get all the results with coincidence in description not is li...
more »

2017-08-17 20:08 (1) Answers

controller action called twice on using curl

I have a strange issue. Inside a laravel controller action I am initiating a curl call to an API on the same server and my same controller function (in which the curl call is initiated) is called again after the curl call is finished. $postdata...
more »

2017-08-17 20:08 (1) Answers

Laravel - authenticating user without logging in

In laravel 5.4 is it possible to authenticate user without logging him in? From laravel doc the closest thing i could find was: Auth::once($credentials) But this still logged the user in for the duriation of that one request. All i need is to just...
more »

2017-08-17 19:08 (2) Answers

Laravel eloquent query

I have 3 tables called cash_manages, outlets, and delivery_boys the structure is //outlets id name 1 utha 2 alabama //delivery_boys id outlet_id name 1 1 John 2 1 ...
more »

2017-08-17 17:08 (1) Answers

Laravel 5. Dropdown doesn't change database

I have a problem. I added dropdown to form, but He only shows the list. When I click on buttun "send" my database doesn't change. Form::text change my database, but Form::select doesn't make any changes. May, i have a problem in the controller? Con...
more »

2017-08-17 15:08 (1) Answers

PHP formatting grouped thousands to non grouped

I have a system where you input an amount and it calculates some stuff and puts it into the database. However, what I've noticed is that multiple people enter different formats. Some people enter: 3474,12832752 And some people enter: 3474.12832752 ...
more »

2017-08-17 14:08 (4) Answers

Rate limiting free text search

I'm using VueJS for the front-end of my application and Laravel for the backend. Where is the best place to reduce calls to the server with a free text search? Search input 'hello' @keyup will make 5 server requests 1st = h 2nd = he 3rd = hel 4th ...
more »

2017-08-17 14:08 (2) Answers

Base table or view not found error

ProductTable public function up() { Schema::create('product', function (Blueprint $table) { $table->increments('id'); $table->string('name'); $table->string('description'); $table->string('type'); ...
more »

2017-08-17 07:08 (2) Answers

Button in Laravel Datatable not rendering

I'm using Laravel 5.4 and Yajra datatable, below is my code working properly but in the 2nd action I've created, The button is not displaying but instead it display the text itself "<a href="/product/'. $row->id .'/create-price" class="btn btn-...
more »

2017-08-17 05:08 (2) Answers

Vue in Laravel project doesn't appear

I'm starting to work with laravel and I try to use Vue. So on my resources/assets/js/app.js I have Vue.component('example', require('./components/Example.vue')); const app = new Vue({ el: '#app' }); So my Example.vue is basicly what it's given...
more »

2017-08-16 16:08 (1) Answers

JQuery Autocomplete - JSON data-attribute

I'm creating autocomplete to form. I get url with json data from backend (laravel/blade) in data-source' attribute that is in my input. I'm now able to display full JSON file in console logs but when I create a function that should display propositio...
more »

2017-08-16 16:08 (0) Answers

Laravel 5.3 Mailable.php not found

I want to make send mail with Laravel 5.3 and it gives me this error when I try to: vendor/composer/../laravel/framework/src/Illuminate/Mail/Mailable.php): failed to open stream: No such file or directory. I checked te directory and saw that this fil...
more »

2017-08-16 16:08 (2) Answers

Issue with Laravel orderby

I am trying to order my products by price once the client click order by inside the product page. I keep getting the next error: Undefined index: title (View: C:\xampp\htdocs\eshop\resources\views\content\item.blade.php) . My 'item.blade.php' is the...
more »

2017-08-16 14:08 (1) Answers

Shared network drive as Laravel 5.4 Storage

I have an image upload in my Laravel application and would like to have those images uploaded to shared network drive located on external Windows computer. Is it somehow possible to mount a spesific folder at my shared network drive as Laravel Stora...
more »

2017-08-16 12:08 (1) Answers

Ajax request validation in laravel

Here it asks validation for first table only. I wanna validation for all three tables I have a form which makes a ajax call to the controller based on selection of check boxes. Ajax displays a table which is designed in controller with validation. ...
more »

2017-08-16 12:08 (1) Answers

How to build a query in Laravel

I'm new to laravel and have some problems with the understanding how the query builder is working. I created a laravel project and connect it successfuly to the sqlsrv. And now i would like to retrive data from the database. For first without model...
more »

2017-08-16 08:08 (3) Answers

Select tab to open after submitting.

Im working on a Laravel web application. In that application I have tabs one of which is a quiz written in PHP. When I submit the quiz the page reloads and the answers are returned but I cant get the page to load the tab with the quiz. Any suggestion...
more »

2017-08-15 23:08 (1) Answers

Error using radio buttons in a foreach statement

I am looping through database rows, for each result, there are 2 radio buttons that allows the user to either approve or reject that 'row'. When the user is done, he/she can then submit the form. This is what I have done. @foreach($items as $item) ...
more »

2017-08-15 19:08 (4) Answers

Virtual host alias not working as expected?

I am in a situation where I need to set up multiple projects in a single folder (all of these are laravel/lumen based). When I am using this configuration everything is working fine. Virtual Host <VirtualHost> ServerAdmin ...
more »

2017-08-15 18:08 (0) Answers