Giter VIP home page Giter VIP logo

l4-site-tutorial's Introduction

Hi there ๐Ÿ‘‹

l4-site-tutorial's People

Contributors

bstrahija avatar mbbender avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

l4-site-tutorial's Issues

Generic resource classes/views

Hi,

Your tutorial is amazing to learn how laravel works. I also like your way of organizing code.
You mentioned something about repetitive code and you'll expand it in a later tutorial.

But out of curiosity, how will you be fixing the duplicate code?
Will you be using generic resource classes that maybe expands some class?
How about the views?

Class 'App\Site\SiteServiceProvider' not found

Hi,

Well the erorr is self explaining, but I don't know where this is going wrong!
The SiteServiceProvider is found in the public/site/ map.

'providers' => array(

    'Illuminate\Foundation\Providers\ArtisanServiceProvider',
    'Illuminate\Auth\AuthServiceProvider',
    'Illuminate\Cache\CacheServiceProvider',
    'Illuminate\Session\CommandsServiceProvider',
    'Illuminate\Foundation\Providers\ConsoleSupportServiceProvider',
    'Illuminate\Routing\ControllerServiceProvider',
    'Illuminate\Cookie\CookieServiceProvider',
    'Illuminate\Database\DatabaseServiceProvider',
    'Illuminate\Encryption\EncryptionServiceProvider',
    'Illuminate\Filesystem\FilesystemServiceProvider',
    'Illuminate\Hashing\HashServiceProvider',
    'Illuminate\Html\HtmlServiceProvider',
    'Illuminate\Log\LogServiceProvider',
    'Illuminate\Mail\MailServiceProvider',
    'Illuminate\Database\MigrationServiceProvider',
    'Illuminate\Pagination\PaginationServiceProvider',
    'Illuminate\Queue\QueueServiceProvider',
    'Illuminate\Redis\RedisServiceProvider',
    'Illuminate\Remote\RemoteServiceProvider',
    'Illuminate\Auth\Reminders\ReminderServiceProvider',
    'Illuminate\Database\SeedServiceProvider',
    'Illuminate\Session\SessionServiceProvider',
    'Illuminate\Translation\TranslationServiceProvider',
    'Illuminate\Validation\ValidationServiceProvider',
    'Illuminate\View\ViewServiceProvider',
    'Illuminate\Workbench\WorkbenchServiceProvider',
    'Cartalyst\Sentry\SentryServiceProvider',
    'Krucas\Notification\NotificationServiceProvider',
    'App\Site\SiteServiceProvider'

),

suggestions

Hi,

Is there a chance that you might add some common features like:

image uploading
Filtering datatables using json

Thanks

Pagination link buttons not showing

I tried to paginate, but the buttons with links (prev, 2,3,4,next) doesn't show up
In public/site/routes.php:
Route::get('blog', array('as' => 'article.list', function()
{
return View::make('site::articles')->with('entries', Article::orderBy('created_at' , 'DESC')/*)->get() */->paginate(2));
}));

If I type
/public/blog?page=1,2,3 etc
it diplays the two articles of the page correctly, but without the buttons.

One code view is missplaced near Custom Comands Title of Tutorial part 2

Hi,

In Laravel4 tutorial part 2:

1.seek tittle Custom commands
2.going backwards the second code view must be of the method destroy and is showing update method of PageControlller.php.

Must show:

public function destroy($id)
{
$page = Page::find($id);
//$page->delete();

            Notification::success('The page was deleted.');

            return Redirect::route('admin.pages.index');
    }

Regards!

Cannot find sentry on php artisan db:seed

$ php artisan db:seed PHP Fatal error: Class 'Sentry' not found in /Users/aswartz/githosting/tools/app/database/seeds/SentrySeeder.php on line 14 {"error":{"type":"Symfony\\Component\\Debug\\Exception\\FatalErrorException","message":"Class 'Sentry' not found","file":"\/Users\/aswartz\/githosting\/tools\/app\/database\/seeds\/SentrySeeder.php","line":14}}

If i add use Cartalyst\Sentry\Sentry; i get:

$ php artisan db:seed {"error":{"type":"ErrorException","message":"Non-static method Cartalyst\\Sentry\\Sentry::getUserProvider() should not be called statically, assuming $this from incompatible context","file":"\/Users\/aswartz\/githosting\/tools\/app\/database\/seeds\/SentrySeeder.php","line":14}}

Assets includes in code before you explain that in default_blade.php

Hello,

Near Layouts and views you post the code for the file default_balde.php with this includes:

@include('admin._partials.assets')
@include('admin._partials.navigation')

As I'm doing the tutorial,in this moment these files hasn't been explained yet and the app fails with a file not found error.

This lines must be remove from that code view :)
Regards!

Small typo error near Layout and views

In there you command us to create:

app/views/admin/_layouts/defaut.blade.php

When it must be:

app/views/admin/_layouts/default.blade.php

I'll keep send you comments if I find something else!
Thanks for your great tutorial.

Issue when trying to create a resource URL route

Hi,

I am working through your tutorial and it seems like there is an issue with generating the proper resource URL for show etc.

Specifically In File: /app/views/admin/pages/index.blade.php

{{ URL::route('admin.pages.show', $page->id) }}

I get the error: "array_shift() expects parameter 1 to be array, integer given" when trying to generate that URL. Do you know why that is?

Thank you

ContentSeeder.php issue

Hi,

Just started following your tutorial over here:

I'm as far as creating the ContentSeeder.php class and running 'php artisan db:seed'.

However I get the following issue in the console:

Sentry tables seeded!
{"error":{"type":"Symfony\\Component\\Debug\\Exception\\FatalErrorException","message":"Class 'App\\Models\\Article' not found","file":"\/Users\/seandelaney\/Sites\/laravel-development.local\/app\/database\/seeds\/ContentSeeder.php","line":17}}

I've used the same contents as your ContentSeeder.php file:

use App\Models\Article;
use App\Models\Page;
 
class ContentSeeder extends Seeder {
    public function run() {
        DB::table('articles')->delete();
        DB::table('pages')->delete();
 
        Article::create(array(
            'title'   => 'First post',
            'slug'    => 'first-post',
            'body'    => 'Lorem ipsum dolor sit amet...',
            'user_id' => 1,
        ));
        
        Page::create(array(
            'title'   => 'About us',
            'slug'    => 'about-us',
            'body'    => 'Lorem ipsum dolor sit amet...',
            'user_id' => 1,
        ));
    }
}

Any ideas ?

$entry->author->email?

I'm following along in your (so far 3 part) tutorial. Although $entry->author->email in the article and articles view is giving me an error of "Trying to get property of non-object".

Have I gone wrong somewhere?

Thanks for the tutorial by the way. VERY helpful.

How to add watermark when adding images

Hello,

I wan to add 5 images for an article/product. Each image will be re-sized to large medium and thumbnail. Water mark need to be placed on large image only.

Then editing and deletion...of images...

How this can easily be done in l4 site tutorial...

Thanks for help...

Page deletion not working

When I try to delete a page it gives the "The page was deleted." notification but the page remains stored in the database.

LE:
the method was commented. did a pull request.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.