madsynn

madsynn

Member Since 5 Years Ago

Experience Points
15,030
Total
Experience

4,970 experience to go until the next level!

In case you were wondering, you earn Laracasts experience when you:

  • Complete a lesson — 100pts
  • Create a forum thread — 50pts
  • Reply to a thread — 10pts
  • Leave a reply that is liked — 50pts
  • Receive a "Best Reply" award — 500pts
Lessons Completed
127
Lessons
Completed
Best Reply Awards
0
Best Reply
Awards
  • start your engines Created with Sketch.

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • first-thousand Created with Sketch.

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • 1-year Created with Sketch.

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • 2-years Created with Sketch.

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • 3-years Created with Sketch.

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • 4-years Created with Sketch.

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • 5-years Created with Sketch.

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • school-in-session Created with Sketch.

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • welcome-newcomer Created with Sketch.

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • full-time-student Created with Sketch.

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • pay-it-forward Created with Sketch.

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • subscriber Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • evangelist Created with Sketch.

    Laracasts Evangelist

    Earned if you share a link to Laracasts on social media. Please email [email protected] with your username and post URL to be awarded this badge.

  • chatty-cathy Created with Sketch.

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • lara-veteran Created with Sketch.

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • 10k-strong Created with Sketch.

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • lara-master Created with Sketch.

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • laracasts-tutor Created with Sketch.

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • laracasts-sensei Created with Sketch.

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • top-50 Created with Sketch.

    Top 50

    Earned once your experience points ranks in the top 50 of all Laracasts users.

Level 4
15,030 XP
Oct
26
2 days ago
Activity icon

Replied to Class 'Symfony\Component\EventDispatcher\Event' Not Found

Anyone working on this I have the same issue?

Oct
13
2 weeks ago
Activity icon

Replied to Trying To Group My Query Into Alphabetic Chunks

@bugsysha

Thank you very much. You really made that look easy and I appreciate the help. Its not like the stuff I code normally and appreciate it very much.

You totally rock!

Activity icon

Replied to Trying To Group My Query Into Alphabetic Chunks

@bugsysha

Ok its almost correct. Here is the output.

https://nimb.ws/0bNoWk

So it is grouping the title but not the list.

Activity icon

Replied to Trying To Group My Query Into Alphabetic Chunks

@bugsysha

Thank you so much for helping me tackle this.

Once they are grouped and outputing how do o loop through each group so i can style them differently?

Each section is in its own container and styled a little differently.

Activity icon

Replied to Trying To Group My Query Into Alphabetic Chunks

@bugsysha

Almost have it. it is outputting to blade now but its outputting per letter not per group.

A
 AbeT 
 Agilant
 Alde 
 Allscript 
 AM Mobile
 Appetize
 Appogee
 Arlington 
 Atlanta Computer 

B
 Bar   Unlimited
 Barcodes Inc.
 Biz  POS
 Brad  Incorporated

The chunk in the foreach was what was grouping them correctly though wasn't it.

Now how do I group them together without it?

Activity icon

Replied to Trying To Group My Query Into Alphabetic Chunks

@bugsysha

Here the output which by the way is perfect now. https://nimb.ws/Jg4h9s

Now The last part is just what you mentioned you need the SS for.

Activity icon

Replied to Trying To Group My Query Into Alphabetic Chunks

@michaloravec Thank you but still not quite what i am looking for. Its almost there.

This is a dump of what you sent me. https://nimb.ws/bnNwQ0

It looks like the loop is just grabbing the first letter and grouping them into the letter they start with and no other data. When i output the loop it says not name on this collection. Same problem i keep running into. so the output to the blade file errors out.

Thank you so much for helping me tackle this.

Activity icon

Replied to Trying To Group My Query Into Alphabetic Chunks

@bugsysha

Thank you that is right along the lines i need but with couple new questions.

Here is my output when I run it with DD.

https://nimb.ws/kL70Ez

When I try to output to the view i get an error saying name is not part of the collection but it clearly is.

Next question is there a way to make the "OTHER" last in the output so each group follows the earlier screenshot.

Thank you by the way you rock.

Activity icon

Replied to Trying To Group My Query Into Alphabetic Chunks

@jlrdw thnx;

Trying to group into groups of letters if that makes sense. Look at my new comment below I also added a screenshot. I can separate them into each letter but not sure how to group them into groups of letters.

Activity icon

Replied to Trying To Group My Query Into Alphabetic Chunks

@michaloravec and @bugsysha

Thank you for your help. I almost have what i need. Guess i should have expained better i am trying to group the letters into sections as follows and then loop through them.

The following are just arrays explaining what i am trying to do after i have queried the names. I am aware they will not work as coding i am just trying to explain what i mean.

Trying to create this. https://nimb.ws/57f2B8

Section with names starting with :

$a_though_d = [A,B,C,D];
$e_though_h = [E,F,G,H];
$i_though_l = [I,J,K,L];
$m_though_p = [M,N,O,P];
$q_though_t = [Q,R,S,T];
$u_though_x = [Y,Z];
Activity icon

Started a new Conversation Trying To Group My Query Into Alphabetic Chunks

Any help would be awesome.

my query so far but not sure how to connect each set of letters.

$partners = Directory::where('name', 'like', 'A%')->orderBy('name', 'asc')->get();

returns all with start letter A just fine but i want to group them into [A,B,C,D] and keeps them in that order.

I can do a query for each one but not practical so i want to output them as grouped and any help you can give would be appreciated.

my blade file loop

@foreach($partners as $letter => $group)

    <ul>

        <li>{{ $letter }}</li> // WOULD LIKE THIS TO BE " A - B - C - D "

        @foreach($group as $partner)

            <li>{{ $partner['name'] }}</li>

        @endforeach

    </ul>

@endforeach

thnx in advance

Sep
29
4 weeks ago
Activity icon

Replied to Loop Through Language File To Make A List Of Keys In Blade View?

@marianomoreyra

If I can loop through the file here is a example of the table i am trying to create give or take a few changes.

<table>
    <tbody>

    @foreach($cruds as $crudtitle => $crud)
        <tr>
            <td colspan="5">Roles</td>
        </tr>

        @foreach($crud as $i => $section)

      <tr>
        <td>
            <input type="checkbox" name="{{ Str::snake($section->slug.'_access') }}"  id="{{ Str::snake($section->slug.'_access') }}" checked data-toggle="toggle" data-on="Access" data-off="Access" data-onstyle="success" data-offstyle="danger">
        </td>
        <td>
            <input type="checkbox" name="{{ Str::snake($section->slug.'_create') }}" id="{{ Str::snake($section->slug.'_create') }}" checked data-toggle="toggle" data-on="Access" data-off="Access" data-onstyle="success" data-offstyle="danger">
        </td>
        <td>
            <input type="checkbox" name="{{ Str::snake($section->slug.'_edit') }}" id="{{ Str::snake($section->slug.'_edit') }}" checked data-toggle="toggle" data-on="Access" data-off="Access" data-onstyle="success" data-offstyle="danger">
        </td>
        <td>
            <input type="checkbox" name="{{ Str::snake($section->slug.'_show') }}" id="{{ Str::snake($section->slug.'_show') }}" checked data-toggle="toggle" data-on="Access" data-off="Access" data-onstyle="success" data-offstyle="danger">
        </td>
        <td>
            <input type="checkbox" name="{{ Str::snake($section->slug.'_delete') }}" id="{{ Str::snake($section->slug.'_delete') }}" checked data-toggle="toggle" data-on="Access" data-off="Access" data-onstyle="success" data-offstyle="danger">
        </td>
      </tr>

        @endforeach
    @endforeach
    </tbody>
</table>

Here is what it looks like. Ballpark I mean.

https://nimb.ws/z6xXLP

Activity icon

Replied to Loop Through Language File To Make A List Of Keys In Blade View?

@marianomoreyra

Thanks for getting back to me.

Its not for a drop down its for creating toggle switches for permissions on a blade view. right now its tags you add but the dropdown list is really big so i am converting from tag to toggle switches. but in order to do that i need to traverse each crud.title to reference them.

Here is one section from permissions table for example.

id | name
2	permission_create			
3	permission_edit			
4	permission_show			
5	permission_delete			
6	permission_access			

I Need to loop through crud language file to create the table to put them in.

<table>
<thead>
  <tr>
    <th colspan="5">Permissions </th>
  </tr>
</thead>
<tbody>
  <tr>
    <td>create</td>
    <td>edit</td>
    <td>show</td>
    <td>delete</td>
    <td>access</td>
  </tr>
  <tr>
    <td colspan="5">Roles</td>
  </tr>
  <tr>
    <td>create</td>
    <td>edit</td>
    <td>show</td>
    <td>delete</td>
    <td>access</td>
  </tr>
</tbody>
</table>

So to create the table i need to get the translated title of each of my cruds from the language file. It the only place they are listed.

Activity icon

Replied to Loop Through Language File To Make A List Of Keys In Blade View?

Thanks, @marianomoreyra

How would i traverse the array from the file.

Also how do I create the array using that.

I tried $cruds = Lang::get('crud');

But it only returns the word crud not the file as an array.

Maybe I am just not seeing what you mean could you provide an example please.

Activity icon

Started a new Conversation Loop Through Language File To Make A List Of Keys In Blade View?

I have a language file that i am trying to get a list of titles from each section of my file but not sure how to loop through it to make the list any help would be appreciated.

EXAMPLE LANGUAGE FILE resources/lang/en/crud.php


return [
'user'              => [
       'title'          => 'Users',
       'title_singular' => 'User',
],
  'product'           => [
       'title'          => 'Products',
       'title_singular' => 'Product',
],
   'post'              => [
       'title'          => 'Blog / Post',
       'title_singular' => 'Blog / Post',
]
]

my attempt so far with no luck is:

@foreach(trans()->get('title') as $key => $value)
  <select val="{{ $key }}">{{ $value }}</select>
@endforeach

just trying to output the title field for each one.

thnx in advance.

Jul
02
3 months ago
Activity icon

Replied to Creating An Accessor Need Guidance

So do i create a scope to return boolean from doctype if its id == 1 (id of type I am trying to get)

    /**
     * Scope a query to return true if doctype id == 1
     *  1 being the title mcode I am trying to check on
     *
     * @param \Illuminate\Database\Eloquent\Builder $query
     * @return \Illuminate\Database\Eloquent\Builder
     */
    public function scopeIsMcode($query)
    {
        return $query->where('id', 1);
    }

so how does the doc.php accessor use the scope in doctype.php to return true if the doc / doctype is mcode in this case? This is where I get confused. will an accessor only work on data from itself and not traverse to the model with relationship of belongsToMany?

Activity icon

Started a new Conversation Creating An Accessor Need Guidance

I have two cruds and want to create an accessor to be used on queries to return boolean and not really sure how to do it.

Have the following details for the models

// doctype.php

protected $fillable = [
        'title',
        'slug',
    ];

public function Docs()
 {
        return $this->belongsToMany(Doc::class);
 }
// doc.php

 protected $fillable = [
        'published',
        'set_name',
        'industry',
        'slug',
        'status_id',
    ];

public function Doctypes()
 {
        return $this->belongsToMany(DocType::class);
 }

I need a doc scope that will query the doctype and @if current doc has a doctype wth id == 2 return true @else return false @endif

Like i said i have never created one before and could use your help.

Thank you

Jun
24
4 months ago
Activity icon

Awarded Best Reply on My View Is Not Getting Anything From The Controller. No Idea Why Can You See Why?

@usmanbasharmal

It is being extended along with request being injected.

@inject('request', 'Illuminate\Http\Request')
@extends('site.layouts.app')
Activity icon

Started a new Conversation 3 Model Query Assistance

I need help getting this query built. For some reason, i am having difficulty and could use your assistance, please.

3 models = Product, Doc, Doctype

I need something along this:

select *  products 
where  
docs.config_catalog_filter == current  
with 
doctype->slug = mtype

and return the document

MY DB

products: id name description short slug type published
docs: id set_name industry published slug
doctype: id title slug

Product.php

    protected $fillable = [
        'published',
        'chicklet',
        'type',
        'demo_form',
        'demo_request_link',
        'name',
        'short',
        'description',
        'section_id',
        'slug',
        'created_at',
        'updated_at',
        'deleted_at',
    ];

    public function docs()
    {
        return $this->hasMany(Doc::class);
    }

Doc.php

    const CONFIG_CATALOG_FILTER_SELECT = [
        'current'      => 'Current Product',
        'discontinued' => 'Discontinued Product',
    ];

    protected $fillable = [
        'published',
        'config_catalog_filter',
        'set_name',
        'industry',
        'slug',
        'created_at',
        'updated_at',
        'deleted_at',
    ];

    public function doctypes()
    {
        return $this->belongsToMany(DocType::class);
    }


Doctype.php

    protected $fillable = [
        'title',
        'slug',
        'created_at',
        'updated_at',
        'deleted_at',
    ];

    public function doctypeDocs()
    {
        return $this->belongsToMany(Doc::class);
    }

Jun
22
4 months ago
Activity icon

Replied to Help With A Loop In Blade

@james_moore

Nevermind james looked at the link you supplied and saw it.

I should stop reading bottom up on these posts. lol

thank you

Activity icon

Replied to Help With A Loop In Blade

@james_moore

Thank you, i have never used chuck before would I put my normal foreach inside it or other way around?

Not sure how to use it with the normal loop that outputs the info I need. Could you please give me a little more direction on how I tie that into my loop above please.

Thank you

Activity icon

Started a new Conversation Help With A Loop In Blade

I am not sure how to do this in blade so I need your superior intellect to help me please.

In my controller I have this index.

public function index(Request $request)
{
    $press = News::latest()->take(6)->get();

    //dd($press);

    return view('site.pages.homepage.index',compact('press'));
}

The controller is returning correctly but I need my loop to add a new div/container around every 2 articles.

My loop so far:

@foreach($press as $news)
		<div class="col-lg-6">
			<article>
 
			</article>
		</div>
@endforeach

but I need it to output this HTML and I don't know how to add the containing div for each group of 2 returned by the loop.

<div class="row"> {--  THIS IS THE MISSING DIV --}
		<div class="col-lg-6">
			<article>
 
			</article>
		</div>
		<div class="col-lg-6">
			<article>
 
			</article>
		</div>
</div> {--  THIS IS THE MISSING DIV CLOSE--}
Jun
21
4 months ago
Activity icon

Replied to Help With Load()

@snapey Sorry i was getting tired when i said that. It is the most current of laravel available.

Jun
20
4 months ago
Activity icon

Replied to Question About $model->load()

@loyd

Here is my route

Route::get('posts/{post:slug}', '[email protected]')->name('post.show');
Activity icon

Replied to Question About $model->load()

@loyd now im getting a new error but same message pretty much

No query results for model [App\Product] 1

Activity icon

Replied to Question About $model->load()

@loyd

Thank you i will try it. I was trying to use slugs but i can work it into the application the long way if i have to. Let me go try the old way real fast.

Activity icon

Replied to Help With Load()

@snapey Good to see you. @michaloravec @walidabou

Sorry everyone ContentPage was a typo it is and was supposed to be Page. admin.pages.show

Problem is on all my admin logged in cruds, show is working fine. but on the frontend webpage site all my show methods on all my crude are all returning as null. I cannot figure out why. I have made many of these and never ran into this problem until Larevel 5.7. If i am doing something wrong i would love to know what it is. I can share complete code if anyone want to see it.

Activity icon

Started a new Conversation Question About $model->load()

I build a simple blog application but i am having issues with the load function on my show method in my controller.

I have this in the Admin/posts side and it works fine.

    public function show(Post $post)
    {
        abort_if(Gate::denies('post_show'), Response::HTTP_FORBIDDEN, '403 Forbidden');

        $post->load('categories', 'tags', 'post_section', 'highlight_posts');

        return view('admin.posts.show', compact('post'));
    }

but i have another non admin controller for the front end and my blog.show method does not work.

    public function show(Post $post)
    {
        $post->load('categories', 'tags', 'post_section', 'highlight_posts');

        return view('blog.show', compact('post'));
    }

My problem is on blog.show no information is passing to my view from the controller like it does in the admin site.

Here is my question. does load which id a member function only work when the user is logged in / authenticated and is that why no data is passing to my show.blade.php on my blog front end?

I cannot figure this out it is happening on all my front end views any help from anyone at this point is welcome.

Jun
19
4 months ago
Activity icon

Started a new Conversation Help With Load()

My controller is using load on show but for some reason no data on the loaded items is working. Can someone please tell me what I am missing?

Do I need a file someplace to do something to make load work. here is my show function in my controller.

    public function show(Page $page)
    {
        $contentPage->load('categories', 'tags', 'section');

        return view('admin.contentPages.show', compact('page'));
    }

Page loads fine but nothing else. How does the load work?

Activity icon

Replied to My View Is Not Getting Anything From The Controller. No Idea Why Can You See Why?

@usmanbasharmal

It is being extended along with request being injected.

@inject('request', 'Illuminate\Http\Request')
@extends('site.layouts.app')
Jun
18
4 months ago
Activity icon

Replied to My View Is Not Getting Anything From The Controller. No Idea Why Can You See Why?

@usmanbasharmal I have tried both and the code above has the compact on it.

Activity icon

Replied to My View Is Not Getting Anything From The Controller. No Idea Why Can You See Why?

@nexxai

DD Before load

App\News {#2189 ▼
  +table: "news"
  #appends: array:1 [▼
    0 => "featured_image"
  ]
  #dates: array:4 [▼
    0 => "created_at"
    1 => "updated_at"
    2 => "deleted_at"
    3 => "deleted_at"
  ]
  #fillable: array:15 [▼
    0 => "published"
    1 => "title"
    2 => "page_text"
    3 => "excerpt"
    4 => "meta_title"
    5 => "meta_description"
    6 => "facebook_title"
    7 => "facebook_desc"
    8 => "twitter_post_title"
    9 => "twitter_post_description"
    10 => "section_id"
    11 => "slug"
    12 => "created_at"
    13 => "updated_at"
    14 => "deleted_at"
  ]
  #connection: null
  #primaryKey: "id"
  #keyType: "int"
  +incrementing: true
  #with: []
  #withCount: []
  #perPage: 15
  +exists: false
  +wasRecentlyCreated: false
  #attributes: []
  #original: []
  #changes: []
  #casts: []
  #classCastCache: []
  #dateFormat: null
  #dispatchesEvents: []
  #observables: []
  #relations: []
  #touches: []
  +timestamps: true
  #hidden: []
  #visible: []
  #guarded: array:1 [▼
    0 => "*"
  ]
  #forceDeleting: false
  +mediaConversions: []
  +mediaCollections: []
  #deletePreservingMedia: false
  #unAttachedMediaLibraryItems: []
}

DD After load

App\News {#2189 ▼
  +table: "news"
  #appends: array:1 [▼
    0 => "featured_image"
  ]
  #dates: array:4 [▼
    0 => "created_at"
    1 => "updated_at"
    2 => "deleted_at"
    3 => "deleted_at"
  ]
  #fillable: array:15 [▼
    0 => "published"
    1 => "title"
    2 => "page_text"
    3 => "excerpt"
    4 => "meta_title"
    5 => "meta_description"
    6 => "facebook_title"
    7 => "facebook_desc"
    8 => "twitter_post_title"
    9 => "twitter_post_description"
    10 => "section_id"
    11 => "slug"
    12 => "created_at"
    13 => "updated_at"
    14 => "deleted_at"
  ]
  #connection: null
  #primaryKey: "id"
  #keyType: "int"
  +incrementing: true
  #with: []
  #withCount: []
  #perPage: 15
  +exists: false
  +wasRecentlyCreated: false
  #attributes: []
  #original: []
  #changes: []
  #casts: []
  #classCastCache: []
  #dateFormat: null
  #dispatchesEvents: []
  #observables: []
  #relations: array:4 [▼
    "categories" => Illuminate\Database\Eloquent\Collection {#2198 ▼
      #items: []
    }
    "tags" => Illuminate\Database\Eloquent\Collection {#2209 ▼
      #items: []
    }
    "product_press_releases" => Illuminate\Database\Eloquent\Collection {#2220 ▼
      #items: []
    }
    "section" => null
  ]
  #touches: []
  +timestamps: true
  #hidden: []
  #visible: []
  #guarded: array:1 [▼
    0 => "*"
  ]
  #forceDeleting: false
  +mediaConversions: []
  +mediaCollections: []
  #deletePreservingMedia: false
  #unAttachedMediaLibraryItems: []
}
Activity icon

Started a new Conversation My View Is Not Getting Anything From The Controller. No Idea Why Can You See Why?

Can anyone tell me why this will not return show.blade.php data?

ROUTE

Route::resource('news', 'NewsController', ['except' => ['create', 'store', 'edit', 'update', 'destroy']]);

MODEL

    public function categories()
    {
        return $this->belongsToMany(ContentCategory::class);
    }

    public function tags()
    {
        return $this->belongsToMany(ContentTag::class);
    }

CONTROLLER

    public function show(News $news)
    {	
        $news->load('categories', 'tags', 'product_press_releases', 'section');

        return view('site.news.show', compact('news'));
    }

VIEW show.blade.php

@section('content')
{{ $news->title  ?? '' }}
{{ $news->id  ?? '' }}

@foreach($news->categories as $key => $category)
 <span class="label label-info">{{ $category->name }}</span>
@endforeach

@endcontent

For the life of me I cannot get why no data is being returned. I do these all the time and never ran into this.

Jun
17
4 months ago
Activity icon

Replied to Help With Query Please

I change builder to query and it worked like a charm thank you @michaloravec

Activity icon

Replied to Help With Query Please

My Staff Relationship is already many to many. Here is what I have.

    public function staff_categories()
    {
        return $this->belongsToMany(StaffCategory::class);
    }
Activity icon

Replied to Help With Query Please

@tykus thank you for you help but It is still not working. I tried the code above and also tried these 2 versions with no luck.

        $sales = Staff::whereHas('staff_categories', function (Builder $builder) {
            $builder->where('name', 'sales');
        })->where('published', true)->get();
        
        $sales = Staff::whereHas('staff_categories', function (Builder $builder) {
            $builder->where('staff_category_id', '2');
        })->where('published', true)->get();
Activity icon

Started a new Conversation Help With Query Please

I have 2 cruds staff, and staff_categories.

I need to query each category and check if published and output them.

Staff table:

        Schema::create('staff', function (Blueprint $table) {
            $table->increments('id');
            $table->date('startdate')->nullable();
            $table->string('name')->nullable();
            $table->string('job_title')->nullable();
            $table->longText('short_intro')->nullable();
            $table->longText('bio')->nullable();
            $table->boolean('published')->default(0)->nullable();
            $table->string('slug')->nullable();
            $table->timestamps();
            $table->softDeletes();
        });

Staff Categories table

        Schema::create('staff_categories', function (Blueprint $table) {
            $table->increments('id');
            $table->string('name');
            $table->longText('description')->nullable();
            $table->timestamps();
            $table->softDeletes();
        });

**Staff Category Pivot **

        Schema::create('staff_staff_category', function (Blueprint $table) {
            $table->unsignedInteger('staff_id');
            $table->foreign('staff_id')->references('id')->on('staff')->onDelete('cascade');
            $table->unsignedInteger('staff_category_id');
            $table->foreign('staff_category_id')->references('id')->on('staff_categories')->onDelete('cascade');
        });

Any help would be appreciated.

so example of what I'm trying to do is this.

sales = staff-> staff_category -> where ( staff_category == sales) ->where (staff->published == true) ->get

As you can see I'm not sure how to get this to come back.

Another way would be to loop through the staff that are published for each staff category.

Thank you in advance.

Jun
15
4 months ago
Activity icon

Started a new Conversation Help Output By Month

I have a blog and i need to foreach all posts during each month broken up in sections but I am not sure how to setup the loops can anyone help.

each article has a created_by and I want to reference that date and output accordingly.

April 2020

  • Article
  • Article
  • Article

May 2020

  • Article
  • Article
  • Article

June 2020

  • Article
  • Article
  • Article