Even after reading best practices for code reuse in symfony and search for the use of < a href="https://tableless.com.br/composer-para-iniciantes/"> composer , I still can not understand how in practice I should create my bundle to be reusable...
Currently I have an array in php that converts to JSON using json_encode json and generated without problems.
$array = array('a' => 'Olá mundo', 'b' => 'Olá Marte');
$array = json_encode(array);
//$array agora retorna {"a":"Olá mu...
I am requesting two JSON files for the getJSON function from JQuery. I'm trying to send them via AJAX but I can not.
I've done the following:
var data = '[{"agents": '+agents +', "projects":' + projects + ', "spaces": ' +spaces+', "events":' +...
I'm having problems with the number_format function of PHP, since my numeral comes from the database with two points, eg:
1.235.32
I'm using number_format this way:
number_format(floatval('1.235.32'), 2, ',', '.');
A...
I was able to include the attributes through an auxiliary table by this question:
Save multiple attributes to the same object in Laravel
I would now need what was set in this helper table to be selected in the edit form
Controller:...
I have the following middleware:
class OwnerOrAdmin
{
public function handle($request, Closure $next)
{
$user = \Auth::user();
$postId = $request->route('post');
$post = $user->posts->find($postId);...
I'm here because I'm having trouble doing a search like any other with <input text> and "search" button only with the tag <select> where it contains in each <option> a value of the search. The questi...
Good! I'm trying to call a PHP function at the click of a button. My solution so far:
<?php
$result = getResult($mysqli,"SELECT * from todos WHERE sender = '$username' AND status = '$value' AND journal = '$journal' ORDER BY expiration_d...
Save, I buggy here trying to get ajax to fetch data from a JSON and I need a class / help to understand how I pull the values from an array of objects (I think that's it).
I have the following code, it's kind of confusing, but my goal is to do t...
I tried to install a dependency and it asked for a larger version of PHP.
Problem 1
illuminate / support v5.3.4 requires php > = 5.6.4 - > your PHP version (5.5.9) does not satisfy that requirement.
illuminate / support v5.3.1...