Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

guest.blade install stage #206

Closed
illuminate3 opened this issue Oct 20, 2017 · 7 comments
Closed

guest.blade install stage #206

illuminate3 opened this issue Oct 20, 2017 · 7 comments

Comments

@illuminate3
Copy link

illuminate3 commented Oct 20, 2017

Error:

Parse error: syntax error, unexpected ')', expecting ']' (View:voten/resources/views/layouts/guest.blade.php)

the code

    <script>
        window.Laravel = <?php echo json_encode([
            'csrfToken' => csrf_token(), 'env' => config('app.env'), 'pusherKey' => config('broadcasting.connections.pusher.key')) ?>
    </script>

I tried to revert to json_encode but then the page was locked up.

note: a goat told me about your site and then I found out it was laravel so had to try it out.

EDIT:

The token and env variables are causing the issue. If I take them out of the array I can see the page but then can't login with the default admin/password.

@illuminate3
Copy link
Author

update: I upgrade brew and started a fresh install on a different machine. I got to the site. I had to refresh after entering the admin/password but I got in.

I went to change some settings and now I see this:

chmod(/Users/asus/Sites/voten/storage/oauth-public.key): Operation failed: Operation not permitted

storage is already 777.

Also, what services do I need to sign up for to make all this work properly?

I got pusher, sentry, redis.

Do I need echo and oauth?

@akhilvarma
Copy link

remove that script it works

@illuminate3
Copy link
Author

illuminate3 commented Oct 26, 2017

I tried that but I got basically a blank screen. The sign in / login in button becomes disabled.

@saleh-old
Copy link
Contributor

Have you tried running npm run dev?

@peanut24
Copy link

peanut24 commented Dec 1, 2017

Your array doesn't have a closing tag

@rethinkpattern
Copy link

Any fix for this, please I need to fix this.

@saleh-old
Copy link
Contributor

fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants