Wednesday 13 July 2016

Blackberry OS 10 Application fail to start


Most times blackberry OS 10 application usually have this problem of failing to start and some time it my start or launch but will only display a blank screen.

This failing to start error is commonly found when the application is an apk file or application .
To fix this the issue is simple just make sure you update the blackberry OS 10 to the latest version and then the problem will be fix.

Alternative way to power up blackberry OS10 like q10,q5,z10,z30

I had this issue with my blackberry some time ago, whereby the power button of my blackberry q10 just malfunctioned and I needed to get some work done before taking it to a technician to get it fix.

I know some q10, q5, z10 users will experience this same issues, I was able to solve by
Getting a usb and a computer

Plug the usb into the blackberry phone
Wait for it to power on.
If it doesn’t, remove the battery and put It back while still plug.

How to solve Call to undefined method Illuminate\Database\Query\Builder::links()


When building pagination in laravel it is more likely to come across this error call to undefined method. This happen when trying to get other record in the variable.

This problem is cause when a variable that was passed from controller or route is re-generated by foreach statement. To avoid this error, make sure the re-generated variable name by foreach statement is different from the original variable.

And when using the links(), used it with the original variable not the re-generated variable by the foreach statement. For instance,

Assuming $record is our original variable,

@foreach($record as records) // when trying to get other records in the variable.

//display the records

@endforeach

<div class="pagination">{!!$record->links()!!}</div> // display pagination

Take note that this variable “$record”  is different from “$records”. The first is the original variable while the latter is the regenerated variable and we used the original for the pagination