Most voted "laravel" questions
Laravel is an open-source framework for developing web applications and services with PHP. Before asking consult the official documentation of Laravel.
Learn more…2,777 questions
Sort by count of
-
-2
votes0
answers13
viewsTake the path of an external file in JSON
I am working with a project in Laravel in which a controller calls a JSON file with the parameters and this JSON file must take the path of another controller and access the action determined for…
-
-3
votes1
answer1627
viewsHow to install Laravel on a server?
In Wordpress, for example, we use ftp to upload files. However, in Laravel it is used Composer, and by what it seems it is installed locally. How do I install on a same web address? I hope it makes…
-
-3
votes1
answer328
viewsConsult children objects that satisfy condition in parent objects, Relationship with eloquent
I have in my project two tables that relate, but I would like to make a query Consult that brings all children entities that a field is equal to parent entity, being for all parent entities that…
-
-3
votes1
answer58
viewsBuild query in Laravel
`update `table` set is_available = 0 where id_restaurant = 303 (and weekday = ? or id = ? )` $weekday = $request->input('weekday', ''); $table = $request->input("id", ''); //Query em…
laravelasked 6 years, 1 month ago Daywison Ferreira Leal 101 -
-3
votes1
answer66
views404 when accessing via route Edit
my Viewer @extends('tamplate.menu') @Section('content') Products New item Description Price Amount Registration date @forelse($products as $product) {{$product->Description}}…
-
-3
votes1
answer59
viewsI am trying to sum two numbers and save the result in the bank with Variable plus this giving error Undefined offset
public function somar(Request $req){ $dados= $req->all(); $n1=$_POST['n1']; $n2=$_POST['n2']; $resultado=$n1+$n2; Calculo::create([ 'resultado'=>…
-
-3
votes2
answers28
viewsUpdating payment status using Cron in the Standard
I have the following scenario: I am using a payment api where each order expires in 15 minutes, how can I register a cron task for each payment order I have, bad I know where to start I am using…
-
-3
votes0
answers20
viewsStep by Step API Juno with Laravel 8
I need to integrate with the JUNO API. What is the step-by-step approach to making a payment integration via Credit Card? (already with the forumlarium s created) Step 1°: Create the Request Button,…
-
-3
votes0
answers10
viewsSave files to Storage or Mysql Database?
Personal the question may be 'simple', but in the company where I work the analyst requested that PDF files be saved in bank (Mysql - using Mediumblob type). But in Windows I always save files(pdf,…
-
-3
votes0
answers19
viewsPutting dollar sign in an input in Laravel
I am developing a system in Laravel and I need a help in this code snippet, as I put to appear the dollar "R$" in this section? < input name="valor_entrada" required id="valor_entrada"…
-
-3
votes1
answer86
viewsI need to return this JSON with Laravel eloquent
Meu Json: { "data":[ { "data":{ "name":"Documents", "size":"75kb", "type":"Folder" }, "children":[ { "data":{ "name":"Work", "size":"55kb", "type":"Folder" }, "children":[ { "data":{…
-
-3
votes1
answer256
viewsCrud with Eloquent Laravel
I’m trying to do a CRUD with Eloquent Laravel in 2 tables with FK AND PK, but I’m not succeeding, already have the models just missing the CRUD function even, someone can help me? This is model with…
-
-3
votes1
answer108
viewsHow to create ACL with External Database in Laravel?
The application I’m making already has a database with the users' data. The levels I need are a 'Common User', a 'Manager' and an 'Admin'. The logic of having a user table, role, role_user,…
-
-3
votes1
answer79
viewshow to solve the modal problem by taking the last id
<div class="panel-body"> <table class="table table-striped task-table"> <thead> <th class="col-sm-1">Sistema</th> <th…
-
-3
votes1
answer98
viewsHow to make Bootstrap Dynamic Tabs with Portable?
Goodnight I am trying to make each Tabs present a specific data referring to the name of a person who in my work would be the name of a teacher I have the following table diaries id -…
-
-3
votes2
answers243
viewsHow to return id of a record I just entered using Laravel?
I’ve been messing with Laravel for a little while and I’ve got a problem... I need to return the id of a table in the database to feed the foreign key from another table and I’m not getting it. How…
laravelasked 4 years, 2 months ago Rodrigo-Reis 1 -
-3
votes1
answer27
viewsTemplate loads only in one view
Good night! I created a directory called layouts and within it a template (template.blade.php) to use in my views whenever necessary, but it loads only in a view whose name is index.blade.php,…
-
-3
votes1
answer136
views -
-4
votes1
answer373
viewsError when creating Laravel project
C:\xampp\htdocs>laravel new blog Crafting application... [Symfony Component Process Exception Runtimeexception] TTY mode is not supported on Windows Platform. new [-dev] [--] name you can tell me…
laravelasked 8 years, 8 months ago Cleber de Araujo Souza 3 -
-4
votes1
answer300
viewsHow do I send a single email to all administrators in Aravel 5.4?
I need to implement the sending of emails to a certain group of users, such as administrators, editors, reviewers. You’d have to use a queue for that or something like that? Anyway, I want to select…
-
-4
votes0
answers19
viewsrequire_once does not find my files Laravel
I have this require DIR that is not able to fetch the files, I have tried to write the complete path and in a more simplified way, if anyone can help me thank you require_once…
-
-4
votes1
answer37
viewsHelp with installing php 7.0 in Ubuntu as per video tutorial
Following this tutorial video https://www.youtube.com/watch?v=onVSVC_C1GE&t=717s. Already at the beginning of the default change, made the default changes, the default Nginx index should be…
-
-4
votes1
answer49
viewsError generating PDF, Undefined variable: o (View:
metodo gera pdf: ordemController $ordens = Ordem::all(); return \PDF::loadView('ordem.detalhes', compact('ordens')) ->setPaper('a4', 'landscape') ->stream('export.pdf'); view <h1…
-
-4
votes1
answer68
viewsSyntax errors, Unexpected end of file on Laravel
I am getting this error in my code at the end of the file, I could not find the error in the code: Syntax errors, Unexpected end of file. Here is my code from the web.php file that is giving the…
-
-4
votes1
answer58
viewsHow to convert date to datetime with PHP and Mysql
I am importing an Excel spreadsheet and need to convert the date to datetime for Mysql to accept saving. However, I have tried all the options on mutator of Laravel and I couldn’t make that…
-
-5
votes1
answer4423
viewsLaravel foreach view
I have this array and it can be infinite, with several children https://jsoneditoronline.org/? id=cff2cb9795a64273142b24b83e73ffe3 how I do a foreach on that in a view?…
-
-5
votes1
answer67
viewsHow to use the ROUND function in Laravel
insira o código aquiI have the following query in PHP: $transferencia = $conecta->rawSelect( 'SELECT * FROM register WHERE ROUND(valor,2)="' . $json->VALORLIQUIDO . '" ' ); How I perform this…