Questions tagged as 'laravel'

0
answers

Problem with Axios headers | Application = Laravel + vue.js

I'm trying to make a request with axios, but I can not always get the following error: admin:1 Failed to load http://minhaurlencurtada: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is...
asked by 01.08.2018 / 00:29
0
answers

Check if form data has changed

public function edit(EditTaxaseTarifas $request) { $taxa = TaxaseTarifas::find($request->idTaxa); $taxa->Contribuinte_idContribuinte = $request->Contribuinte_idContribuinte; $taxa->Receita_idReceita = $request->Receita_...
asked by 03.08.2018 / 22:18
0
answers

Pass value from a VueJs component to a specific component in the Laravel blade, having more than one of the same component of the screen

Talk to me, I have a tremendous doubt. I have in my blade in Laravel the contents of components that I created, like this: //um select personalizado <select-component></select-component> //tabela com categorias <data-table-co...
asked by 31.07.2018 / 22:09
0
answers

Error in htaccess when using https force with invalid return

Hello, I need to force https on my site, but the problem arises of not returning the target link ... I have the following htaccess code ... <IfModule mod_rewrite.c> <IfModule mod_negotiation.c> Options -MultiViews </IfModul...
asked by 31.07.2018 / 23:15
0
answers

How to serve the same Frontend for different domains showing different content

I'll explain better. Firstly, I intend to use Vue.js, specifically Nuxt to create a site template that will connect to an API and pick up the news, site color pattern, some specific layout settings, etc ... This API will probably be created i...
asked by 27.07.2018 / 20:40
1
answer

Error with relationship - Laravel

I have 2 related tables and I want to show 1 data that has only one "pulling" this relationship. tables: Users: Permissions: Tablethatwilllist: Code:@foreach(App\User::all()as$user)<tr><td>{{$user->id}}</td><td&...
asked by 27.07.2018 / 20:27
1
answer

How to use the Laravel Pagination feature with queries in raw format DB :: select ()

To get some information from the database in some moments is simpler to make a query with raw sql than to use several models, maps functions and a touch of magic to reach the same goal, however the problem of using a raw querie or a raw express...
asked by 01.08.2018 / 17:16
0
answers

Relationship in Model with Column Name Alias

I'm doing a query with union in Laravel. $first = Friendship::selectRaw('id, userid, friendid, friendid as friend') ->where('userid', '=', $idUser) ->where('confirmed_friendship', '=', 1) ->whereHas('user_friends', functio...
asked by 01.08.2018 / 14:47
0
answers

Multi-level Treeview Menu does not work in AdminLTE

Problem: Home I'm using the AdminLTE 2 template (very good template!) In the project that uses the Laravel Framework . I've been able to include all the files and configure the layout to be displayed on SideBar and everything works fine....
asked by 24.07.2018 / 19:41
1
answer

Laravel Helpers do not work in shared hosting production mode

I have a Laravel 5.6 application hosted on Ycorn, there, because it is shared, I do not have SSH access, which makes it very difficult to implement the framework . With this, the helpers {{asset()}} and {{url()}} can not find...
asked by 19.07.2018 / 01:12