Skip to content

Tag: php

Write to Sheet with Google Sheets API

I want write data to my sheet: But in log i see: What am I doing wrong? I will be grateful for the example code that works for you 🙂 In the examples there is not enough information( https://developers.google.com/sheets/api/guides/values#writing_to_a_single_range) Answer You’re almost there. Don’t …

Laravel 5.4 Passport: unsupported_grant_type

Hello I try to do a web application and I have a problem. When I request the token from /oauth/token I receive this response: And my code is: And the request header: Response header: Post data: I don’t have any other detail. Answer You need to install a password client for Passport. Assuming you’v…

How to protect ASSETS FOLDER in codeigniter

I just wanna protect my assets folder in client side. All of my files can access public. I wanna protect it. I have rules .htaccess like below, any wrong rules there? Answer You can do two things via .htaccess (Not Tested) via index.html 1. .htaccess add .htaccess inside the assets folder 2. index.html Create…

PhpStorm external tools before commit

I have an External Tools entry php-cs-fixer and I want run it before commit. I found only after, but why after? I need before. I want after work with file, commit it and don’t worry about code style, I want to know that my PhpStorm run external tools php-cs-fixer before committed file. How to add run ex…