Questions tagged as 'laravel'

1
answer

Foreign Key between different databases

Is it possible to link between two different databases in one Migration? I'm using Postgres. What I have: $table->integer('id_cliente_produto')->unsigned(); $table->foreign('id_cliente_produto')->references('id_cliente_produto')...
asked by 27.06.2016 / 20:10
0
answers

Php laravel with jasper report

I'm using laravel as a framework, and jasperphp to generate the report, however I can not pass the database to jasper, most uses mysql to generate the report, but I'm using Mssql, someone gives me a light with it Please, of the two forms that I...
asked by 15.09.2015 / 20:54
3
answers

Should I use routes or controllers in Laravel 4?

I'm a beginner in Laravel and I have questions about using controllers , I read several examples / tutorials and I see the vast majority use the routes for example for a form request , to display pages, even database queries. I'm developin...
asked by 25.12.2013 / 16:54
2
answers

Displaying authenticated user data in view

I have a problem that I think is very simple ... I need to show the username logged in my views ... How do I do this? this is one of the views @extends('layouts.template') @section('body') <h3>List_Lists</h3> <p> <...
asked by 18.12.2013 / 22:09
2
answers

Change storage location in laravel 5.4

The current storage location for laravel is / laravel / storage / app / public . How do I switch to / laravel / public . I tried editing filesystems.php but I was not successful: Controller store function: public function store(Request $r...
asked by 17.02.2017 / 17:56
2
answers

Check total records in Laravel

In certain part of my application written in Laravel I have this query: $counts = User::select(\DB::raw('count(*) as status_count, status')) ->groupBy('status') ->get(); It returns me at least 1...
asked by 23.06.2016 / 06:23
1
answer

What is the hash generation algorithm that Laravel uses?

By default Laravel already comes with a pre-ready authentication system, however, someone would know to tell me what the default algorithm this framework uses for hash and what version thereof?     
asked by 01.03.2017 / 14:04
1
answer

PDF Generator with Laravel Framework?

I need to make snappy generate reports from BD data. But for this I needed examples of using snappy , in the documentation of github you even have an example, but that example did not help me. I needed an example of how to...
asked by 06.03.2017 / 19:04
2
answers

How to do an Insert getting FORM data in Laravel 5.2?

I'm looking at the Laravel documentation on dbquery, in the insert case. I need to make the insert out of the resource method (manually. Type: DB::table('users')->insert( ['email' => '[email protected]', 'votes' => 0] ); But...
asked by 12.01.2017 / 16:01
2
answers

Laravel - Route with variable

Good morning Sirs. I have a question about the route in Laravel, I have done searches trying to find the result but I did not find what I wanted. I need that from the id that is redirected (for example: / discipline / 3) it sends the number "...
asked by 17.11.2016 / 06:09