controllers


Customizing RegisterController.php - Laravel 5.3


I want to restrict the access to the route /register to:
if(Auth::user()->admin == 1)
However, I can't seem to find the showRegistrationForm() method in RegisterController.php as shown under Router.php in vendor\laravel\framework\src\Illuminate\Routing
Here's my RegisterController.php
http://pastebin.com/RVARcy0r
You have to make a method showRegistrationForm() in your controller. All these methods are defined in the Illuminate\Foundation\Auth\RegistersUsers.php.
Also, restrict the access in the middleware.

Related Links

Customizing RegisterController.php - Laravel 5.3

Categories

HOME
hpoo
google-chrome
nam
tomcat
facebook-messenger
devexpress
subdomain
risk-management
mongoid
google-play-services
malware
navigation
position
javafx-8
wagtail
eddystone
driver
yeoman-generator-angular
lapack
amazon-emr
graphdb
outlook-restapi
bundler
cuba-platform
psql
amazon-mws
azure-machine-learning
eclipse-emf
exchange-server-2010
ratio
password-generator
hevc
openbravo
javax.persistence
nic
publishing
epplus
rspec-rails
spring-rabbitmq
runtimeexception
imgur
flowchart
slideshow
jacoco-maven-plugin
newtons-method
yoast
latexml
zend-form
android-5.0-lollipop
uiautomatorviewer
ilrepack
hibernate-ogm
amazon-elastic-beanstalk
android-mediarecorder
wikimapia
lvalue
mechanicalturk
rustdoc
nrf51
boost-compute
libharu
mathjs
jenkins-workflow
openseadragon
node.js-connect
urbit
swiffy
teamviewer
wepay
perceptron
place
bjam
unhandled
gql
search-form
domino-designer-eclipse
cache-manifest
thoughtworks-go
ecos
loginview
android-2.3-gingerbread
incognito-mode
map
quickgraph
indesign-server
android-authenticator
red-system
gprof
tridion-2011
msinfo32
kaazing
struts2-s2hibernate
prefuse
glx
haiku
radscheduler
fgetc
efs
jboss-mdb
acceleration

Resources

Encrypt Message