₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,327,716 members, 8,432,242 topics. Date: Tuesday, 23 June 2026 at 12:47 PM

Toggle theme

Dplumptre's Posts

Nairaland ForumDplumptre's ProfileDplumptre's Posts

1 2 (of 2 pages)

BusinessTravel And Get Paid by dplumptre(op): 11:07pm On Jan 01, 2019
Have you ever wondered why you have not been able to make the money you want?
Have you have thought of working at your convenience and making more than what you have ever imagined?
Do you like the idea of making residual income?
Would you like to earn an enormous sum without being restricted to certificates ?
Have you ever thought of being your own boss and not working for anyone ever again?

If you answer is yes, then you need to be here.

There is a promo going on at the moment. However, it will end on the 4th of January 2019. if u want information . send a 'yes' to this number 08186810722 i will contact u

ProgrammingInstalling Homestead On Ubuntu: Laravel by dplumptre(op): 9:49am On Sep 20, 2018
Go to the link below to download virtual box
https://www.virtualbox.org/wiki/Linux_Downloads

Go to the link below to download vagrant box
https://www.vagrantup.com/downloads.html

After downloading you install it by right clicking on the deb file to install with ubuntu software center

#then you run

$ vagrant box add laravel/homestead


#this will ask you to select from list, you will choose virtual box as you have installed it earlier in your machine
#then you wait for it to download it may take along time depending on how fast your internet is.
#then run this command below, it will create a homestead dir which will serve as the host to all your larvel projects

$ git clone https://github.com/laravel/homestead.git ~/Homestead

$ cd ~/Homestead
# Clone the desired release… check latest list @ https://github.com/laravel/homestead/releases

$ git checkout v7.12.0


# Run the code below depending on your operating system so that the Homestead directory to create the Homestead.yaml configuration file. The Homestead.yaml file # will be placed in the Homestead directory:

# Mac / Linux…
bash init.sh

# Windows…
init.bat

#Setting Your Provider
# go to The provider key in your Homestead.yaml file indicates which Vagrant provider should be used: virtualbox, vmware_fusion, vmware_workstation, parallels or #hyperv. You may set this to the provider you prefer:

$ sudo nano Homestead.yaml


#provider: virtualbox
# set the folder for your files



folders:
– map: ~/websites
to: /home/vagrant/websites

sites:
– map: school.local
to: /home/vagrant/websites/mylaravelproject/public

!important
You need to create the folder where your codes where your stay



Eg if you do /home/vagrant/websites you will create a websites folder in your home directory

this will enable mapping



### remember to set the name school.local in /etc/host file

$ sudo nano /etc/hosts

#192.168.10.10 school.local

#this ip is located at the top of your .yaml file
#then set

$ touch ~/.ssh/id_rsa


#Then

$ vagrant up




you can read more on this link below

http://overallheuristic.com/installing-homestead-on-ubuntu/


if you want to see more stuffs visit my blog http://overallheuristic.com/blog/

site : http://overallheuristic.com
twitter : @dplumptre
fb :https://www.facebook.com/

Jobs/VacanciesFreelance Sales Executive by dplumptre(op): 12:46pm On Apr 25, 2018
One of Africa’s foremost process-driven software solutions provider; based in Nigeria, with a strong and extremely satisfied client base, offering top class service in areas such as design, branding, web design & development, e-commerce, content strategy, application management, social media campaign, Mobile, hand held Application development and training etc. requires astute and self-driven professionals to fill the position below:

JOB POSITION: Freelance Sales Executive
LOCATION: Lagos

JOB DESCRIPTION:
professionally Promote the company's software product that was just rolled out.

Job Skills:
- Must be an experienced salesperson
- Must be able to work independently and as a team
- Must be honest
- Must possess excellent communication (Written and Oral)
- Must have the ability to achieve sales targets and other duties assigned by the marketing manager
- Must possess excellent accountability skills


QUALIFICATION:
Interested applicants must possess a minimum of OND in any discipline


REMUNERATION:
- We offer attractive commission and bonus package.
- We will provide logistics where needed to aid marketing drive.
- Top performers will have the opportunity of becoming a full staff.



Method of Application
All qualified candidates should send their applications, copies of credentials and CV's to: careers@overallheuristic.com
ProgrammingLearn Beginners Website Design / Wordpress by dplumptre(op): 4:19pm On Oct 30, 2017
Theres a training about to set sail at a reasonable price, This training will cover the beginners level of html and css then will further teach you how to

use wordpress efficiently.

Requirements

A working computer, either Windows or Mac.
A modern browser like Chrome, Firefox, or Safari.
You don't need any experience with programming languages like HTML or CSS.

visit the link below to register

http://overallheuristic.com/beginners-web-design-wordpress-training/

ProgrammingTime Table App by dplumptre(op): 8:33am On Oct 26, 2017
This application allow users to be updated when they are on duty , it also allows them to comment and upload challenges they face during an event as regards to the timetable.
check information details of the other users in order to communicate with them effectively.

However , you will need login credentials to do anything check out the video on youtube


https://www.youtube.com/watch?v=yvx0KLtYJhs

follow me on ig, facebook and twitter with the handle "overallheuristic"

FoodNigeria Food Fair 2017 (food Exhibition And Sales Event, An Online/offline Food) by dplumptre(op): 8:38am On Jul 23, 2017
NIGERIA FOOD FAIR is a 3-day food exhibition and sales event. It aims at showcasing the quality of Nigerian Food Varieties with opportunities in the local and international markets. The Food

Fair will also promote entrepreneurship and accelerate innovation within the food and beverage industry through ecommerce and online solutions.

NIGERIA FOOD FAIR is coming up on the 18th - 20th of September 2017. It is a 3-day food exhibition and sales event, an online/offline foods and beverage, food technology/security,

water exhibition, agro logistics and cooking gas expo which aims at showcasing the quality of Nigerian Food Varieties with opportunities in the local and international markets also promoting

entrepreneurship and accelerate innovation within the food and beverage industry through e-commerce and online solutions.

It is time to take your business to another level, BOOK A STAND, SHOWCASE YOUR PRODUCTS, MEET OTHER BUSINESSES AT THE EVENT.


Meet the masters, Learn how to create your own EStore, meet potential investors and access Government loans.

visit http://nigeriafoodfair.com for more details and register if you wish to participate/exhibit/sponsor/ partake in any of the master class .

Follow us on Twitter https://twitter.com/NigeriaFoodFair

Facebook https://www.facebook.com/nigeriafoodfair

Instagram @nigeriafoodfair

website http://nigeriafoodfair.com

EventsNigeria Food Fair by dplumptre(op): 9:49pm On Jul 20, 2017
NIGERIA FOOD FAIR is a 3-day food exhibition and sales event. It aims at showcasing the quality of Nigerian Food Varieties with opportunities in the local and international markets. The Food

Fair will also promote entrepreneurship and accelerate innovation within the food and beverage industry through ecommerce and online solutions.

NIGERIA FOOD FAIR is coming up on the 18th - 20th of September 2017. It is a 3-day food exhibition and sales event, an online/offline foods and beverage, food technology/security,

water exhibition, agro logistics and cooking gas expo which aims at showcasing the quality of Nigerian Food Varieties with opportunities in the local and international markets also promoting

entrepreneurship and accelerate innovation within the food and beverage industry through e-commerce and online solutions.

It is time to take your business to another level, BOOK A STAND, SHOWCASE YOUR PRODUCTS, MEET OTHER BUSINESSES AT THE EVENT.


Meet the masters, Learn how to create your own EStore, meet potential investors and access Government loans.

visit http://nigeriafoodfair.com for more details and register if you wish to participate/exhibit/sponsor/ partake in any of the master class .

Follow us on Twitter https://twitter.com/NigeriaFoodFair

Facebook https://www.facebook.com/nigeriafoodfair

Instagram @nigeriafoodfair

website http://nigeriafoodfair.com

ProgrammingSetting Up Your Email Using Mandrill by dplumptre(op): 3:36pm On Feb 24, 2016
Hi guys in case you are using laravel and you decide to use mandril

here is what you do ,

simply go to https://mandrillapp.com/

create your account click on domain and add your domain

pretty easy right , but theres more

You will now navigate to zohomail and sign up

then you follow the step by step instructions.

For me that I am using digital oceans you can use the image below as a guide


because you will need to set up CNAME , MX , but its pretty straight forward

after doing all that , you then go back to maildrill to verify your webmail

an email is sent to the new webmail then you are good.

ProgrammingActivating Wordpress Plugins On Your Localhost On Ubuntu by dplumptre(op): 1:43pm On Feb 17, 2016
Hi guys , have you ever tried downloading wordpress on your local server and try to activate a plugin only for you to get a form

requiring you to add your ftp details like the image below , here is a quick solution


navigate to your wordpress folder , I will assume you are using apache



$ cd /var/www/html/


$ ls lart

// to view the list of the dir lets assume your worpress folder is the one below


drwxrwxr-x 7 plumptre plumptre 4.0K Feb 17 13:17 wordpress



//all you need to do is to do chown using the apache name



$ sudo chown -R www-data:www-data wordpress



// so the folder will look something like this


drwxrwxr-x 5 www-data www-data 4.0K Feb 17 12:45 wordpress



Then you are good to go .

Inorder to figure out the apache name you can just put the code below in a file


<?php echo(exec(" whoami " ) ) ; ?>

like in my case this echoed www-data

Hope this helped

you can read some other topics by visiting my blog below

blog : http://overallheuristic.com/blog
site : http://overallheuristic.com
twitter : @dplumptre
fb :https://www.facebook.com/

ProgrammingFix Error: Exceeds The Upload Maximum Size For This Site In Wordpress (ubuntu) by dplumptre(op):
Hi guys , have you tried uploading a file on wordpress , perhaps mp3 or mp4 and you get an error saying “Exceeds the upload maximum size ”

Here is a quick solution if you are on ubunbu or on a similar linux distribution

What you need to do is to simply edit your php.ini file


1 .open your terminal and type in

$ sudo nano /etc/php5/apache2/php.ini



2. look for the following and edit them accordingly’

max_execution_time = 150

post_max_size = 20MB;

upload_max_filesize = 20MB



the do a

[color=#000000]


$ sudo service apache2 restart
[/color]



you can read some other topics by visiting my blog below

blog : http://overallheuristic.com/blog
site : http://overallheuristic.com
twitter : @dplumptre
fb :https://www.facebook.com/

ProgrammingRe: Payment System Integration Webpay(interswitch) With Php by dplumptre(op): 12:00pm On Dec 22, 2015
spymybox:
please how can i generate The SHA 512 value productidtransactionreferencemackey. on my site can you help bro ?
like I explained earlier the $hash value we are trying get is the value in the form below

<input name=”hash” type=”hidden” value=”<?php echo $hash; ?>” />

inorder to do this, you will need to concatenate these values together , I intentionally made some of these values

constants so you can just include them in your file since they wont change .

I have explained how I got the values earlier.

$concatenation = $txnref.P_ID.P_I_ID.$amountwp.SITE_REDIRECT_URL.MAC_KEY;

then php comes with its own hash , below


$hash = hash(‘sha512’,$concatenation);

so this is the $hash value you add to the form below

<form name=”payform” id=”payform” action=”<?php echo INTERSWITCH_URL; ?>” method=”post”>
<input name=”product_id” type=”hidden” value=”<?php echo P_ID ; ?>” />
<input name=”amount” type=”hidden” value=”<?php echo $amountwp ; ?>” /> <!– adjusted amount to interswitch –>
<input name=”currency” type=”hidden” value=”566″ />
<input name=”site_redirect_url” type=”hidden” value=”<?php echo SITE_REDIRECT_URL; ?>” />
<input name=”site_name” type=”hidden” value=”<?php echo SITE_NAME; ?>” />
<input name=”txn_ref” type=”hidden” value=”<?php echo $txnref; ?>” />
<input name=”pay_item_id” type=”hidden” value=”<?php echo P_I_ID ; ?>” />
<input name=”hash” type=”hidden” value=”<?php echo $hash; ?>” /> <!-- add $hash here -->
<input name=”cust_name” type=”hidden” value=”<?php echo $name; ?>” /> <!– cust_name user fullname–>
<input name=”cust_id” type=”hidden” value=”<?php echo $email; ?>” /> <!– cust_id user email–>
</form>


if you noticed, I did not add any submit button ,thats because I used ajax , but you can add a manual submit

button as long as it goes to the url "INTERSWITCH_URL" which is this "https://stageserv.interswitchng.com/test_paydirect/pay"

if it goes well ,you will be redirected to the payment page , but you know you will be required to create a database to

store the values also , so that you can have a log incase you need to check or whatever but they actually made this

compulsory because, the interswitch guys will confirm this before moving you LIVE ,just put that in mind as a side

note
ProgrammingMobile App With Ionic - Cors by dplumptre(op): 11:40am On Dec 18, 2015
Hi guys,


For all of you that experiencing this error below when you are trying to do a $http get request

XMLHttpRequest cannot load http://domainWhereTheGetRequest No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8100' is therefore not allowed access.

The issue for this is CORS "Cross-origin resource sharing" is a mechanism that allows restricted resources

so Since CORS is only an issue when running your app in development mode with ionic serve, and not when running as a mobile app packaged with Cordova, a simpler option is to just disable CORS altogether for local development. For Chrome for example there's a plugin called "Allow-Control-Allow-Origin: *" that lets you disable CORS.

here is the url below

https://chrome.google.com/webstore/detail/allow-control-allow-origi/nlfbmbojpeacfghkpbjhddihlkkiljbi

you can read some other topics by visiting my blog below

blog : http://overallheuristic.com/blog
site : http://overallheuristic.com
twitter : @dplumptre
fb :https://www.facebook.com/

ProgrammingPayment System Integration Webpay(interswitch) With Php by dplumptre(op):
Hello guys,

I have worked on a few payment platforms before but this particular one gave me alot of

headaches

also due to the poor documentation , it can be very frustrating but then I decided to do a

quick guide to help anyone facing this.

I had some help from a guy “Akinyele ” after reading some steps he wrote on his blog.


Firstly , there are some basic parameters you will be given from interswitch,

the file is usually called webpay demo merchant , so its the information here that you will use

to set up


1. product_id : This value will be in the demo document from interswitch
2 Amount : The amount, note that this will be in kobo ,thats the way you send it and this can be done by multipling it with 100
3 Currency : This value will be in the demo document usually 566 for naira
4 site_redirect_url : This will be the page you will be redirected to after the payment , here is where you will pickup the request from
interswitch service and know if the transaction was successful or not , here is also where you can
display your transaction receipt
5 site_name : website name
6 cust_id : this is should be unique , I used email
7 txn_ref : this should be a unique code , you can use the time() orappend it with something, the fact is that it much be unique
for every transaction
8 MacKey : This value will be in the demo document, it very long about 100 char or so

9 $hash -> this is a hash you need to create by concatenating some values together , its very important because if there is any little
mistake you wont even see the payment page to begin with , every thing has to be on point, it will also be 512 hashed
10: pay_item_id : This value will be in the demo document from interswitch


To make things easy we can define a constant file and include it in your scripts for the variables that wont change
it will look like this below





define(“SITE_NAME”,”MY SITE NAME”);
define(“BASE_PATH”,”http://localhost/mysite”);
define(“MAC_KEY”,”xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx”);
define(“P_ID”,2909); //product id
define(“INTERSWITCH_URL”,”https://stageserv.interswitchng.com/test_paydirect/pay”);
define(“P_I_ID”,101); //pay_item_id
define(“SITE_REDIRECT_URL”,”http://localhost/mysite/response.php/”);





<form name=”payform” id=”payform” action=”<?php echo INTERSWITCH_URL; ?>” method=”post”>
<input name=”product_id” type=”hidden” value=”<?php echo P_ID ; ?>” />
<input name=”amount” type=”hidden” value=”<?php echo $amountwp ; ?>” /> <!– adjusted amount to interswitch –>
<input name=”currency” type=”hidden” value=”566″ />
<input name=”site_redirect_url” type=”hidden” value=”<?php echo SITE_REDIRECT_URL; ?>” />
<input name=”site_name” type=”hidden” value=”<?php echo SITE_NAME; ?>” />
<input name=”txn_ref” type=”hidden” value=”<?php echo $txnref; ?>” />
<input name=”pay_item_id” type=”hidden” value=”<?php echo P_I_ID ; ?>” />
<input name=”hash” type=”hidden” value=”<?php echo $hash; ?>” />
<input name=”cust_name” type=”hidden” value=”<?php echo $name; ?>” /> <!– cust_name user fullname–>
<input name=”cust_id” type=”hidden” value=”<?php echo $email; ?>” /> <!– cust_id user email–>
</form>

$amountwp = amount * 100;

Then the $hash we will form will look like this below
$concatenation = $txnref.P_ID.P_I_ID.$amountwp.SITE_REDIRECT_URL.MAC_KEY;
$hash = hash(‘sha512’,$concatenation);



If all things go well you should see the payment page, but note that you will need to store data in the db I wont cover that part though that pretty basic.

After payment you will redirected to the response.php page here you need to make use of the webpay service

1. note that it returns transaction reference



$txnRef = $_POST[‘txnref’];
$xml = $plumptre->getresponse(P_ID, MAC_KEY, $amountwp, $txnRef);
$response_code = $xml->ResponseCode; //00 means successful
$response_descr = $xml->ResponseDescription ; //Approved Successful



in the above code I am using the xml there is a function I created getresponse() it accepts 4 values
the product id, the mackey, amount * 100, also the transaction ref
so you can create your receipt using the response code if 00 its successful etc



Navigate to my blog to view the getresponse() function details

http://overallheuristic.com/payment-system-integration-webpayinterswitch-with-php/



site : http://overallheuristic.com
twitter : @dplumptre
fb :https://www.facebook.com/

ProgrammingRe: White Screen Error Solved & Getting Whoops! Back In Laravel 5 by dplumptre(op): 3:53pm On Nov 20, 2015
I havent had time to explain better,

If you look at the images I attached below you will see two different error pages ,

The colorful one is the Whoops error I was talking about , you can see it from the title , I actually prefer it that is why I go through those

steps before to make it display when using laravel 5.

On the other hand, the other one is the error page that appears when you install laravel 5 ,

you dont need any setting whatsoever , rather than to make the APP_DEBUG to true in your .env file

I dont really like it because its not as detailed and perhaps

less colourful but its your choice really to choose the one that works for you

ProgrammingWhite Screen Error Solved & Getting Whoops! Back In Laravel 5 by dplumptre(op): 1:28pm On Nov 05, 2015
Hi peeps,

Have you ever worked on an application on laravel 5, but when you get an error

what you see is a white screen ,

what you need do a chmod 777 -R on the storage folder in your laravel application,

then you get the normal error , but for me I actually prefer to use the whoops error

this was in laravel 4 because its very detailed but it has been yanked off in laravel 5

A quick way to do this is first editing your composer.json file and adding

"filp/whoops": "~1.0", under the require so it looks somthing like this below

"require": {
"laravel/framework": "5.0.*",
"illuminate/html": "~5.0",
"filp/whoops": "~1.0",
"intervention/image": "^2.3"
},

you then go to laravel app from your terminal and do:

sudo composer update, after that you navigate to apps/Exceptions/handlers.php

add this method below to the Handler class:

protected function renderExceptionWithWhoops(Exception $e)
{
$whoops = new \Whoops\Run;
$whoops->pushHandler(new \Whoops\Handler\PrettyPageHandler());

return new \Illuminate\Http\Response(
$whoops->handleException($e),
$e->getStatusCode(),
$e->getHeaders()
);
}



then you look for a method "render " then add this in the method

if (config('app.debug'))
{
return $this->renderExceptionWithWhoops($e);
}


so it will look like this below

public function render($request, Exception $e)
{

if (config('app.debug'))
{
return $this->renderExceptionWithWhoops($e);
}

return parent::render($request, $e);
}





/**
* Render an exception using Whoops.
*
* @param \Exception $e
* @return \Illuminate\Http\Response
*/
protected function renderExceptionWithWhoops(Exception $e)
{
$whoops = new \Whoops\Run;
$whoops->pushHandler(new \Whoops\Handler\PrettyPageHandler());

return new \Illuminate\Http\Response(
$whoops->handleException($e),
$e->getStatusCode(),
$e->getHeaders()
);
}


then you are done






view more post on http://overallheuristic.com/blog/

site : http://overallheuristic.com
twitter : @dplumptre
fb :https://www.facebook.com/

ProgrammingRe: Solution To Tokenmismatchexception Problem In Laravel 5.1 by dplumptre(op): 9:54am On Oct 12, 2015
if you dont want to create any fancy page , you could just redirect to the logout page


navigate to app/Exceptions/Handler.php

in the render method just include this


if($e instanceof \Illuminate\Session\TokenMismatchException)
{
return redirect('/auth/logout'); //so it kills the session and takes you where you wil login easily
}
ProgrammingIf You Are On Laravel 5.1 You Should Read This by dplumptre(op): 4:11pm On Sep 29, 2015
The first time I tried to deploy my application on the server after upgrading to laravel 5.1

all I saw was white screen , I was surprised

since I had already been working with laravel 5 and had deployed it a few times on the same server so I thought it was just business as usual

plus all my settings were ok....

view rest of the post on http://overallheuristic.com/if-you-have-upgraded-to-laravel-5-1-you-should-read-this/


view more post on http://overallheuristic.com/blog/

site : http://overallheuristic.com
twitter : @dplumptre
fb :https://www.facebook.com/

ProgrammingAdding Twitter Buttons On Your Website by dplumptre(op): 3:50pm On Sep 29, 2015
Hey peeps,

Some times you might want to add a follow button or a share twitter button to your website you can do it this way

Follow these steps to add a Twitter button to your website:

1.Navigate to http://twitter.com/about/resources/buttons in your browser.
2.Select the button you'd like to use and copy the HTML code that pops up (highlighted below).
3.Paste that code in the appropriate area of your website's source code. That's it!



if you want to see more stuffs visit my blog http://overallheuristic.com/blog/

site : http://overallheuristic.com
twitter : @dplumptre
fb :https://www.facebook.com/

ProgrammingRe: Am New To Laravel And I Seriously Need Help by dplumptre(m): 8:52am On Sep 24, 2015
osazekid:
I keep getting array_merge(): Argument #2 is not an array, in the browser, has anyone encountered such?
hey, what version of laravel are you using ? By default app/storage is the location for log files,

I believe the error is probably the way you wrote an array or something remember there are different ways of writing these thing

if you want to see more stuffs visit my blog http://overallheuristic.com/blog/

site : http://overallheuristic.com
twitter : @dplumptre
fb :https://www.facebook.com/

WebmastersRe: Adsense Gurus Please Enter Here , We Newbies Need Help Very Urgently!!!! by dplumptre(m): 10:03am On Sep 19, 2015
really so people sell adsense account wow
ProgrammingCommon Error In Laravel #1:solved File_put_contents Failed To Open Stream by dplumptre(op): 5:12am On Sep 19, 2015
hi guys,


I don't know if you have tried opening your website just to see this error below

file_put_contents(/var/www/html/laravel/bootstrap/cache/services.json): failed to open stream: Permission denied

here is the easy fix

from your terminal

get into your application dir

php artisan cache:clear

chmod -R 777 storage

composer dump-autoload


you might need to do sudo if you not the root user though ,this is laravel 5.1 for laravel 4 you will need to change

chmod -R 777 storage to chmod -R 777 app/storage



if you want to see more stuffs visit my blog http://overallheuristic.com/blog/

site : http://overallheuristic.com
twitter : @dplumptre
fb :https://www.facebook.com/
ProgrammingSolution To Tokenmismatchexception Problem In Laravel 5.1 by dplumptre(op):
Hello peeps , I dont know if you have notice this error "TokenMismatchException in VerifyCsrfToken.php line 53"

sometimes when you are trying to login , it looks alot like the image below



see images below

Laravel provides an easy method of protecting your application from cross-site request forgeries, it uses CSRF Protection

and its can be done by using form helper in your application like this below

{!! Form::open() !!}

{!! Form::close() !!}

From laravel 5 , the form helper has been yanked off , but you can always easily integrate it to your laravel 5.1

application I will cover that in a latter tutorial,

The solution to this error is just navigating to your auth/logout page so it will just destroy the session and login from the

login page again. But if you where designing application for users , you wont want them to see the hideous error page or

even if you have a good error page you still need to find a way to solve the issue for them.

Here is what you do

Create tokenerror_page.blade.php error page that will navigate people to where the will logout from the auth/logout page

the route may look like this below

Route::get('/token_error_page', function () {
return redirect('welcome/tokenerror_page');
});</div>
<strong>the page tokenerror_page.blade.php could contain this</strong>
<div class="well">
<div class="margin-40 score text-center"><i class="fa-5x fa fa-frown-o"></i> well this is embarrassing
<a>Login from here &amp;raquo &amp;raquo</a></div>

see image below


Then you navigate to app/Exceptions/Handler.php

in the render method just include this


if($e instanceof \Illuminate\Session\TokenMismatchException)
{
return redirect('/token_error_page');
}

this will catch the exception and navigate to the error page that you have created and they can click on the login from here button

and this time your users will be able to signin without no errors





if you want to see more stuffs visit my blog http://overallheuristic.com/blog/

site : http://overallheuristic.com
twitter : @dplumptre
fb :https://www.facebook.com/

ProgrammingRe: Laravel:call To Undefined Method Illuminate\database\eloquent\collection::save() by dplumptre(op): 12:31pm On Sep 02, 2015

$accounts = Account::where('gender','=','male');

$accounts->each(function($account)
{
$account->name ="Ademola Plumptre";
$account->save();
});




The code above works by @jacob05 but you can also do it this way below , there are different ways really, its always good to just pick the one , you

are comfortable with.


$accounts = Account::where('gender','=','male')->get();

foreach($accounts as $account){

$account->name ="Ademola Plumptre";
$account->save();

}



Its good to know we have laravel peeps in the house I will try to keep the post coming and hopefully we will all learn a thing or two from ideas we

share together .

if you want to see more stuffs visit my blog http://overallheuristic.com/blog/

site : http://overallheuristic.com
twitter : @dplumptre
fb :https://www.facebook.com/
ProgrammingRe: Populating Select Menu From Model In User Registration Form In Laravel by dplumptre(m): 2:17am On Aug 29, 2015
maekhel:
This worked but I didn't know could do such in Laravel 5.
Yeah you can easily override the methods in the AuthenticatesAndRegistersUsers trait

by copying the methods to your AuthController Class, easy navigation if you are using netbean as I am , just press ctrl and click on

AuthenticatesAndRegistersUsers from the AuthController Class , so you can just easily modify both methods below to suit your purpose

public function getRegister()
{
//code
}

public function postRegister(Request $request)
{
//code here
}
ProgrammingRe: Laravel:call To Undefined Method Illuminate\database\eloquent\collection::save() by dplumptre(op): 1:48am On Aug 29, 2015
@jidez007 thanks av updated the code , leaving it that way might just bring confusion to peeps.

1 2 (of 2 pages)