Posts by Daniel Lemes • 661 points
31 posts
-
2
votes1
answer41
viewsA: Paginate Updating Request?
just add with appends {!! $table->appends(['poder' => $poder])->render() !!}
-
2
votes1
answer161
viewsA: How to concatenate value into a dropdownlist in Laravel 5?
do so {!! Form::select('Usuario.est_id',array_merge(['null' => 'Selecione'], Estado::orderBy('uf')->lists('uf', 'est_id')), null, ['class' => 'form-control']) !!}…
-
3
votes1
answer1748
viewsQ: Convert text links to html link
I saw the solution from here Convert a text link to a href link and several others and eventually adapted to my need, but there are some problems. I need to convert the links and the image links…
-
2
votes2
answers798
viewsQ: Convert a text link to a href link
I have a site where I have an editor (html) only q sometimes instead of using the button to post the link people paste the link and it is in text so I am a regular expression to convert the text to…
-
0
votes2
answers877
viewsQ: turn text into link
I am trying to turn the link of an image into the image inside the tag, however I am having difficulties when there is the image, the same I try to do with the link in case I use the code below…
-
0
votes2
answers856
viewsA: How to deploy Laravel 4.2 applications via FTP?
In the public folder of the server (which is usually public_html) plays the files that are in the local public folder the rest of the files below it, and sends all the files, including the vendor…
-
0
votes2
answers479
viewsA: Soft Delete and relationships in Laravel 4
You can use Model Events so you can call a method and do the checks you want, but I don’t know if the Aravel itself doesn’t do it. User::deleting(function($user) { if ( ! $user->isDeleted())…
-
0
votes2
answers89
viewsA: PHP settings required for local server
Usa Vagrant, so you can have the same production environment on your development machine, even have multiple environments configured. If you use Windows, here has a good tutorial, has a book very…
-
4
votes1
answer128
viewsQ: Distant relationship with Laravel
I have this table structure and would like to know if who posted the thread or the reply is Member or moderator, but I couldn’t structure a relationship that works, someone can help me? forum id -…
-
2
votes6
answers261
viewsQ: Parser Bbcode ignore what is inside [code]
I made a bbcode parser based on some to meet my needs, but I have some problems. The code inside [code] should be ignored, but I don’t know how I could do it, since it has all the other tags that…
-
5
votes1
answer161
viewsQ: "unveil" folder in GIT
I had an altered file in the vendor folder that was in gitignore, then I gave a message and I didn’t read it :( and gave a git -f add . and forced to add the file that was in gitignore, so he added…
gitasked Daniel Lemes 661 -
5
votes4
answers186
viewsQ: Dropdown menu opens partially
I have a dropdown menu using twitter-bootstrap 3 and it is inside a <li class="media">, then each <li> has a dropdown with some actions, it happens when as the height of the <li>…
-
0
votes3
answers158
viewsA: preg_replace_callback does not work
The solution for me was to change the way I was doing so I didn’t waste any more time. $in = array('[PEDIDO]','[NOME]','[VALOR]','[FRETE]','[DESCONTO]','[TOTAL]'); $out = array($oID,…
-
0
votes3
answers158
viewsQ: preg_replace_callback does not work
I’m trying to replace a variable with preg_replace_callback, but I’m not succeeding, does anyone know where the error is?? $replacements = array( '[PEDIDO]' => $oID, '[NOME]' =>…
-
1
votes0
answers105
viewsQ: Tagsinput bootstrap does not work
I’m using the bootstrap tags input together with Bootstrap 3 and I’m not getting the typehead Code: $('#tags').tagsinput(); $('#tags').tagsinput({ typeahead: { source: $.get('tags.php') } }); the…
-
1
votes2
answers613
viewsQ: Twitter bootstrap, button on panel title
I’m trying to put a button inside the title of a panel twitter bootstrap 3, but this button is not aligned centered on the panel. Code: <div class="panel panel-default"> <div…
-
-1
votes1
answer1744
viewsQ: Connect SQL server with PHP
I’m trying to connect a Sqlserver 2012 using php 5.3 with the driver sqlsrv, however even managing to connect with SQL management studio by php always return me the error [Microsoft][SQL Server…
-
1
votes1
answer62
viewsQ: Decode characters from email
I’m trying to import data from an email and I can get the data, but some characters come in an encoding that I didn’t find how to convert, for example. Goioer=C3=AA Paran=C3=A1 I tried utf8_decode,…
-
4
votes4
answers3942
viewsA: jQuery does not see content loaded via ajax
You need to use the live method case jQuery < 1.7 and the method on if jQuery > 1.7. When the DOM is loaded if the element does not exist, even if there is an event for it, it will not be…
jqueryanswered Daniel Lemes 661 -
3
votes2
answers1081
viewsQ: Dynamic checkbox validation with jquery-Validator
I’m trying to validate a checkbox using the plugin http://jqueryvalidation.org/. The problem is that the field I am validating it does not exist until another preset field is selected. Therefore,…
-
1
votes1
answer2000
viewsQ: Count grouping by week
I have a table in Mysql and am trying to group it by week(it may be week of year) Select count(id),month(data_tarefa), year(data_tarefa) from tarefas group by mes, ano So it works cool, but I would…
-
1
votes2
answers394
viewsA: Get inverse relationship with Laravel
If the problem is just ordering... Model::orderBy('id', 'DESC')->get(); More information http://laravel.com/docs/eloquent#query-Scopes…
-
3
votes6
answers14835
viewsA: Android app development: what are the tools and language to start a project?
To develop for android you have two options or use WebApp or native. Webapp You will use knowledge of Html5+CSS3+Javascript and then pack up this app of yours with options like phonegap/Cordova…
-
3
votes4
answers7584
viewsA: How to use AJAX with Laravel?
You don’t have a problem with Laravel. You have to do the same thing, take the events with javascript and assemble the result the same way you did before Laravel. In the Laravel you will take your…
-
2
votes1
answer5368
viewsQ: How to make the table header repeat on all pages
I’m trying to print using CSS and I have a table with thead and tfoot, I’m trying to do with this print on all pages the table header, but the result is the same, it shows only on the first page and…
-
-2
votes2
answers2614
viewsA: How to get the index creation date in SQL Server?
I’m without MSSQL here, but try this. SELECT CREATE_DATE FROM SYS.INDEXES I INNER JOIN SYS.OBJECTS O ON I.OBJECT_ID = O.OBJECT_ID WHERE I.NAME = 'NOME_DO_INDICE'
-
5
votes4
answers264
viewsA: Why does Cakephp set _method to PUT instead of POST?
From what I saw what happens is that if you have a selected record it considers the PUT method as default, if you do not have an active record it puts as POST. We can see it here: if ($model !==…
-
3
votes1
answer1692
viewsQ: Email sending works locally but not on a remote server
I have a problem sending email using a server I created in a data center hired. Email sending works locally normally, although SMTP is in a well-known hosting company (I saw that they allow 20…
-
2
votes4
answers2188
viewsA: Time spent developing tests
Actually, how you test before you start programming, I think it’s a matter of practice. But as you will be writing better quality code, you should not worry about the time you "spend" on testing,…
-
9
votes2
answers952
viewsQ: Authentication with two different tables
I need to do two authentications, one for clients another for administrators, so I have to have two instance of auth; how to do this in Laravel, where I have a client table and another for…
-
5
votes6
answers1001
viewsA: Error installing Composer in Laravel 4 Project
Change that: "laravel/framework": "4.0.*", To: "laravel/framework": "4.1.*", Ardent needs version 4.1.