I'm new to laravel 5 and in my first project when I try to migrate this I got this error:
[Symfony\Component\Debug\Exception\FatalErrorException] Call to
undefined method Illuminate\Database\Schema\Blueprint::blob()
There is no such method blob(). It's binary():
$table->binary('data'); // BLOB equivalent for the database
Related
i want to use delay and onQueue methods at same time but i'll get error:
dispatch(new MyJob())->delay(Carbon::now()->addHours(2))->onQueue('high');
Error : Call to undefined method Laravel\Lumen\Bus\PendingDispatch::delay()
But in normal laravel app i can do this.
Try to use the Queueable trait in jobs
I get this error on user registration. I have searched for this problem a lot and still couldn't solve the problem on my side. In laravel 5.8 upgrade, it's written that function fire() is changed to dispatch(), but I can't find any fire() function in any file of my app, so I can see what's happening.
Would appreciate any help. Thanks.
From: https://laravel.com/docs/5.8/events#dispatching-events
Instead of:
Event::fire(new \App\Events\NewUserSignup($new_user));
Do instead:
event(new \App\Events\NewUserSignup($new_user));
The fire method (which was deprecated in Laravel 5.4) of the Illuminate\Events\Dispatcher class has been removed(https://github.com/laravel/framework/pull/26392). You should use the dispatch method instead.
Instead of:
Event::dispatch('customer.created', $customer);
Do this:
Event::dispatch('customer.created', $customer);
OR:
event('customer.created', $customer);
I'm converting an old angular2 project over to use meteor to act as an admin panel style thing for a project that is based off the ionic2-meteor whatsapp tutorial.
So I'm building the website in the client folder inside api.
I'm pretty sure I've got things correct (based off the old socially tutorial) for the angular2 client.
I'm getting these as errors though.
modules.js:13538 Uncaught SyntaxError: Unexpected token export
es5-shim.js:17 Uncaught TypeError: Cannot read property 'meteorInstall' of undefined
at es5-shim.js:17
at es5-shim.js:2789
promise.js:17 Uncaught TypeError: Cannot read property 'meteorInstall' of undefined
at promise.js:17
at promise.js:582
ecmascript-runtime.js:17 Uncaught TypeError: Cannot read property 'meteorInstall' of undefined
at ecmascript-runtime.js:17
at ecmascript-runtime.js:4630
babel-runtime.js:17 Uncaught TypeError: Cannot read property 'meteorInstall' of undefined
at babel-runtime.js:17
at babel-runtime.js:160
random.js:18 Uncaught TypeError: Cannot read property 'meteorInstall' of undefined
at random.js:18
at random.js:368
I imagine that I have probably missed an import or something somewhere but can't work out where.
Any help would be awesome.
These are the packages I have installed.
meteor-base#1.0.4
mobile-experience#1.0.4
mongo#1.1.15
reactive-var#1.0.11
jquery#1.11.10
tracker#1.1.2
standard-minifier-css#1.3.3
standard-minifier-js#1.2.2
es5-shim#4.6.15
ecmascript#0.6.3
shell-server#0.2.2
angular2-compilers
barbatus:typescript
accounts-base#1.2.14
npm-bcrypt#0.9.2
accounts-password#1.3.4
reywood:publish-composite
http#1.2.11
alanning:roles
check#1.2.4
dispatch:mocha-phantomjs
tmeasday:publish-counts
hwillson:stub-collections
practicalmeteor:mocha
xolvio:cleaner
~Edit
///the error comes from #angular/http module, I'm going to try rolling it back to see if it helps.
/**
* \#experimental
*
*/
export var QueryEncoder = (function () {//<---- this is the line causing the error
function QueryEncoder() {
}
QueryEncoder.prototype.encodeKey = function (k) { return standardEncoding(k); };
QueryEncoder.prototype.encodeValue = function (v) { return standardEncoding(v); };
return QueryEncoder;
}());
rolling back and forward didn't help at all.
I had the same problem. For me it was due to recently installed ionic plugin. It has started working normal after removing that plugin. Please try removing your recently added plugin. I hope you have tried that by now.
I'm using CodeIgniter 3 with HMVC.
In CI2, I could load a model and call functions on one line like this:
$this->load->model('mymodule/mymodule_model')->some_function();
But CI3 throws an error and I have to load the model on a separate line.
Fatal error: Call to undefined method MY_Loader::some_function() in
This works:
$this->load->model('mymodule/mymodule_model');
$this->mymodule_model->some_function();
Is this normal behavior or is something misconfigured with CI3 / HMVC?
I am having the following error
ErrorException [ Fatal Error ]: Cannot use object of type stdClassàK´cðËÛ as array
Cannot use object of type stdClass as array (the above one is the exact line from my browser).
while I am running a codeigniter script with MongoDB database on Amazon EC2 instance. Same code is working for different amazon instance but while I am moving these codes into a new instance I am having this issue. Is it I am missing some installation (any sort of PHP library) or anything. I am also using Alex Bible's MongoQB. Any suggestions will be really helpful.
Thanks
I used the following in my MongoDb config file.
$config['mongo_return'] = 'array';
You can easily cast an stdClass object to array, since it is just a container.
$array = (array) $object ;