Posts by Miguel Borges • 277 points
8 posts
-
0
votes1
answer101
viewsQ: Hierarchy of Wordpress pages
I am creating a website that will have two contact pages (one for each address). I wanted to create a structure of Breadcrumbs of the type: Home > Contactos > Loja 1 Home > Contactos >…
-
4
votes2
answers261
viewsQ: Affix on a dynamic sidebar
I have a Bootstrap layout with a right sidebar that accompanies the scroll, inside the div[role=main]. My layout: My code: <header class="container"> <div class="row"> <div…
-
6
votes2
answers1259
viewsQ: "Floating" sidebar inside an element when scrolling
I have a layout Bootstrap with a right sidebar and I need this "turn" (up/down) when doing scroll, but not above the header and footer. just "float" inside the div[role=main] My layout: My code:…
-
0
votes4
answers3795
viewsA: Filter results by logged-in user id
$userID = Auth::user()->id; or $id = Auth::id(); http://laravel.com/docs/4.2/security#authenticating-users Example: $products = Product::where('user_id', Auth::id())->get(); or if you have the…
laravelanswered Miguel Borges 277 -
1
votes2
answers1415
viewsA: Laravel - Update all fields from a large table
can create an Migration to rename the column and update passwords: Schema::table('users', function($table) { $table->renameColumn('cli_senha', 'password'); }); foreach(User::all() as $user) {…
-
0
votes2
answers1209
viewsQ: How to make a ternary relationship in Laravel?
What is the best way to make a ternary relationship in Laravel? I am doing a "multi client/company" application (type Basecamp) and the following relationship appeared: one user has a (0 .. n)…
-
3
votes1
answer554
viewsQ: Dynamic source of graph data
I have a table in Excel, Tab_Visitas, who has the visits per day of the month. What I wanted to do was a line chart, but only with the selected date and the date before the selected one, like this:…
excelasked Miguel Borges 277 -
1
votes1
answer135
viewsQ: Package for validations per service
I’m developing a large project with Laravel and I need to validate my data. Initially I had thought to use Ardent, but this is not compatible/advisable for those who use the repository standard.…