You can use static
in generic to refer to the current class. This is useful in trait implementations:
https://cloud.google.com/php/grpc
Install via PECL:
sudo pecl install grpc
sudo pecl install protobuf
I'm sorry for the code quality, got this working in 1 night work.
anyways, this is currently working fine ignore error related to should be object
or Could not resolve reference
it will be fixed in future
requires cebe/php-openapi
package
composer req cebe/php-openapi
The package that linked you here is now pure ESM. It cannot be require()
'd from CommonJS.
This means you have the following choices:
- Use ESM yourself. (preferred)
Useimport foo from 'foo'
instead ofconst foo = require('foo')
to import the package. You also need to put"type": "module"
in your package.json and more. Follow the below guide. - If the package is used in an async context, you could use
await import(…)
from CommonJS instead ofrequire(…)
. - Stay on the existing version of the package until you can move to ESM.
I'm sorry for the code quality, got this working in 1 night work.
anyways, this is currently working fine ignore error related to should be object
or Could not resolve reference
it will be fixed in future
requires cebe/php-openapi
package
composer req cebe/php-openapi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8" ?> | |
<ruleset name="Default"> | |
<description>Coding standard configuration.</description> | |
<rule ref="PSR12" /> | |
<rule ref="PEAR.Functions.ValidDefaultValue" /> | |
<rule ref="PEAR.Commenting.InlineComment" /> | |
<rule ref="Squiz.Operators.ValidLogicalOperators" /> | |
<rule ref="Squiz.PHP.CommentedOutCode"> | |
<properties> | |
<property name="maxPercentage" value="50" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<!-- CSRF Token --> | |
<meta name="csrf-token" content="{{ csrf_token() }}"> | |
<title>{{ config('app.name', 'Laravel') }}</title> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const mix = require('laravel-mix'); | |
const tailwindcss = require('tailwindcss'); | |
const rootPath = Mix.paths.root.bind(Mix.paths); | |
const tailwindPlugins = function(configFile, paths) { | |
const pluginList = [tailwindcss(configFile)]; | |
if (mix.inProduction()) { | |
pluginList.push(require('@fullhuman/postcss-purgecss')({ |
NewerOlder