How do I configure or customize my Menu where in, for example, if I am an admin user, I can see everything on my navigation bar, like, in my case, the Users (list of Users where I can create, update, …
Get stdClass Object value
I’m trying to get a value from stdClass Object array with no success. Here is the code I’m running: $myjson = ‘{“2”:{“label”:””,”value”:””,”type”:null,”validation”:null,”required”:null}, “6&…
postgresql select query with variables
I am trying to make a postgresql select query work with php, but can’t get past the syntax. I have a variable and a query that returns the surname of any match. $name = ‘Smith’; $query = ‘SELECT …
How to properly configure alias directive in nginx?
I have been trying to configure multiple webapp on my nginx webserver but I can’t get working one Laravel app that requires $document_root set to laravel public folder. I am currently trying to configure it using alias directive but for an obscure reason this doesn’t work. Here is what I am trying…
Twig get url parameter with []
I have an url like : MYURL?filter[_per_page]=25&filter[name][value]=hello How can i get these parameters with twig ? I’m trying {{ app.request.get(‘filter[_per_page]’) }} but it’s always empty… Thanks ! Edit : I’m in javascript an i want to assign this result to a javas…
In Laravel, what validation rules do I need to check the number of characters in a number?
I’m using rules in validation in Laravel, and am trying to check the number of characters in a number. This is my attempt: Unfortunately that checks that the zip code is the number 5 and not that the zip code is 5 characters. Which rules do I need to set to check that the zip code is exactly 5 character…
Set session variable in laravel
I would like to set a variable in the session using laravel this way but the problem is that I don’t know where to put this code, ’cause I would like to set it for one time (when the guest visite the home page or any other page)? The main idea is to use a global variable to use it
Can composer.phar be deployed with the code?
I’m using Composer for a small project. I’ve pushed composer.json and composer.lock to Git, and put the vendor/ folder into .gitignore, so I can install the dependencies at the server on deploy time. Can I push composer.phar to the Git repo or should I install a new copy for the server? Not sure i…
Laravel 5 – redirect to HTTPS
Working on my first Laravel 5 project and not sure where or how to place logic to force HTTPS on my app. The clincher here is that there are many domains pointing to the app and only two out of three …
how to join 4 table or more in codeigniter [closed]
this my model and my function function all($npp,$nama_pegawai,$jenis_jabatan,$nama_cabang,$nama_unit,$nama) { $this->db->select(‘*’); $this->db->from(‘pegawai’); …