andrewelkins / laravel-4-bootstrap-starter-site Goto Github PK
View Code? Open in Web Editor NEWLaravel 4 Starter Site is a basic blog application using several nice community packages.
Laravel 4 Starter Site is a basic blog application using several nice community packages.
The role field is populated with ["post_comment"], after save it is populated with { '4' ; 'post_comment'}
Most likely an issue with Zizaco/Entrust and the way it is now saving data vs the way it is checking against it
should be oldest to newest.
Run the app then look at the source code in the browser.
if you look at the source code when ran you will see that it is converting the quotes on class='active'
Installing dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for zizaco/entrust dev-master -> satisfiable by zizaco/entrust dev-master.
- zizaco/entrust dev-master requires php >=5.4.0 -> no matching package found.
Potential causes:
Post L4 composer update, there seems to be an issue with the user update in the admin.
I found other issue, when edited a comment i show the same error.
When I run: composer update the following exception is thrown.
ErrorException: Runtime Notice: Declaration of BigElephant\Presenter\View\Environment::make() should be compatible with Illuminate\View\Environment::make($view, $data = Array) in /Users/dawid/server/o2c/vendor/bigelephant/presenter/src/BigElephant/Presenter/View/Environment.php line 9
Sorry I just realised it's a problem with "BigElephant" package not your starter.
{{}} is now raw
{{{}}} is now escaped
In start/global.php the method App::error(function(Exception $exception, $code)
prevents Whoops error handling in debug mode. A proposed solution is to add if (Config::get('app.debug')) return;
before the switch statement.
This was originally suggested here: http://forums.laravel.io/viewtopic.php?pid=36937
default.blade.php templates contains the following code at (e.g.) line 58:
<li {{{ (Request::is('/') ? 'class="active"' : '') }}}><a href="{{{ URL::to('') }}}">Home</a></li>
When the layout is parsed, the output becomes:
<li class="active"><a href="http://localhost:8000">Home</a></li>
I keep getting a Error 500 when trying to edit or delete comments. If you get a chance to look into it that would be great. I will see if I can figure it out.
Super cool that you put this together, Andrew.
I'm following the install instructions on my Win 7 box.
When running:
php artisan db:seed
I get:
[Swift_RfcComplianceException]
Address in mailbox given [] does not comply with RFC 2822, 3.6.2.
db:seed [--class[="..."]] [--database[="..."]]
Any ideas why?
I cannot reproduce after a composer update.
c:\xampp\htdocs\Laravel-4-Bootstrap-Starter-Site>composer install
Loading composer repositories with package information
Installing dependencies
Installing jasonlewis/basset (dev-develop f0b4273)
Cloning f0b4273c954365bef0eb4401c6157da20c80507e
[RuntimeException]
Failed to execute git checkout "f0b4273c954365bef0eb4401c6157da20c80507e" && git reset --hard "
f0b4273c954365bef0eb4401c6157da20c80507e"
fatal: reference is not a tree: f0b4273c954365bef0eb4401c6157da20c80507e
install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-custom-installers] [-
-no-scripts] [--no-progress] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader]
Any Idea why?
cloned repository
php composer.phar install
configure database
configure mailer
php artisan migrate
Call to undefined function : https://gist.github.com/orangepick/5519085
any idea what I am doing wrong?
When creating a new user (as the admin user via the admin dashboard), if any validation errors occur as a result of breaking the default validation rules in ConfideUser.php, a BadMethodCallException is thrown, as the getErrors() method does not exist.
As per the Ardent doccumentation (https://github.com/laravelbook/ardent#errors), line 79 of app/controllers/admin/AdminUsersController.php should read:
$error = $user->errors()->all();
instead of:
$error = $user->getErrors()->all();
When I try to go to forgot password the link is user/user/forgot instead of user/forgot. Also when I hit the correct route Error 500 is triggered. Running PHP 5.4.4
Upon installation, I went to login with the user and admin credentials, only to be denied access. I thought I messed something up until I checked the database and saw "confirmed" set to "0". The UsersTableSeeder is set to 0 on both accounts as well.
It would seem reasonable to either note that by default they're both disabled, or enable only the Admin account on install to show the ability of being able to login with the Admin account being confirmed, and being denied access with the User account that is not confirmed.
Or if a users credentials are correct, but not confirmed, a notice that says "Account is not confirmed".
I don't know if this is broken only on my local environment but I can't create a new blog post. Directs me to server error:500 page. Anyone else have this issue?
The three brace notation on the pagination command on line 54 of views/admin/users/index.blade.php seems to break pagination (actual html is displayed on the page). Changing line 54 to the following {{ $users->links() }}
fixes the problem.
If you user the /user route to display the update form, if there is an error it redirects to the create form.
I think the issue is that the registration form and update form both post to /user. The redirection to /user/create is probably there because of the registration form validation but doesn't work for the update form
Not sure on best way to fix... maybe separate post processing for update form, or have a conditional redirect depending on the form id or something?
Hi Andrew
Thank you for adding this great starter kit. It shows exactly what to do to achieve simple CRUD functionality in L4.
Just a small issue. Because of your custom 403, 404 and 500 pages, development is very difficult since you never see the actual error (and a developer will miss out on the awesomeness of the debug console).
To fix it I simply added this line to app/start/global.php on line 56 after Log::error($exception)
if (Config::get('app.debug')) return;
That way in debug mode the developer can still see debug messages.
Hope this helps!
On line 14 in user/login.blade.php
is only one " : " instead " :: " `
please change the action to `
`The same problem results from the storage/views/ when you first try to enter this URL http://my-laravel-4/user/login
In that view is also missing one " : " in the action method.
Currently using get/delete in the admin. This is obviously a no-no.
I am running laravel4 boostrapper on win7 64bit wamp. and i am getting 500 for all pages.
after debugging a lot i found if i put at the end of default.blade.php it works otherwise all pages gives me 500 error.
Do i need to config something ?
I found a little problem,
If you have installed php5-tidy and try to run the application, an error would occur on the Strings.php file, saying that the class Tidy is not found.
Seems like you miss a file or maybe the validation of Tidy should be done in another way.
I just "fixed" it by uninstalling tidy. I guess you can also delete the "first part" of the IF in the Strings.php file and use the other parser you did.
Either needs to delete all of that user's data, or assign it to a "guest" user.
When deleting a post through the admin it deletes the post, but displays an error.
Eloquent was updated and that update is breaking Ardent and Confide. I've submitted bugs to both projects.
laravel-ardent/ardent#34
Zizaco/confide#51
Andrew you need to update the composer.json file for the new Way Generators.
Hello everybody, I cloned this repo and ran composer install, but as soon as it shows Installing dependencies... Throws this error:
[Composer\Downloader\TransportException]
The "http://packagist.org/p/zizaco/confide$3f4749d08a0176316d5506d68dda1c69
ad70ef51f52efd7e1e904fd7d1342ba8.json" file could not be downloaded (HTTP/1
.1 404 Not Found)
and everything stops. I know it's because that url indeed is wrong, because instead of "/p/" is "/packages/" and also de md5 is wrong. But why is this happening? Thanks everyone.
Any ideas why /admin gives me a 404 error? I'm logged in as the admin user.
Trying to run artisan to do migration and db:seed gives me error (in artisan in general).
Note that directories double in some places dev\webdev\uni\dev\webdev\ like beginning.
ErrorException: Warning: include(Z:\dev\webdev\uni\dev\webdev\uni\www\laravel\vendor\jasonlewis\expressive-date\src\ExpressiveDateServiceProvider.php): failed to open stream: No such file or directory in Z:\dev\webdev\uni\www\laravel\vendor\composer\ClassLoader.php line 183
in Z:\dev\webdev\uni\www\laravel\vendor\composer\ClassLoader.php line 183
at ErrorHandler->handle('2', 'include(Z:\dev\webdev\uni\dev\webdev\uni\www\laravel\vendor\jasonlewis\expressive-date\src\ExpressiveDateServiceProvider.php): failed to open stream: No such file or directory', 'Z:\dev\webdev\uni\www\laravel\vendor\composer\ClassLoader.php', '183', array('class' => 'ExpressiveDateServiceProvider', 'file' => 'Z:/www/laravel/../../dev/webdev/uni/www/laravel/vendor/jasonlewis/expressive-date/src/ExpressiveDateServiceProvider.php')) in Z:\dev\webdev\uni\www\laravel\vendor\composer\ClassLoader.php line 183
at ClassLoader::loadClass() in Z:\dev\webdev\uni\www\laravel\vendor\composer\ClassLoader.php line 183
at ClassLoader->loadClass('ExpressiveDateServiceProvider')
at spl_autoload_call('ExpressiveDateServiceProvider') in Z:\dev\webdev\uni\www\laravel\vendor\laravel\framework\src\Illuminate\Foundation\ProviderRepository.php line 123
at ProviderRepository->createProvider(object(Application), 'ExpressiveDateServiceProvider') in Z:\dev\webdev\uni\www\laravel\vendor\laravel\framework\src\Illuminate\Foundation\ProviderRepository.php line 89
at ProviderRepository->compileManifest(object(Application), array('Illuminate\Foundation\Providers\ArtisanServiceProvider', 'Illuminate\Auth\AuthServiceProvider', 'Illuminate\Cache\CacheServiceProvider', 'Illuminate\Foundation\Providers\CommandCreatorServiceProvider', 'Illuminate\Session\CommandsServiceProvider', 'Illuminate\Foundation\Providers\ComposerServiceProvider', 'Illuminate\Routing\ControllerServiceProvider', 'Illuminate\Cookie\CookieServiceProvider', 'Illuminate\Database\DatabaseServiceProvider', 'Illuminate\Foundation\Providers\OptimizeServiceProvider', 'Illuminate\Encryption\EncryptionServiceProvider', 'Illuminate\Filesystem\FilesystemServiceProvider', 'Illuminate\Hashing\HashServiceProvider', 'Illuminate\Foundation\Providers\KeyGeneratorServiceProvider', 'Illuminate\Log\LogServiceProvider', 'Illuminate\Mail\MailServiceProvider', 'Illuminate\Database\MigrationServiceProvider', 'Illuminate\Pagination\PaginationServiceProvider', 'Illuminate\Foundation\Providers\PublisherServiceProvider', 'Illuminate\Queue\QueueServiceProvider', 'Illuminate\Redis\RedisServiceProvider', 'Illuminate\Auth\Reminders\ReminderServiceProvider', 'Illuminate\Database\SeedServiceProvider', 'Illuminate\Foundation\Providers\ServerServiceProvider', 'Illuminate\Session\SessionServiceProvider', 'Illuminate\Foundation\Providers\TinkerServiceProvider', 'Illuminate\Translation\TranslationServiceProvider', 'Illuminate\Validation\ValidationServiceProvider', 'Illuminate\View\ViewServiceProvider', 'Illuminate\Workbench\WorkbenchServiceProvider', 'Zizaco\Confide\ConfideServiceProvider', 'Zizaco\Entrust\EntrustServiceProvider', 'LaravelBook\Laravel4Powerpack\Providers\PowerpackServiceProvider', 'ExpressiveDateServiceProvider', 'Basset\BassetServiceProvider', 'BigElephant\Presenter\PresenterServiceProvider')) in Z:\dev\webdev\uni\www\laravel\vendor\laravel\framework\src\Illuminate\Foundation\ProviderRepository.php line 51
at ProviderRepository->load(object(Application), array('Illuminate\Foundation\Providers\ArtisanServiceProvider', 'Illuminate\Auth\AuthServiceProvider', 'Illuminate\Cache\CacheServiceProvider', 'Illuminate\Foundation\Providers\CommandCreatorServiceProvider', 'Illuminate\Session\CommandsServiceProvider', 'Illuminate\Foundation\Providers\ComposerServiceProvider', 'Illuminate\Routing\ControllerServiceProvider', 'Illuminate\Cookie\CookieServiceProvider', 'Illuminate\Database\DatabaseServiceProvider', 'Illuminate\Foundation\Providers\OptimizeServiceProvider', 'Illuminate\Encryption\EncryptionServiceProvider', 'Illuminate\Filesystem\FilesystemServiceProvider', 'Illuminate\Hashing\HashServiceProvider', 'Illuminate\Foundation\Providers\KeyGeneratorServiceProvider', 'Illuminate\Log\LogServiceProvider', 'Illuminate\Mail\MailServiceProvider', 'Illuminate\Database\MigrationServiceProvider', 'Illuminate\Pagination\PaginationServiceProvider', 'Illuminate\Foundation\Providers\PublisherServiceProvider', 'Illuminate\Queue\QueueServiceProvider', 'Illuminate\Redis\RedisServiceProvider', 'Illuminate\Auth\Reminders\ReminderServiceProvider', 'Illuminate\Database\SeedServiceProvider', 'Illuminate\Foundation\Providers\ServerServiceProvider', 'Illuminate\Session\SessionServiceProvider', 'Illuminate\Foundation\Providers\TinkerServiceProvider', 'Illuminate\Translation\TranslationServiceProvider', 'Illuminate\Validation\ValidationServiceProvider', 'Illuminate\View\ViewServiceProvider', 'Illuminate\Workbench\WorkbenchServiceProvider', 'Zizaco\Confide\ConfideServiceProvider', 'Zizaco\Entrust\EntrustServiceProvider', 'LaravelBook\Laravel4Powerpack\Providers\PowerpackServiceProvider', 'ExpressiveDateServiceProvider', 'Basset\BassetServiceProvider', 'BigElephant\Presenter\PresenterServiceProvider')) in Z:\dev\webdev\uni\www\laravel\vendor\laravel\framework\src\Illuminate\Foundation\start.php line 181
at require('Z:\dev\webdev\uni\www\laravel\vendor\laravel\framework\src\Illuminate\Foundation\start.php') in Z:\dev\webdev\uni\www\laravel\bootstrap\start.php line 57
at require_once('Z:\dev\webdev\uni\www\laravel\bootstrap\start.php') in Z:\dev\webdev\uni\www\laravel\artisan line 30
If you submit the form at user/create you get an error about the username column not being in the SQL (because it's not in the form).
SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'username' cannot be null (SQL: insert into users
(username
, email
, password
, confirmation_code
, updated_at
, created_at
)
If you add the username in to the form and submit it, there is no error but if you change the email address of the user (which should be a valid action?) it creates a new record in the database rather than updating the user details with the new email address.
Hey Andrew,
Note: I have just done a fresh install following your instructions.
Issue:
When I click Create Account on Sign Up page, it goes to /user
Error Message:
Missing argument 1 for UserController::postIndex()
Line 24
I wish I could provide a solution for you, but I'm new to Laravel.
What I find strange is that the function does not ask for any parameters/args. :-/ [scratches-head]
php artisan migrate
Fatal Exception that the Elephant service provider is missing!
Admin can't post comments (I do have enabled comments for admin)
You don't have the correct permissions to add comments.
Hi, when an anonymous user tries to view a post, it shows the error message.
The URL on the cancel button points to admin/blog instead of admin/blogs. Line 98 of views/admin/blogs/edit.blade.php should be <a class="btn btn-link" href="{{{ URL::to('admin/blogs') }}}">Cancel</a>
If you're updating credentials of a user in admin, the password gets set to empty string upon update.
Need to maintain user's password on user update? (unless supplying a new one)
[2013-03-17 22:45:28] log.ERROR: exception 'Illuminate\Session\TokenMismatchException' in /Web/tgc/app/filters.php:65
Stack trace:
#0 [internal function]: {closure}(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
Any ideas? :/ I'm a bit stumped, think it might relate to 3a39c60
Hey Andrew, Just a heads up that I finally got my master template composer posted: https://github.com/j20/laravel-master-composer
Hello Andrew, I'm new to both your project and Laravel, so I'm not sure it's really me or it's because I use Windows, but the bootstrap icons don't appear on all buttons and going with firebug it also shows that the file failed to load current URL. Everything else seems to work.
Oh also a quick suggestion, you should put the '/admin' somewhere in the top men, we shouldn't have to type it to get in the admin section, apart from that..well done :)
This gets called if trying to access a route that needs authentication but the value isn't in the language file
Hi there,
On line 4 of 2013_05_05_024934_entrust_permission_index.php
the class name ConfideSetupUsersTable
is being redeclared from the file 2013_02_05_024934_confide_setup_users_table.php
Changing the line to class EntrustPermissionIndex extends Migration {
fixed the error
Using windows and xampp.
If you put this project into subdirectory ex. "localhost/larave4" login doesn't work because it redirects you to localhost/user/login instead of localhost/laravel4/user/login
Andrew you left the class=" and ending " off of the links.
I received this after a fresh install.
{"error":{"type":"ErrorException","message":"Runtime Notice: Declaration of BigElephant\Presenter\View\Environment::make() should be compatible with Illuminate\View\Environment::make($view, $data = Array, $mergeData = Array) in /Users/creative/Sites/laravel/trunk/vendor/bigelephant/presenter/src/BigElephant/Presenter/View/Environment.php line 9","file":"/Users/creative/Sites/laravel/trunk/vendor/bigelephant/presenter/src/BigElephant/Presenter/View/Environment.php","line":9}}
Any ideas?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.