Call to undefined function auth() - jwt

Call to undefined function App\Http\Controllers\auth()
If I follow through the step by step instructions provided jwt-auth
I have copy pasted this AuthConstroller
$token = auth()->attempt($credentials);
Error Message: Call to undefined function App\Http\Controllers\auth()
Framework version 5.7.7
Package version 1.0.0-rc.2
PHP version 7.2.9
My AuthController

I think it's more like
Auth::attempt($credentials)

Related

awaiting for aiofiles.os.remove() returns TypeError: object NoneType can't be used in 'await' expression

I'm trying to remove a file from a local directory asynchronously; however, I get the following error:
object NoneType can't be used in 'await' expression ()
I'm using ver aiofiles 0.5.0 and Python 3.6.5
my code is as straightforward as such:
async def delete_local_file(file_to_del):
await aiof.os.remove(file_to_del)
print("deleted: "+file_to_del)
await delete_local_file(localfile)
accidentally I used the wrong reference during import. simply use:
import aiofiles.os

TypeError: Cannot read property 'call' of undefined

So basically I am just getting started with Truffle and I have created my first Solidity code, which looks like this:
pragma solidity ^0.4.4;
contract HelloWorld
{
function SayHello() internal pure returns (string)
{
return ("Hello World!");
}
}
I then opened Powershell and ran the following command: testrpc Than I compiled and migrated my code using "truffle" compile and "truffle migrate"
The problems started occurring when I opened "truffle console" and did this, giving me an error at the end:
PS C:\Users**\MetaCoin> truffle console
truffle(development)> var hw
undefined
truffle(development)> HelloWorld.deployed().then(function(deployed){hw=deployed});
undefined
truffle(development)> hw.SayHello.call()
TypeError: Cannot read property 'call' of undefined
truffle(development)>
Can someone help me with this? Thanks.

POSTGRESQL - ERROR: could not load library pgafis.so : undefined symbol: lfsparms_V2

I'm using PGAFIS library for fingerprint matching. For this i have installed postgresql and having some user defined c functions.
PGAFIS contain makefile, .control file, sql and unpacked sql file everything
I have compiled and pgafis.so file for the same and everyfile is on right location.
In my PGAdmin-III when i run CREATE EXTENSION pgafis it gives me following error:
ERROR: could not load library "/usr/lib/postgresql/9.4/lib/pgafis.so": /usr/lib/postgresql/9.4/lib/pgafis.so: undefined symbol: lfsparms_V2
SQL state: XX000
Please help. Thanks in advance
(This is a follow-up from Postgresql user defined c function issues)
I expect you forgot to link to the required library.
Try adding
PG_LIBS = -lmindtct
or whatever. If it's not on the default linker path you'll need to need to add -L/path/to/the/containing/directory to PG_CPPFLAGS too.

typo3 backend does not parse: syntax error, unexpected 'class' (T_CLASS)

I just installed Yet Another Gallery 4.0.7 on Typo3 6.2.19. When I try to open backend module I only get this error:
Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /var/www/clients/client6/web32/web/typo3conf/ext/pt_extlist/Classes/Domain/Configuration/Filters/FilterConfig.php on line 351
Screenshot:
The error is coming from the extension "List Generator". The code uses the Class::class syntax which is probably not supported by your version of PHP. Check if you are running PHP 5.5 or higher.
You should try to call class like: 'Vendor\YourController\Task\Yourclass', instead of \Vender\YourController\Task\YourClass::class

octopress + github trouble: undefined method '[]' for nil:NilClass

Do you know anything about octopress? I tried doing
rake setup_github_pages
Repository url: monsieurcactus.github.com
Then it says
undefined method '[]' for nil:NilClass
My github page is
https://github.com/MonsieurCactus/monsieurcactus.github.com
Looks like issue 516:
oh! it works!
you could try this command:
$ rake setup_github_pages
$ Enter the read/write url for your repository: git#github.com:your_username/your_username.github.com.git
you should create a project named "your_username.github.com" first, the full project name is "your_username.github.com"
I was surprised that using a git://github.com/uname/reponame address didn't work.
(Issue 666)
For example, 'git#github.com:your_username/your_username.github.com'