Posts by PV Telles • 178 points
10 posts
-
0
votes2
answers436
viewsA: Select subtraction in columns of different tables
Try doing with Inner Join as the example below: SELECT c.cod_material, SUM(c.quantidade) - SUM(lg.quantidade) FROM cautela c INNER JOIN lista_geral lg ON (c.cod_material = lg.cod_material and…
-
0
votes1
answer109
viewsA: What is the relationship problem in these tables?
Make the following changes: In the Model Municipalities <?php namespace App; use Illuminate\Database\Eloquent\Model; class Municipios extends Model { protected $fillable =…
-
1
votes1
answer2132
viewsA: Paging in Laravel 5.5
To customize the page, we should stir a little the structure of the Laravel, We have to access the file vendor/laravel/framework/src/Illuminate/Pagination/UrlWindow.php leave your methods as the…
-
0
votes2
answers112
viewsA: Paging with twbsPagination plugin giving problem
Do you necessarily need to make this pagination with this plugin? Laravel has native paging on it and is very simple to use!!! you make a normal query in the vendor table inside your controller as…
-
0
votes4
answers320
viewsA: How to load a project in Laravel in an old version?
Delete your Composer.lock file and then run the following command: composer update; or composer install;
-
1
votes2
answers781
viewsA: Create profiles in application
Here’s an example where I display user services. class ServicoController extends Controller { private $usuario; public function __construct() { $this->middleware('auth');…
-
1
votes1
answer102
viewsA: The images do not appear in the Mail inbox. Laravel 5.4
Inside your src put the image path as the example below: src="{{ $message->embed(url('/') . '/images/article/' . $article->image)}}"
-
2
votes2
answers781
viewsA: Create profiles in application
Now you need to create a middleware to restrict access to the page; put the following code inside your controller’s constructor. $this->middleware(function($request, $next) {…
-
1
votes2
answers4276
viewsA: How to implement a validation rule in Laravel?
I don’t know any native form of the Laravel to do this validation, I’ve worked on a project where I needed to validate Cpf and phone and the way was to use a library that is available on github in…
-
1
votes2
answers981
viewsA: How to access relationship attributes in Laravel?
Within your loop you can get relationship Collection and then use Laravel methods to treat your Collection. In the following link you can consult the methods:…